Cpcs202 - you need to display the main menu in a loop why


Purpose:

The purpose of this assignment is to practice using loops, selections, and other basic features of Java in order to solve a real-world problem.

Program Description:

The Jeddah Broker Company is one of the companies here in Jeddah which act as broker between government ministries and the people. Jeddah Broker Company supplies many services with great prices!

Jeddah Broker Company is needing a new e-Portal, which should allow people to perform the following actions:
- get information about the supplied services
- make appointments for different types of services (sales or pay bills)
- submit customer feedback or complaint

Program Details:

You need to display the main menu in a loop! Why? Because after the customer makes their choices, the menu should appear again. The customer can then exit the system or perform other services.

Additionally, some of the sub-menus should be in a loop, constantly asking the user for their choice if/when an invalid choice is entered. See output for detailed examples.

All service information is given to you on the final page(s) of this PDF. Please use the exact information in those tables for your program.

Important:
There are many cases to consider. Make sure you study the output file CAREFULLY to make sure your program works 100%.

The BEST problem-solving strategy is for YOU to study the output and try to understand what is happening and how you can solve it in code.

Additionally, we give brief description on the next page for some components of your program.

Program 3 Details:

All service information is given to you on the final page(s) of this PDF. Please use the exact information in those tables for your program.

Write a program that meet the following requirements of the company. The program at the first display the menu

Welcome to Jeddah Broker Company Customer e-Portal

1 : Get information about the Supplied Services |
2 : Make appointments for different types of services(Request or Pay Bill ) |
3 : Submit customer feedback or complaint |
4 : Exit

> Please enter your choice:

if the user choose any choice from 1 to 3, the next menu will be displayed

------- SERVICES -------

E or e : Electricity Services |
W or w : Water Services |
C or c : Communication Services |
P or p : Return to Main Menu

> Please enter the choice:

- If the user choose 1 from main menu and choose any service from the services menu, the menu related to different types of requests for this service will display. For example if the user choose E for Electricity services, the types of electricity menu will display.

------- ELECTRICITY -------

| R or r: Residential |
| C or c: Commercial |
| A or a: Agricultural |
| H or h: Charities |
| P or p: Previous Menu |
-----------------------------------

> Please enter the choice:

Based on the choice from the electricity menu the information for this type of service will display according to information available in the Table 1. See output for more details.

- If the user choose 1 from main menu and choose for example W for Water services, the types of services of water menu will display.

------- WATER -------
------------------------------------
| N or n: New Connection |
| T or t: Request Tanker |
| O or o: Open Meter |
| P or p: Previous Menu |
-----------------------------------
> Please enter the choice:

Based on the choice from the water menu the information for this type of service will display according to information available in the Table 1. See output for more details.

- If the user choose 1 from main menu and choose any for example C for Communication services, the types of services of STC menu will display.

------- STC -------

|
| MS:
MR: Mobile Postpaid
Mobile Prepaid |
|
| LL: Land Line |
| IN: Internet |
| PR: Previous Menu |
-----------------------------------
> Please enter the choice:

Based on the choice from the STC menu the information for this type of service will display according to information available in the Table 1. See output for more details. Note: The choices here are of type String

- if the user choose 2 from main menu, choose any service from the services menu and choose the specific service, the appointment type menu will display.

------ APPOINTMENT TYPE ------
| 1: Service Request Appointment |
| 2: Pay Bill Appointment |
| 3: Previous Menu |
-----------------------------------
> Please enter the choice:

- If the user choose 1 from the appointment type menu, the program will ask him to enter some information such as name, mobile and other information and display the entered information. Please see output.

- If the user choose 2 from the appointment type menu, the program will ask him to enter some information such as name, mobile and other information and display the entered information. Please see output.

- If the user choose 3, the program will return back to the previous menu
electricity or water or STC menu based on his choice.

- if the user choose 3 from main menu, choose any service from the services menu and choose the specific service, the feedback/complaint menu will display

------ FEEDBACK/COMPLAINT ------
-------------------------------------
| 1: Submit Feedback |
| 2: Submit Complaint |
| 3: Previous Menu |
-----------------------------------
> Please enter the choice:

Please see the output related to this menu and other choices for other menu

- When the user choose 4 from main menu, the summary of activities table should be shown similar to the one in the output.

Input validation

If the user enter incorrect choice, the program should continue to show the menu and display the message "Invalid Input!!! Please Try Again."

Attachment:- SAMPLERUN.pdf

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Cpcs202 - you need to display the main menu in a loop why
Reference No:- TGS01589536

Expected delivery within 24 Hours