subject

Write a statement that reads 5 successive integers into these variables that have already been declared : x1 x2x3x4 x5. then write a statement that prints each out on its own line so that they form a right-justified column with a 5-digit width. if any of the integers are 5-digits in size, then they will start at the very beginning of their lines. for example: |54213| 8713| 23| 147| 15cin > > x1 > > x2 > > x3 > > x4 > > x5; cout < < setw(5) < < right < < x1 < < "\n"; cout < < setw(5) < < right < < x2 < < "\n"; cout < < setw(5) < < right < < x3 < < "\n"; cout < < setw(5) < < right < < x4 < < "\n"; cout < < setw(5) < < right < < x5 < < "\n";

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Jace needs to answer a question on square roots to win a quiz. how can he use a spreadsheet to find the square root of 786? a. use the functions round and count b. create a table and chart c. use the function sqrt d. use the function now
Answers: 3
question
Computers and Technology, 24.06.2019 10:20
Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should not be added to the list). these values entered by the user are added to a list we call 'initial_list'. then write a function that takes this initial_list as input and returns another list with 3 copies of every value in the initial_list. finally, inside print out all of the values in the new list. for example: input: enter value to be added to list: a enter value to be added to list: b enter value to be added to list: c enter value to be added to list: exit output: a b c a b c a b c note how 'exit' is not added to the list. also, your program needs to be able to handle any variation of 'exit' such as 'exit', 'exit' etc. and treat them all as 'exit'.
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
Write a program that begins by reading in a series of positive integers on a single line of input and then computes and prints the product of those integers. integers are accepted and multiplied until the user enters an integer less than 1. this final number is not part of the product. then, the program prints the product. if the first entered number is negative or 0, the program must print “bad input.” and terminate immediately
Answers: 2
You know the right answer?
Write a statement that reads 5 successive integers into these variables that have already been decla...
Questions
question
English, 02.08.2019 22:00