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, 21.06.2019 21:00
It is not a good idea in a cover letter to mention another person whom the employer knows.
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
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
Mathematics, 30.10.2020 21:40
question
English, 30.10.2020 21:40
question
Mathematics, 30.10.2020 21:40
question
Mathematics, 30.10.2020 21:40
question
Spanish, 30.10.2020 21:40
Questions on the website: 13722367