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 15:30
To increase sales, robert sends out a newsletter to his customers each month, letting them know about new products and ways in which to use them. in order to protect his customers' privacy, he uses this field when addressing his e-mail. attach bcc forward to
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Respond to the following in three to five sentences. select the workplace skill, habit, or attitude described in this chapter that you believe is most important for being a successful employee.
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
You know the right answer?
​The activity is meant to test your understanding on how to implement decision making in
your...
Questions
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 17:01
question
World Languages, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Physics, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
French, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
History, 17.09.2020 17:01
question
Mathematics, 17.09.2020 17:01
question
Arts, 17.09.2020 17:01
Questions on the website: 13722363