Ask Programming Language Expert

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

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91961797

Have any Question?


Related Questions in Programming Language

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Structs and enumsoverviewin this task you will create a

Structs and Enums Overview In this task you will create a knight database to help Camelot keep track of all of their knights. Instructions Lets get started. 1. What the topic 5 videos, these will guide you through buildi ...

Task working with arraysoverviewin this task you will

Task: Working with Arrays Overview In this task you will create a simple program which will create and work with an array of strings. This array will then be populated with values, printed out to the console, and then, w ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As