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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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