Project Problems
Project Problems
Choose any one problem and write the program using Python language.
Q3)
The manager of a parcel delivery service needs a program to
check the size and weight of parcels to determine which parcels
can be accepted for delivery.
Q4)
A teacher is planning a school trip to a theme park at the end of
term. You have been asked to write a program to work out the
cost per student, to record those who are going and whether they
have paid. The maximum number of students who can go on the
trip is 45.
You will need to complete these three tasks. Each task must be
fully tested.
The cost of the trip for each student is a share of the cost of a
coach plus the cost of entry to the
theme park. The total cost of the coach will be $550. The entry
cost to the park is $30 for each
student. The theme park gives one free ticket for every ten that
are bought, which must be taken into consideration. Set up a
program that:
• stores the cost of the coach
• stores the cost of an entry ticket
• inputs the estimated number of students taking part, this must
be validated on entry and an unsuitable entry rejected
• calculates and outputs the recommended cost per student to
ensure the trip does not make a loss.
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.
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 analyse the punctuality statistics of these buses over a
four-week period. The data from the survey are shown in the
table:
Positive numbers represent minutes early, negative numbers
represent minutes late and 0 represents the bus having been on
time.
Write and test a program or programs for the local high school.
• Your program or programs must include appropriate prompts
for the entry of data; data must be validated on entry.
• 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.
Q7)
A teacher needs a program to record marks for a class of 30
students who have sat three computer science tests.
Write and test a program for the teacher.
appropriate prompts for the
entry of data.
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:
Q8)
A baguette ordering service allows customers to order filled
baguettes. There are two sizes of baguette: 30 cm and 15 cm.
Baguettes are available as white, brown or seeded bread.
Baguettes have one filling and can have up to three salad items
added.
Filling and salad choices are:
Customers choose their baguette options. They then confirm
their order, alter their choices or choose not to proceed.
Each day the ordering service calculates the number of each:
• size of baguette sold
• type of bread (white, brown or seeded) sold
• filling sold.
Write and test a program or programs for the baguette ordering
service.
• Your program or programs must include appropriate prompts
for the entry of data; data must be validated on entry.
• 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.
Task 1 – Ordering.
Customers are given choices on size, type of bread, filling and
salad items as shown. Only valid
choices can be accepted. The customer is asked to confirm their
order, alter their choices or choose not to proceed. If the
customer confirms their order they are given a unique order
number. Display the baguette ordered and the order number.
Task 2 – Recording the choices.
Extend TASK 1 to record totals for the size, types of bread and
fillings sold that day and calculate the total number of baguettes
sold that day.
Task 3 – Finding the most and least popular baguette fillings.
Using your results from TASK 2, display the most popular and
least popular fillings as a percentage of the total number of
baguettes sold that day.
Q9)
A car insurance system allows customers to check how much it
would cost to buy insurance for a car for twelve months. The
starting price of the car insurance is $500. The actual price a
customer pays for the car insurance changes depending upon
this information:
• engine size of car
• value of car
• where car is kept overnight
• number of kilometres (km) driven a year
• age of driver
• years insured without an insurance claim
The actual price is calculated by:
• finding the total of the percentage changes for the customer
using Table 1
• applying this total percentage change to the starting price of
the car insurance
• applying the years without claim discount percentage for the
customer using Table 2.
Write and test a program or programs to calculate the price for a
customer to insure a car.
• Your program or programs must include appropriate prompts
for the entry of data; data must be
validated on entry.
• 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.
Task 1 – Calculate the price to insure a car.
Write a program to obtain the required information from a
customer and calculate the price to insure the car.
Display the price to insure the car. Display the total percentage
change calculated from Table 1, and the years without claim
discount percentage from Table 2 separately.
Task 2 – New customer discount.
Extend Task 1 to include an additional discount of 10% off the
price to any new customer who is aged between 26 and 70
inclusive, who also has 2 or more years without a claim. Display
the amount of money this would save and the new price.
Task 3 – Adding an extra driver.
Customers can add one extra driver. The age of the extra driver
may increase the price. The new price is calculated by applying
the percentage price change for the age of the extra driver from
Table 1 to the price.
Extend Task 2 to calculate and display the new price including
an extra driver if required.
Q10) A car buying service helps customers calculate the price of
buying a new car from Snazzy Autos. There are three models of
car available: hatchback, saloon and estate. A car can be bought
with optional extras.