Plan and code a program utilizing one fle 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. 8. 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 bill 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 ah itemized bill listing the number of adults, children, cost for adult meaks, cost for children meals, total food cost, surcharge (f appropriate), tax and tip, total cost of the party, deposit (if anyl, 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: Adults Children Meal Type Weekend Deposit 10 100.00 27 3 57.50 125 17 0.00 25.00 4 25 23.75 250 43 500.00 0.00 10.00 15.00 275.00 20.00 10 17 3. -3 10 30.00 14 -1 -10.00 20 3. Turn In Turn in source code, the input fle, the output file, and error fle. DOLL

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please complete the following program in c++ and avoid using any advanced manipulators, strings, or global variables. Thanks

 
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 S25.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
C. A surcharge, currently 7 percent, is added to the total bill 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
(pooj
percent.
Input
Number of adults, number of children, meal type (0, S), character indicating whether date is a weekend (Y/N), amount
of any deposit.
Output
Output ah 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.
un
Create the data file below using your text editor or Notepad. Run with the following data:
sanpy
Children Meal Type
asodeg
0000t
Weekend
000
00's
SL'EZ
0000s
000
SZ
Os
R
A.
000t
00'st
00 0
00 0
Turn in source code, the input file, the output file, and error file.
Transcribed Image Text: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 S25.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 C. A surcharge, currently 7 percent, is added to the total bill 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 (pooj percent. Input Number of adults, number of children, meal type (0, S), character indicating whether date is a weekend (Y/N), amount of any deposit. Output Output ah 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. un Create the data file below using your text editor or Notepad. Run with the following data: sanpy Children Meal Type asodeg 0000t Weekend 000 00's SL'EZ 0000s 000 SZ Os R A. 000t 00'st 00 0 00 0 Turn in source code, the input file, the output file, and error file.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Header Files
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education