Question: Requirements: The purpose of this program is to accept coded event information as input that includes the date, time, price, discount, section, row, seat, followed

Requirements: The purpose of this program is to accept coded event information as input that
includes the date, time, price, discount, section, row, seat, followed by the description of the
event. Note that the five digits for price and two digits for discount have an implied decimal
point. The program should then print the event information including the actual cost, which is the
price with discount applied. The last line of the event information should contain a random "prize
number" between 1 and 9999 inclusive that should always be printed as four digits (e.g.,1 should
be printed as 0001). The coded input is formatted as follows:
Whitespace before or after the coded information should be disregarded (e.g., if the user enters
spaces or tabs before or after the coded information, these should be disregarded). Your program
will need to print the event description, date, time, section, row, seat number, price, discount, and
cost, and a random prize number in the range 1 to 9999 as shown in the examples below. If the
user enters a code that does not have at least 26 characters, then an error message should be
printed. [The 26th character of the code is part of the event description.]
Requirements: The purpose of this program is to

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 Programming Questions!