Download Assignments - HTHS

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Assignments: Oct. 3 - 17
If … then… else…elseif…
C1. Create a Number of Digits display and then displays a message stating whether the
number is a one digit number or a two digit number.
C2. Express Café pays its employees time and a half for every hour worked over 40
hours.
a
b
Create an Express Café Payroll application that calculates gross weekly wages
(before taxes) given the hours worked and the hourly rate.
Express Café employs students who are exempt from taxes and others who are
not. Modify the application so that if an employee is not exempt, 18% of the
gross wages will be deducted, otherwise NO TAXES DEDUCTED will be
displayed in a message box and then the wages displayed.
C3. The Printing Place has different printing prices based on the number of copies to be
printed:
0-499 copies
$0.30 per copy
500 – 749 copies
$0.28 per copy
750 – 999 copies
$0.27 per copy
1000 copies or more
$0.25 per copy
Create a Printing Prices application that asks the user for the number of cipies and
then calculates the total price.
C4. Speedy Overnight Delivery service does not accept packages heavier than 27
kilograms or larger than 0.1 cubic meters (100,000 cubic centimeters). Create a
Package Check application that asks the user to input the weight of a package and its
dimensions, and displays an appropriate message if the package does not meet the
requirements (e.g. too large, too heavy, or both).
C5. Create a Computer Troubleshooting application that asks the user if the ailing
computer beeps on startup, and if the hard drive spins. If it beeps and the drive spins,
have the application display Contact Tech Support. If it beeps and the drive doesn’t
spin, have the application display Check drive contacts. If it doesn’t beep and the hard
drive doesn’t spin, have the application display Bring computer to repair centre.
Finally, if it doesn’t beep and the hard drive spins, have the application display Check
the speaker connections.
C6. The Midtown Auto Company produced some models of cars that may be difficult to
drive because the car wheels are not exactly round. Cars with model numbers 119,
179, 189 through 195, 221, and 780 have been found to have this defect. Create a
Defective Car Models application that allows customers to enter the model number of
their car to find out if it is defective. An appropriate graphic should be displayed
when the user enters a defective car model number. It the user enters the model
number of a car which is not defective, the application should display Your car is not
defective with no graphic.
C7. Create a Grades application that reads in letter grades and continuously displays the
number of students who passed (D or better) and the number who failed. (Use and
Enter Grade button to update the data.)
C8. **Create a Sandwich Order application that allows the user to generate a sandwich
order that includes the size of a sandwich (small or large) and the fixings on the
sandwich (lettuce, tomato, onion, mustard, mayonnaise, cheese). A small sandwich is
$2.50 and a large sandwich is $4.00. Mustard and mayonnaise are free, lettuce and
onions are $0.10 each, tomato is $0.25 and cheese is $0.50. The default should be a
small sandwich with no fixings. Remember to update the price when fixings are
deselected or the sandwich size changes. The application should calculate the total
price of the order and be able to print the order.
C9. ***The Amazing Popcorn Company sells gift containers that hold up to six flavours
of popcorn. A container costs $15.00. Each regular flavour is $2.00 and each gourmet
flavour is $3.00. There is a $4.00 shipping charge if the container holds only regular
flavours and a $5.00 shipping charge if the container holds one or more gourmet
flavours. Create a Popcorn order application to process a popcorn order. Remember to
update the price when orders are deselected or the delivery method changes (ship or
pick-up). The Pick-Up option should add $0 to the total price of the order and should
be the default when the order is started. A popcorn graphic should be displayed on the
form.