Display the main menu in a loop

Assignment Help Programming Languages
Reference no: EM131205784

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

Reference no: EM131205784

Questions Cloud

Create a detailed plan that discusses your recommendations : Create a detailed plan that discusses your recommendations. Ensure that the recommendations include elements from the AHIMA Standards of Ethical Coding and address the issues exposed by the audit.
Using the human life value method : Using the "Human Life Value" method, how much life insurance should you purchase if you have 45 years until retirement, an annual income of $61,500 received at the start of each years, and a time value of money of 7%? (Assume 80% income replacement, ..
Whole foods case study questions : Review the Whole Foods Case Study (pp. 1-6) and answer the questions connected to Chapters 8, 9, 10, 11, and 12 as listed below.  Responses to each question should range from 100-200 words.
How audience affect how you approach this piece of writing : Who was the audience, and how did the audience affect how you approached this piece of writing?-  Draw upon analysis from chapter from Bazerman.
Display the main menu in a loop : CPCS202 - 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.
Distinctive competences and competitive advantages : Choose a pair of rivalry companies (I have provided some examples below) Then, develop and compare vision, mission, business model, distinctive competences and competitive advantages.
Using the flexible budget approach : The St. Lucia Blood Bank, a private charity partly supported by government grants, is located on the Caribbean island of St. Lucia. The blood bank has just finished its operations for September, which was a particularly busy month due to a powerful h..
Is overshooting consistent with purchasing power parity : How does overshooting help to resolve the empirical behavior of exchange rates in the short run versus the long run?
Temperament and project management : Consider your results from the "Keirsey Temperament Sorter II." What is your type? Evaluate your personal orientation and identify which parts will be helpful to you in managing projects.

Reviews

Write a Review

Programming Languages Questions & Answers

  Writing class containing two instance variables

Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.

  Identify components that perform distinct service

Identify components that perform a distinct service. Although the details can be quite complex, these details are the basic principles of object-oriented programming

  Distinguish between open and closed applications.

What applications are being used to make the applications on the web faster and easier to access?

  Write program to instantiate objects of inherited classes

X-Y coordinate pairs for four endpoints of Quadrilateral. Write program which instantiates objects of the classes and outputs each object's area.

  Explain why is a flowchart helpful in developing and

q1. why is a flowchart useful in developing and documenting software? why is the interactive visual logic flowchart

  Write function template to return number of element in queue

Add operation queueCount to class queueType (the array implementation of queues), to return number of elements in the queue. Write down the definition of function template.

  Complete the function function has three parameters

Complete the function: func in the following program. This function has three parameters: The first and second parameters are of type: int. The third one is a function that has two parameters of type: int and returns a value of type: int.

  Trace the program

We are going to trace the following program, i.e. simulate in your head how it would execute on a computer. To help you, a trace table is provided for you to fill. Unlike exam E1, our focus here is not only on keeping track of the values of each v..

  Write a statement that prints the message recall

Clunker Motors Inc. is recalling all vehicles from model years 1995-1998 and 2004-2006. Given a variable modelYear - Write a statement that prints the message "Recall" to standard output if the value of modelYear falls within those two ranges.

  Program to inputs encrypted four-digit integer

Write separate program to inputs encrypted four-digit integer and decrypts it to form the original number. thanks in advance for ur help.

  Write the code for a function called reverse

Write the code for a function called reverse() that is passed the army of letters and the numbers of n,a nd reverses the contents.

  Add comments to the different sections.

Add comments to the different sections.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd