Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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.
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education