Exercise 1: Create a JAVA program that prompts the user to enter a numerical test mark and displays the corresponding feedback of the "test mark", using the following equivalence: 9, 10 = Outstanding 7, 8 = Notable 6 = Good 5 = Approved 0 - 4 = Fail Your program must ask the user for a numerical mark and display the corresponding test mark. Your code should at first validate the user input to be a positive integer value. You must solve this problem using both: "if" condition. "switch" condition.
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
![Exercise 1:
Create a JAVA program that prompts the user to enter a numerical test mark and displays the
corresponding feedback of the "test mark", using the following equivalence:
9, 10 = Outstanding
7,8 = Notable
6 = Good
5 = Approved
0 - 4 = Fail
Your program must ask the user for a numerical mark and display the corresponding test mark. Your
code should at first validate the user input to be a positive integer value.
You must solve this problem using both:
"if" condition.
"switch" condition.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6a6964dd-cf60-4df1-8ed5-c4b245874ed7%2F4e6621ea-79f6-456a-ab43-afe2d52b36e7%2Flpnpxj6_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)