Design a flowchart or pseudocode for a program that accepts rental contract data

Design a flowchart or pseudocode for a program that accepts rental contract data

Design a flowchart or pseudocode for a program that accepts rental contract data and displays a completed rental contract ready for a customer’s signature.
Accept the following as input:
Contract number
Customer’s first and last names
Automobile’s vehicle identification number
Starting date for the rental agreement stored as three separate variables—month, day, and year
Length, in days, of the rental agreement
Indicator of whether the customer bought the optional insurance policy
Display output as follows:
If the contract number is not between 10000 and 99999 inclusive, issue an error message and end the program.
If the customer ID number is not between 100 and 999 inclusive, issue an error message and end the program.
If the starting date for the rental agreement is invalid issue an error message and end the program.
(In other words, make sure the month is between 1 and 12, inclusive. If the month is 1, 3, 5, 7, 8, 10, or 12, the day must be between 1 and 31, inclusive. If the month is 2, the day must be between 1 and 28, inclusive. You do not need to check for leap years. If the month is 4, 6, 9, or 11, the day must be between 1 and 30, inclusive.)
If the length of the rental agreement is not between 1 and 30 days inclusive, issue an error message and end the program. Otherwise, calculate the ending month, day, and year based on the starting date and length of the agreement.
The insurance indicator must be “Y” or “N” (for “Yes” or “No”); otherwise, display an error message.
If all the entered data is valid, display it along with the fee for the rental, which is calculated as follows:
$25 per day for 10 days or fewer
$18 per day for each day over 10 days
$2.50 per day for insurance, regardless of the number of days in the contract

"96% of our customers have reported a 90% and above score. You might want to place an order with us."

Essay Writing Service
Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.

Caring support 24/7

If you need a cheap paper writing service, note that we combine affordable rates with excellent customer support. Our experienced support managers professionally resolve issues that might appear during your collaboration with our service. Apply to them with questions about orders, rates, payments, and more. Contact our managers via our website or email.

Non-plagiarized papers

“Please, write my paper, making it 100% unique.” We understand how vital it is for students to be sure their paper is original and written from scratch. To us, the reputation of a reliable service that offers non-plagiarized texts is vital. We stop collaborating with authors who get caught in plagiarism to avoid confusion. Besides, our customers’ satisfaction rate says it all.

© 2022 Homeworkcrew.com provides writing and research services for limited use only. All the materials from our website should be used with proper references and in accordance with Terms & Conditions.

Scroll to Top