[SOLVED] CSE212 LABWORK 1 – SECTION 2

40.00 $

Category: Tags: , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Labwork1-dy1vmv.zip (67.5 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Below, you can find the description of your lab work for today, which also contains the

expected output of this lab work in the Application Walkthrough section.

This term, as part of your laboratory sessions, you are required to develop an Online Movies and Series Rental system. For the first week, you are just going to create a simple system that displays information about customers in a loop as follows;

(1) Create a new customer. (2) Display customer information. (0) Exit.

You are required to create a “Customer” class that has an id, a name, and an age variable.

This class will also require a displayInfo() method to print the information about the customer.

The application should come up with a menu where the user selects either 1, 2, or 0. If the option ‘1’ is selected, the program will ask for the customer details. If option ‘2’ is selected, the program will display information about all the customers. And finally, if option ‘0’ is entered, the application will quit the program loop and terminate.

You can use basic C-style arrays to store member information.

Application Walkthrough

(1) Create a new customer

(2) Display customer information

(0) Exit.

1

Enter id:

10

Enter name:

Anakin Skywalker

Enter age:

22

(1) Create a new customer

(2) Display customer information

(0) Exit.

1

Enter id:

5

Enter name:

Obi-Wan Kenobi

Enter age:

47

(1) Create a new customer

(2) Display customer information

(0) Exit.

2

ID: 10

Name: Anakin Skywalker

Age: 22

ID: 5

Name:Obi-Wan Kenobi

Age: 47

(1) Create a new customer

(2) Display customer information

(0) Exit.

0

 

  • Labwork1-dy1vmv.zip