Assignment Plan and code a program utilizing one file for input and two files for output to solve the following problem: A For adults, the deluxe meals will cost $25.80 per person and the standard meals will cost $21.75 per person, dessert included. Children's meals will cost 60 percent of adult meals. Everyone within a given party must be served the same meal type. B. All customers will be charged the same rate for tip and tax, currently 18 percent (applied only to the cost of the food). C A surcharge, currently 7 percent, is added to the total bil if the catering is to be done on the weekend (Saturday. or Sunday). D. To induce customers to pay promptly, a discount is offered if payment is made within ten days. This discount depends on the amount of the total bill. If the bill is less than $100.00, the discount is 1.5 percent; if the bill is at least $100.00 but less than $400.00, the discount is 2.5 percent; if the bill is $400.00 or more, the discount is 3.5 percent. Input Number of adults, number of children, meal type (D, S), character indicating whether date is a weekend (Y/N), amount of any deposit. Output Output an itemized bill listing the number of adults, children, cost for adult meals, cost for children meals, total food cost, surcharge (if appropriate), tax and tip, total cost of the party, deposit (if any), total balance due, amount of discount if bill is paid within ten days. Output error data to a separate error file. Label all output clearly. Be sure your output file contains data that was input in addition to the results of your program processing. Create the data file below using your text editor or Notepad. Run Create the data file below using your text editor or Notepad. Run with the following data: Deposit 100.00 57.50 Adults Children Meal Type Weekend 10 0. 27 3. D. 125 17 D N. 0.00 N. Y. 25.00 4 25 23.75 43 D 500.00 250 D. 0.00 10.00 10 15.00 275.00 R 17 D 20.00 30.00 -3 10 14 -1 -10.00 20 Turn In Turn in source code, the input file, the output file, and error file.
Assignment Plan and code a program utilizing one file for input and two files for output to solve the following problem: A For adults, the deluxe meals will cost $25.80 per person and the standard meals will cost $21.75 per person, dessert included. Children's meals will cost 60 percent of adult meals. Everyone within a given party must be served the same meal type. B. All customers will be charged the same rate for tip and tax, currently 18 percent (applied only to the cost of the food). C A surcharge, currently 7 percent, is added to the total bil if the catering is to be done on the weekend (Saturday. or Sunday). D. To induce customers to pay promptly, a discount is offered if payment is made within ten days. This discount depends on the amount of the total bill. If the bill is less than $100.00, the discount is 1.5 percent; if the bill is at least $100.00 but less than $400.00, the discount is 2.5 percent; if the bill is $400.00 or more, the discount is 3.5 percent. Input Number of adults, number of children, meal type (D, S), character indicating whether date is a weekend (Y/N), amount of any deposit. Output Output an itemized bill listing the number of adults, children, cost for adult meals, cost for children meals, total food cost, surcharge (if appropriate), tax and tip, total cost of the party, deposit (if any), total balance due, amount of discount if bill is paid within ten days. Output error data to a separate error file. Label all output clearly. Be sure your output file contains data that was input in addition to the results of your program processing. Create the data file below using your text editor or Notepad. Run Create the data file below using your text editor or Notepad. Run with the following data: Deposit 100.00 57.50 Adults Children Meal Type Weekend 10 0. 27 3. D. 125 17 D N. 0.00 N. Y. 25.00 4 25 23.75 43 D 500.00 250 D. 0.00 10.00 10 15.00 275.00 R 17 D 20.00 30.00 -3 10 14 -1 -10.00 20 Turn In Turn in source code, the input file, the output file, and error file.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
please complete the following
**sample desired output is provided
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY