subject

​The activity is meant to test your understanding on how to implement decision making in
your programs using the if-else, if-else-if ladder and the switch statement.
If you do not have Java installed on your laptop, you can use an internet based/online Java
compiler to do your work. Once done, copy the source code, paste it into MS word
document which you then upload to the system. You can also save and upload screen shots
with your code. You should only email your work if you are really not able to upload it to the
system. You have enough time to complete the activity hence late work will not be
marked and excuses will not be accepted.
Create one program that will do the following:
a) Receive input of three decimal numbers from the user (use scanner class for input),
compare them and display which one is the greatest number and which one is the
smallest number.
E. g.
Input:
45, 30, 90
Output:
90 is the greatest number
30 is the smallest number (10 marks)
b) Receive an integer number between 1 and 12 (use scanner class for input), compare
it with a list of cases given representing the 12 months of the year, then display
which month of the year it is depending on the number entered by the user.
E. g. Case 1: January
Case 2: February
Case 3: March
Case 4: April …………
If the user enters 3, the system will display that the month is March

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:00
Match the following. 1. show grouping of word processing tasks that can be performed quick access toolbar 2. shortcut location for commonly used elements scroll bars 3. organized commands used to modify documents ribbon 4. used to align and measure content in a word screen zoom bar 5. vertical and horizontal bars that are used to navigate through a document contextual tabs 6. displays the name of the document in use ruler 7. allows users to enlarge or shrink a visual of a word document title bar
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
​The activity is meant to test your understanding on how to implement decision making in
your...
Questions
question
Mathematics, 03.09.2020 03:01
question
Mathematics, 03.09.2020 03:01
question
Mathematics, 03.09.2020 03:01
question
Computers and Technology, 03.09.2020 03:01
question
Spanish, 03.09.2020 03:01
Questions on the website: 13722363