Thank you
for choosing Habsida.
Now you only need to complete the Java Admission Task Challenge!
A Admission Task Challenge is a necessary requirement when choosing the "Pay after employment" plan. After completing the task, the coordinator will contact you and invite for an admission interview.
The start of the next course is April 15.
Get you spot!
Days
Hours
Minutes
Seconds
Here's what you need to do:
1
Admission Task Challenge
Create the "Calculator" app with easy-to-follow guidelines.
2
Interview
After completing the task, we'll arrange a stress-free admission interview.
3
Education
In just 6-8 months, you'll be ready for a successful career as a Developer
4
IT Career
With your industry portfolio and interview skillset ready, you'll be on your way to a thriving IT career!
Admission task

Description of admission task "Calculator"

Create a console application "Calculator". The application must read the arithmetic operations entered by the user from the console and output the result of their execution to the console.

User inputs the whole mathematical expression in ONE line. Solutions that prompt the user to enter digits and operations one by one are NOT eligible.
Requirements

  1. The calculator can perform addition, subtraction, multiplication and division operations with THREE numbers: a + b - c, a - b + c, a * b - c, a / b * c.
  2. Two numbers can also be used as input.
  3. The calculator must accept input numbers from 1 to 10 inclusive, no more. At the output, the numbers are not limited in size.
  4. The calculator can only work with integers.
  5. When the user enters invalid numbers, the application throws an exception and exits.
  6. When the user enters a string that does not match one of the above arithmetic operations, the application throws an exception and exits.

Input:
5 - 2 + 8
Output:
11
Input:
5 + 8 - 2
Output:
11
Input:
-5 + 8 * 2
Output:
11

Evaluation criteria

Pay attention to the principles of OOP, try to break the program into logical classes. Solutions in which all the program code is in one class will be underestimated. Demonstrate your skill in working with different syntactic constructions, do not forget about exceptional situations in which the program cannot be executed due to incorrect input data.
How to submit the solution?
1
Create repository
You need to create your own PUBLIC repository on Github
2
Add the solution
Add project to the created repository
3
Send us the link
Send us the link to the repository to email info@schoice.co with the subject Java Calculator Task.
Struggling? We've got you covered!
We offer a free crash course to get you started in Java from scratch.
Still need help?
Consider our course with mentor support for expert guidance.
Help Section
It's easier than you think!
WhatsApp
Telegram
If you still have questions, we're only one button away.
© 2023 Habsida School
Address
Schoice Habsida, Inc
주식회사 에스초이스 합시다

Block 3, 1st floor, 20, Pangyo-ro, 289 beon-gil, Bundang-gu, Seongnam-si, Gyeonggi-do
경기도 성남시 판교로 289번길 20 스타트업 캠퍼스 1