Question: q1-Write a Java program that allows the user to enter integer numbers as much as the user wish ( the loop is going until the

q1-Write a Java program that allows the user to enter integer numbers as much as the user wish ( the loop is going until the user enter -1 ) then it shows the sum of that numbers.
q2-Write a Java Program for a receptionist, first, the receptionist will accept a certain number of customers (as per user input) and for each customer, the receptionist will take their name and the fees they paid. After the receptionist serves all the customers, the program will display the total amount of fees paid by all of those customers.
q3-Modify the program you created in Lab# 5 Ex. 2.

Implement a simple calculator, this time utilizing a loop mechanism to enable the user to use the calculator more than once.

The program does the following:

It prompts the user to enter 2 numbers.

It prompts the user to choose an operation to perform on those numbers:

- Operation 1: Addition.

- Operation 2: Subtraction.

- Operation 3: Multiplication.

- Operation 4: Division.

It outputs the result of the operation.


It asks the user if they want to perform another calculation, using "-1" as a stop value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!