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 and inclusive that should always be printed as four digits eg should
be printed as The coded input is formatted as follows:
Whitespace before or after the coded information should be disregarded eg 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 to as shown in the examples below. If the
user enters a code that does not have at least characters, then an error message should be
printed. The character of the code is part of the event description.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
