please help with question attached
Posted: Fri Jul 08, 2022 6:39 am
please help with question attached
Route 15 Corporate Office Park Route 15 is a corporate office park that offers office space for start-up companies. They recently installed a boom gate at their main entrance. They would like to put up a car registration system that registers visitors that enter the office park. They approached you as a C++ developer to help them achieve their goal. Use this information to answer the following questions. Source: Gaddis, 1, 2016. Staring out with C++ - From control structures through objects. Pearson, (Accessed: 14 June 202ยน), Question 5 Create a C++ program that initially displays a menu to the user. The menu should have two options, namely (1) Add car registration, and (2) Exit the program. The program should make use of a function called registerCar() to register a car visiting the office park. You may use an array to store the car details. When option 1 is selected, the user is asked how many cars are being registered then is prompted to add the license number of the driver and the car registration number. It should also display the car number being registered beginning with 1 (one). A message should be displayed after all the cars have been registered. Also, ensure that the program repeatedly shows the list of options until a point when option 2 is selected which terminates the program. Figure 1 show how the program should operate. (20 Marks) Welcome to Route 15 Corporate Office Park. Please Select an option (1) Register a Car (2) Exit Program **** 1 How many cars are you registering?: 2 Enter Driver License Number for car 1: 5FIUB864978 Enter Car Registration Number for car 1: HG15LIGP Enter Driver License Number for car 2: 8YUIF789459 Enter Car Registration Number for car 2: FD78UIGP The cars have been successfully registered! Welcome to Route 15 corporate office Park. Please Select an Option (1) Register a Car (2) Exit Program Figure 1: Route 15 Corporate Office Park om
Route 15 Corporate Office Park Route 15 is a corporate office park that offers office space for start-up companies. They recently installed a boom gate at their main entrance. They would like to put up a car registration system that registers visitors that enter the office park. They approached you as a C++ developer to help them achieve their goal. Use this information to answer the following questions. Source: Gaddis, 1, 2016. Staring out with C++ - From control structures through objects. Pearson, (Accessed: 14 June 202ยน), Question 5 Create a C++ program that initially displays a menu to the user. The menu should have two options, namely (1) Add car registration, and (2) Exit the program. The program should make use of a function called registerCar() to register a car visiting the office park. You may use an array to store the car details. When option 1 is selected, the user is asked how many cars are being registered then is prompted to add the license number of the driver and the car registration number. It should also display the car number being registered beginning with 1 (one). A message should be displayed after all the cars have been registered. Also, ensure that the program repeatedly shows the list of options until a point when option 2 is selected which terminates the program. Figure 1 show how the program should operate. (20 Marks) Welcome to Route 15 Corporate Office Park. Please Select an option (1) Register a Car (2) Exit Program **** 1 How many cars are you registering?: 2 Enter Driver License Number for car 1: 5FIUB864978 Enter Car Registration Number for car 1: HG15LIGP Enter Driver License Number for car 2: 8YUIF789459 Enter Car Registration Number for car 2: FD78UIGP The cars have been successfully registered! Welcome to Route 15 corporate office Park. Please Select an Option (1) Register a Car (2) Exit Program Figure 1: Route 15 Corporate Office Park om