Write a C++ program that
1. Prompt user to enter two integer a and b.
2. Then prints a b rows each of which contains a * b columns of Xs,
but after each group of b complete columns the program prints a|
symbol (35 pts)
An example run of the program follows.
a=3, b = 5
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
XXXXX|XXXXX|XXXXX|
CODE :

OUTPUT :

Raw_Code :
#include<iostream>
using namespace std;
int main(){
int a,b;
cout<<"Enter value of a:";
//taking a and b as inputs
cin>>a;
cout<<"Enter value of b:";
cin>>b;
for(int i=0;i<a+b;i++){ //loop to print rows
for(int
j=1;j<=a*b;j++){ //loop to print columns
cout<<"X";
if(j%b==0){
//if it's after group of b then
cout<<"|";
}
}
cout<<"\n";
//printing newline after each row
}
}
**********Comment me for any Queries and Rate me up**************
Write a C++ program that 1. Prompt user to enter two integer a and b. 2....
Write a program which prompts the user to enter a number of rows, and prints a hollow square star pattern with 2 diagonals. Note: you can assume that the integer will always be > 1 and will be an odd number. For example: Input Result 5 Enter number of rows: 5 ***** ** ** * * * ** ** ***** 9 Enter number of rows: 9 ** ** ** * * * * * * * * * * **...
Write a Java program that performs these operations Prompt the user to enter a low height in feet (an integer) Prompt the user to enter a high height in feet (an integer) Prompt the user to enter a low weight in pounds (an integer) Prompt the user to enter a high weight in pounds (an integer) Print a table of Body Mass Index (BMI) for the heights and weights entered, ranging from the low height to the high height (inclusive),...
QUESTION 12 Write a program that would prompt the user to enter an integer. The program then would displays a table of squares and cubes from 1 to the value entered by the user. The program should prompt the user to continue if they wish. Name your class NumberPowers.java, add header and sample output as block comments and uploaded it to this link. Use these formulas for calculating squares and cubes are: square = x * x cube = x...
Using Python, write a program that prompts the user to enter their age as an integer and then prints out a message that says I suspect you were born in the year xxxx where "xxxx" is the current year minus the age entered. An example run where the user entered 10 for their age, would look like this: Please enter your age as an integer: 10 I suspect you were born in 2009
Write a Java program to prompt for inputting an integer N, then enter N integers (a loop is needed), print the numbers user entered, and the amount of even and odd numbers (zero is even number). (1) Prompt for the user to input an integer and output the integer. (1 pts) Enter an integer: You entered: 5 (2) Prompt for the user to input N integers, output the numbers entered and the amount of even and odd numbers (9 pts)...
2. Write a C++ program that asks the user to enter a integer between 1 and 10. Continue to prompt the user while the value entered does not fall within the range. When the user is successful display a congratulatory message. Save file as OneToTen.
Please help!! I need help with C++ and im using the program Atom.
Q6 Write a complete C++ program that does the following. 1. It asks the user to enter positive integers a and b that are each at most 100. 2. The 3. The program determines and prints the maximum entry in each column of the table. 4. The program then prints the smallest value among these maximum entries. For example, the following represents one run of the program....
Write a Python program to prompt the user for an integer number. Assign this integer to a variable X. Then assign a variable Y to the X**3 (X to the power 3). Finally, assign the variable Z to the square root of Y and print the values of X, Y, and Z as shown in the example below. Use main() function to define and call the program. Example: Enter an integer number: 3 X = 3 if Y=X**3 then Y...
Write algorithm for a program that will prompt user to enter x and y coordinates of two points : (x1, y1) and (x2, y2) the calculate the distance between these two points. For example, if the two points are as shown below, then distance d can be evaluated using the formula below. Formula for this distance d is:Submit printout - with your name on top. Question 2 Implement the algorithm above in Java Submit printout of source code - with your name on top. Also...
4. Write a program that asks the user for a positive integer no greater than 15. The program should then display a square on the screen using the character 'X'. The number entered by the user will be the length of each side of the square. For example, if the user enters 5, the program should display the following: XXXXX XXXXX XXXXX XXXXX XXXXX c++