1. Assume that you want to generate a table of multiples of any given number. Write a program that allows the user to enter the number and then generates the table, formatting it into 10 columns and...

1.     Assume that you want to generate a table of multiples of any given number. Write a program that allows the user to enter the number and then generates the table, formatting it into 10 columns and 10 lines. Solve the problem with For loop. Name your program as Q1.cpp. Interaction with the program should look like this (only the first three lines are shown): (3 Marks)                     Enter a number: 7                                              7     14     21    28   35   42   49   56    63   70                                             77    84    91    98   105 112 119 126 133 140                                       147 154  161  168  175 182 189 196 203 210 2.     Repeat Q1 using while loop. Name your program as Q2.cpp.                   (2 Marks) 3.     Repeat Q1 using do while loop. Name your program as Q3.cpp.                                                                                                                                   (2 Marks) 4.     Modify the program developed in Q1 so that the user can enter a number of columns. Then generates the table whereas the columns number is the number that the user has entered while the row equals to 10. Name your program as Q4.cpp.         (3 marks)
Horosoft Word- l se Long Assignment<br>هرا در اسلات مراحه<br>I Aa<br>ايجد هوز بجد هوز جد هوز<br>Jale 1<br>BE A-<br>Problem 2: Multiples Program<br>1. Assume that you want to generate a table of multiples of any given number. Write a<br>program that allows the user to enter the number and then generates the table,<br>formatting it into 10 columns and 10 lines. Solve the problem with For loop. Name<br>your program as Q1.cpp. Interaction with the program should look like this (only the<br>first three lines are shown):<br>Enter a number: 7<br>21 28 35 42 49 56 63 70<br>77 84 91 98 105 112 119 126 133 140<br>147 154 161 168 175 182 189 196 203 210<br>2. Repeat Ql using while loop. Name your program as Q2.cpp.<br>3. Repeat Ql using do while loop. Name your program as Q3.cpp.<br>14<br>4. Modify the program developed in Ql so that the user can enter a number of columns.<br>Then generates the table whereas the columns number is the number that the user has<br>entered while the row equals to 10. Name your program as Q4.cpp.<br>Problem 3: Operator Program<br>1. Create the equivalent of a four-function calculator. The program should ask the user<br>(4<br>%23<br>WD<br>DEV<br>23°C<br>

Extracted text: Horosoft Word- l se Long Assignment هرا در اسلات مراحه I Aa ايجد هوز بجد هوز جد هوز Jale 1 BE A- Problem 2: Multiples Program 1. Assume that you want to generate a table of multiples of any given number. Write a program that allows the user to enter the number and then generates the table, formatting it into 10 columns and 10 lines. Solve the problem with For loop. Name your program as Q1.cpp. Interaction with the program should look like this (only the first three lines are shown): Enter a number: 7 21 28 35 42 49 56 63 70 77 84 91 98 105 112 119 126 133 140 147 154 161 168 175 182 189 196 203 210 2. Repeat Ql using while loop. Name your program as Q2.cpp. 3. Repeat Ql using do while loop. Name your program as Q3.cpp. 14 4. Modify the program developed in Ql so that the user can enter a number of columns. Then generates the table whereas the columns number is the number that the user has entered while the row equals to 10. Name your program as Q4.cpp. Problem 3: Operator Program 1. Create the equivalent of a four-function calculator. The program should ask the user (4 %23 WD DEV 23°C
Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here