Question: CMSC140 Programming Classwork 4 Classwork Requirements: This classwork consists of two parts. You must submit a separate cpp and word/pdf document for each part: Part

 CMSC140 Programming Classwork 4 Classwork Requirements: This classwork consists of two

CMSC140 Programming Classwork 4 Classwork Requirements: This classwork consists of two parts. You must submit a separate cpp and word/pdf document for each part: Part 1: Develop a program that asks for the number of tickets sold and computes the total cost of the purchase at Walt Disney World based on the following information: - Each ticket is sold for $109 per day. - Discounts are given for purchasing multiple days of tickets at the same time. The discounts are given according to the following table: - You must validate the input; make sure the number of days is greater than 0 . - The total cost must be represented in currency ( $ ) and two digits decimal points. - Your program's prompt and messages should look similar to the sample provided. Submit: - C++ file (source code): FirstInitialLastName_CW4_Partl.cpp - A document named FirstInitialLastName_CW4_Partl_docx/doc/pdf which includes screenshots of your output. 1. A screenshot of invalid data 2. A screenshot of 12 tickets 3. At least two screenshots of more than 3 tickets Example output: Sample Output1: How many days of tickets were sold? 0 Tickets sold must be greater than zero. Sample Output2: How many days of tickets were sold? 7 The total cost of the purchase is $511.21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!