Question: c++ code for the question eate laim metnod lal Cleates au least two CashPaymht and two CreditCardPayment objects with different values and calls paymentDetails or

c++ code for the question
eate laim metnod lal Cleates au least two CashPaymht and two CreditCardPayment objects with different values and calls paymentDetails or eac (10 points) 3. Write a program that allows students to schedule appointments at either 1,2, 3, 4, 5, or 6 o'clock p. m. Use an array of six strings to store the names for the time slots. Write a loop that iterates as long as the array has a free space. Within a try block, allow the user to enter a time and a name If the time is free, put the name in the array. If the time is not free, throw a Timeln UseException. If the time is not valid, throw an InvalidTimeException. . Use a catch block for each different kind of exception. (10 points) Write comments in your programs. (5 points). Submit .cpp files for each program. Submit a docx file with the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
