Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 | P a g e Kawaii Panda once owned a car called moon, which she loved very much. KP used to visit all these
1 | P a g e Kawaii Panda once owned a car called moon, which she loved very much. KP used to visit all these nice forests with moon and her friends. But, as moon grew older it required to be taken care of. So she visited a garage which would take care of her. But before the nice people of the garage could take care of moon, they needed KP to answer a set of basic questions regarding moon which would help them to draw a budget associated with her maintenance. These set of questions from the garage were as follows: How many years old was the car subtracted from the year of its purchase? How many miles was the car driven? Was the car ever in an accident? How many times maintenance has been performed on the car? If at least once, then was our garage the ones who performed it? The basic servicing charge of the garage involved an amount of $100.00. Additional amounts were to be added or subtracted to or from this base amount based on the answers to the above set of questions. These were as follows: Age of the car o Less than 3 years old, no additional charges o 3 or more years but less than 5 years, an additional charge of $15.00 o 5 or more years, an additional charge of $45.00 Miles the car was driven o Less than 7500mi, no additional charges o 7500mi or more but less than 20,000mi, an additional charge of $20.00 o 20,000mi or more but less than 36,000mi, an additional charge of $50.00 o 36,000mi or more, an additional charge of $100.00 Accident o Yes, an additional charge of $75.00 o No, a discount of $25.00 How many times maintenance was performed o Zero times, no additional charges as long as the car is either less than 3 years old or was driven less than 7500mi. Otherwise, an additional charge of $50. o At least once, no additional charges Did the garage perform any of the previous maintenance (To be considered only if maintenance was performed at least once) o Yes, a discount of $30.00 o No, no discount or additional charges Page 2 WAP in C++ to help the garage interact with KP using the above set of the questions and to further help the garage create the budget of the maintenance based on the answers KP provides and the budgetary outlines the garage has, as mentioned above. Please note that your program should prompt an error message if KP enters a negative valued answer for any of the above questions (where applicable) and allow her to re-enter her answer. KP should also have the option to re-do the entire questionnaire if she wishes to do so. Please make sure your code is well-documented and your programs user interaction is well-structured and has clarity. KPs answers were as follows: For answering the question set the first time: 4 years -15,700mi (corrected: 15,700mi) No Zero For answering the question set the second time: -7 years (corrected: 8 years) 36,990mi Yes Two times o Yes Note: How your program handles the input from the user for Yes/No questions is up-to you as the programmer. Page Kawai Panda once owned a car called moon, which she loved very much KP used to visit al these nice forests with moon and her friends. But, as moon grew older trequined to be taken care of So she visited garage which would take care of her. But before the nice people of the a set of garage could take care of moon, they needed KP to answer basic questions regarding moon which would help them to draw a budget associated with her maintenance. These set of questions from the garage were as follows How many years old was the car subtracted from the year ofitspurchase? How many miles was the car driven? Was the car ever in an accident? How many times maintenance has been performed on the car? If at least once, then was our garage the ones who performed The basic servicing charge of the garage involved an amount of S10000. Additionalamounts were to be added or subtracted to or from this base amount based on the answers to the above set of These were as follows: Age of the car o Less than 3 years old, no additional charges o 3 or more years but less thans years, an additional charge of S1500 5 or more years, an additional charge ofS4s00 Less than 7500mi no additional charges 7500mi or more but less than 20.000mian additional charge of $2000 36000mi or more, an additional charge of S10000 o Yes, an additional charge of STS 00 o No, a discount of $2500 How many times maintenance was performed Zero times, no additional dharges as long as the car is either less than 3 years old or was driven less than 7500mi Otherwise, an additonalcharge of$50. At least once, no additionalcharges Did the garage perform any of the previous maintenance (To be considered only if maintenance was performed at least once) Yes, a discount of S3000 No no discount or additionaldharges
Page 2
WAP in C++ to help the garage interact with KP using the above set of the questions and to further help the garage create the budget of the maintenance based on the answers KP provides and the budgetary outlines the garage has, as mentioned above. Please note that your program should prompt an error message if KP enters a negative valued answer for any of the above questions (where applicable) and allow her to re-enter her answer. KP should also have the option to re-do the entire questionnaire if she wishes to do so. Please make sure your code is well-documented and your programs user interaction is well-structured and has clarity. KPs answers were as follows: For answering the question set the first time: 4 years -15,700mi (corrected: 15,700mi) No Zero For answering the question set the second time: -7 years (corrected: 8 years) 36,990mi Yes Two times o Yes Note: How your program handles the input from the user for Yes/No questions is up-to you as the programmer.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started