Introduction To Java Project

Deadline: Thursday 25/11/2020 @ 23:59
Computer programming

College of Computing and Informatics



pg. 2
I. Project objective:
This project is an opportunity for you to practice your knowledge in java. It will allow you to develop your skills of working within a team, thanks to your interaction with your colleagues in designing and creating a small program.
II. Project Description:
The project is about the creation of a simple calculator. The calculator should achieve different mathematical operations such as addition, multiplication, division, subtraction, modulo, cos, sin, absolute value, power, square root, minimum, maximum, …
Your program should show to the user a menu with different possible operations. The menu should contain at least seven different operations. The last option in the menu should allow the user to end the program.
Figure 1 shows an example of a menu. You have to create your menu with the operations that you have selected. It is not necessary to follow the same output given in the example.

Figure 1: Example of a menu
If the user enters a wrong number (out of the possible range), then an error message will appear and the program asks the user to reenter a correct number.
Once the user selects an operation, the program should clear the screen using the clrscr() method (Cf Figure 3, section III) then ask the user to enter the needed operand(s) and print the answer (See Figure 2)

Figure 2: Example of a menu
Once the user presses any key, the program clears the screen then the menu appears again and the user can choose a new operation.
III. Hint (how to clear the screen):
To clear the output screen when you display the menu, you can use the method: clrscr(). The program below keeps asking the user for a positive number and clears the screen each time the user gives a negative number.
import java.util.Scanner;
public class Main
//this method is used to clear the screen
public static void clrscr()
if (System.getProperty(“”).contains(“Windows”))
new ProcessBuilder(“cmd”, “/c”, “cls”).inheritIO().start().waitFor();
} catch (IOException | InterruptedException ex) {}
public static void main(String[] args)
Scanner in = new Scanner(;
System.out.println(“Give a positve number”);
int a = in.nextInt();
while (a<0)
clrscr();//clear the screen
System.out.println(“Error!! Regive a positve number”);
a = in.nextInt();
Figure 3: How to clear the screen
IV. Marking Criteria

The program is error-free

The menu is printed correctly

The menu works correctly

The calculator works correctly

At least 7 operations are used in the calculator

Output screenshots in the report

The code is well documented (commented)


Final Grade

1. Brief description
Provide a brief description of your program in this section.
2. Program code
Put the code of your program in this section. Do not forget to document (comment) on your code.
3. Screenshots
Put the different screenshots with a brief description in this section (at least 6 screenshots).

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Open chat
You can contact our live agent via WhatsApp! Via + 1 3234125597

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 30% with the discount code GIFT