AZRA - PROJECT PROBLEMS
AZRA - PROJECT PROBLEMS
TASK 2
Calculate the average temperature for midday and the average
temperature for midnight. Output these averages with a suitable
message for each one.
TASK 3
Select the day with the highest midday temperature and the day
with the lowest midnight temperature. Then output each of these
temperatures, the corresponding day and a suitable message.
Your program must include appropriate prompts for the entry of
data. Error messages and other outputs need to be set out clearly
and understandably. All variables, constants and other identifiers
must have meaningful names. Each task must be fully tested.
You will need to complete these three tasks. Each task must be
fully tested.
You will need to complete these three tasks. Each task must be
fully tested.
TASK 2 – Record the students who are going and whether they
have paid.
Input and store the names of the students who have asked to go
on the trip up to the maximum number allowed. Input and store
whether each student has paid. Enable printouts to be produced
to show students who have not paid and those who have paid.
TASK 3 – Work out final costs.
Not all students will end up going on the trip, for example they
might not have paid. Modify the program so that it gives overall
totals for the costs charged and the amount of money collected.
Output whether the school trip has made a profit or loss, or has
broken even, and the amount of the final balance.
Q5)
A computer shop will build a computer from components to
meet a customer’s requirements. For each request for a computer
to be built, an estimate of the cost is produced. The component
stock level is checked; if all the components are in stock, a firm
order to build the computer can be placed.
A program is required to work out the cost of the computer,
update the stock levels and provide a daily summary of orders
for the shop owner.
Write and test a program or programs for the computer shop
owner.
• Your program or programs must include appropriate prompts
for the entry of data.
• Error messages and other output need to be set out clearly and
understandably.
• All variables, constants and other identifiers must have
meaningful names.
You will need to complete these three tasks. Each task must be
fully tested.
Q6)
The local high school uses buses to transport students to school.
There are six bus routes labeled A to F. You have conducted a
survey to analyses the punctuality statistics of these buses over
afour-week period. The data from the survey are shown in the
table:
and understandably.
meaningful names.
You will need to complete these three tasks. Each task must be
fully tested.
TASK 1 – Set up lists
Set-up one dimensional lists to store: