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:20
Your program will make use of long long int variables for all calculations. note: the use of long long int requires that you have c++11 support. you should have this automatically if you are using a newer version of visual studio. the support is there for gcc as well, but you may need the -std=c++11 or -std=c++0x compiler flag. you first need to read in the total number of seconds. there is no prompt for the read (that is, you just do the cin without using a cout to display a prompt). this is going to seem a little strange when you are running your program in your ide
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
William travels a lot on business purpose. he needs to regularly communicate with his business partner. he also needs to send out weekly reports to his boss while he is traveling. which web-based application best suits william’s needs? (social media, webmail, wiki) is the best web-based application for william. he can access this application via the internet using a (digital cable, fax machine, web browser).
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
Questions on the website: 13722363