Question: Use C++ language Develop a code which starts by asking the user how many rows they want to fill in a table. You should only


Use C++ language
Develop a code which starts by asking the user how many rows they want to fill in a table. You should only allow the user to input a zero or positive number. Do not ask the user how many columns are to be filled in. The code will then show to the user the number of the row they are going to fill in. It will then prompt the user to input a positive integer number, or 0, or -1. An inputted positive number or 0 will be used to fill in the position of the table in the respective row and column. When prompting the user to introduce this number(s) show the user the number of the row and the number of the column in which the number will be inputted - with first row being row 1 and first column being column 1. Only accept positive numbers, or 0, or -1. After being sure that the user inputted a positive integer number, a 0, or a -1, do: With the user inputting a positive integer number, different than 0 or -1, print a message in the screen saying: "You inputted a positive number." Otherwise, with the user inputting a 0, print a message in the screen saying: "Pay attention that you just inputted a 0". With the user inputting a -1, print a message in the screen saying: "You are going to jump to the next row". The code will then jump to the next row. Use loops in your developed code and increments and decrements. Full marks if you use different types of loops and also at least one If condition. Bonus marks if you use nested Ifs or/and OR or/and AND operators
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
