subject

1. Construct a program that does the following: a. Display your name and the assignment number using println().
b. Prompt the user and read in four integers (i1, i2, i3, i4) (use print()
c. Displays the four integers to the screen (use println())
d. Using the entered values, display the following results:
e. i1 + i2 + i3 + i4
f. i1 * i2 - i3 * i4
g. i1 * (i2 + i3) * i4
h. (i1 + i2 + i3 + i4) % i1
i. Output the lesser of i1 and i2 using printf.
j. Output the greater of i1+i2 and i3*i4 using printf.
k. Determine if i1 is a multiple of i2, i3, or i4. Display the determination results (Hint: use the Remainder (%) operator).
2. Set a breakpoint after the four integers have been entered and determine the values using the variable/watch window.
3. Take a screen shot of #2 Zip NetBeans project and submit the file and the screen shot to BlackBoard.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
If the average computer chip had 1,200 transistors per square inch in 1970, approximately how many transistors per square inch would one have in 1976? use moore's law to calculate your answer
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
A( the heart of an information system, is a collection of all relevant facts organized in a series of integrated files.
Answers: 1
You know the right answer?
1. Construct a program that does the following: a. Display your name and the assignment number usin...
Questions
question
Health, 12.09.2021 22:30
question
Mathematics, 12.09.2021 22:30
question
Mathematics, 12.09.2021 22:30
Questions on the website: 13722367