CSCI 1302 Computer Science Assignment
[ad_1]
CSCI 1302 Computer Science Assignment
CSCI 1302 Computer Science 2
Program 3 Requirements
The Caswell Catering and Convention Service has asked you to write a computer program to produce customers’ bills. The program should read in the following data.
- The Number of Adults to be served.
- The number of children to be served.
- The cost per Adult meal.
- The cost per child’s meal (60% of the cost of the adults’s meal)
- The cost for desert (Same for adults and children).
- The room fee (no room fee if catered at the person’s home).
- A percentage for tip and tax (not applied to the room fee).
- Any deposit should be deducted from the bill. The Following is sample data for this problem.
- CSCI 1302 Computer Science Assignment
Child Adult Adult Dessert Tip / |
|||||||
1 |
7 |
23 |
12.75 |
1.00 |
45.00 |
18% |
50.00 |
2 |
3 |
53 |
13.50 |
1.25 |
65.00 |
19% |
40.00 |
3 |
15 |
24 |
12.00 |
3.00 |
45.00 |
18% |
75.00 |
4 |
2 |
71 |
11.25 |
1.50 |
0.00 |
6% |
0.00 |
The data for customer 1 was used to produce the following sample output. (Your output should look the SAME.) Caswell Catering and Convention Service
CSCI 1302 Computer Science Assignment
Final Bill
Number of Adults: Number of Children:
Cost per Adult without dessert: $ Cost per child without dessert: $ Cost per dessert: $ Room fee: $
Tip and tax rate:
Total cost for Adult meals: $ Total cost for Child meals: $ Total cost for dessert: $ Total food cost: $ Plus tip and tax: $ Plus room fee: $ Less deposit: $
Balance Due: $
23 7 12.75 7.65 1.00 45.00 0.18
293.25 53.55 30.00
376.80 67.82 45.00
-50.00 439.62
Need Help with a similar Assignment?
The post CSCI 1302 Computer Science Assignment appeared first on homeworkcrew.com.
[ad_2]
Source link