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, 21.06.2019 16:00
What tool can discover and report computer errors and conflicts that occur when you first turn on a computer and before the operating system?
Answers: 1
question
Computers and Technology, 21.06.2019 23:30
Step 1: choose your topics review the project milestone reflections you submitted for modules 1 through 4. choose the one major idea or concept from each module that you feel most applies to your life. in addition, choose an important concept from module 5 that applies to your life. step 2: write your guidebook for each module: write a catchy headline that clearly and concisely sums up your chosen idea or concept write a brief explanation that includes a description of the concept, why it is important, and how it can be applied to your life to make a positive impact choose an exciting, powerful, or engaging image that illustrates your concept remember, you are writing one for each module, so you will have a total of five headlines, five descriptions, and five images. step 3: design your guidebook choose a format to present your digital guidebook. there are many 21st century tools available for creating and submitting your work in the online environment. for more information on tools your school uses, contact your instructor or visit the web 2.0 tools area.
Answers: 3
question
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
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, 07.05.2021 21:20
question
History, 07.05.2021 21:20
question
Mathematics, 07.05.2021 21:20
question
Mathematics, 07.05.2021 21:20
Questions on the website: 13722361