Question: Answer all 3 in C++ please Write a program that generates the following table: Use a single cout statement for all output. 2. Write a
Write a program that generates the following table: Use a single cout statement for all output. 2. Write a program that generates the following output: 102019 Use an integer constant for the 10 , an arithmetic assignment operator to generate the 20 , and a decrement operator to generate the 19. 3. When a value is smaller than a field specified with setw(), the unused locations are, by default, filled in with spaces. The manipulator setfill() takes a single character as an argument and causes this character to be substituted for spaces in the empty parts of a field. Rewrite the wIDTH program so that the characters on each line between the location name and the population number are filled in with periods instead of spaces, as in Portcity .....2425785
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
