Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program to find the table of numbers using a while loop. Your program should ask the size of the table. That size defines the rows and columns. Sample output:


IT must be done using WHILE loop.


Enter size: 6

1 2 3 4 5 6

------------------------------------------

1* 1 2 3 4 5 6

2* 2 4 6 8 10 12

3* 3 6 9 12 15 18

4* 4 8 12 16 20 24

5* 5 10 15 20 25 30

6* 6 12 18 24 30 36


write A C++ program to display output using while loop only


+------+

| ^^ |

| ^ ^ |

|^  ^|

| ^^ |

| ^ ^ |

|^  ^|

+------+

|v  v|

| v v |

| vv |

|v  v|

| v v |

| vv |

+------+


Consider following basic structures to represent a rectangle. You can add more functions or members as per your need:


struct Rectangle {

int x;

int y;

int w;// width

int h; // height

};


1. Generate N number of rectangles with different sizes

2. Find the area of all generated rectangles and display them.

3. Sort rectangles based on their area.

4. Implement following method to return true of first rectangle is greater than the 2nd

rectangle:

bool compareRect(Rectangle r1,Rectangle r2)

5. Check which rectangles have the same area and display it.

6. Generate a random line. Find the number of rectangles that this line with.


A number is called a happy number, if you start with the given number



and arrive at 1 by repeating the following process (as illustrated in the below example): (a)



compute the sum of the squares of given number digits (b) if the resultant value is 1, then



the number is happy number, else execute point (a) for the newly produced number.



Note that if a number is not a happy number, there will be an endless loop to this execution.



Goal: In this question, you are required to write C++ code that checks whether the number



entered by the user is a happy number or not for 10 cycles/iterations only.



Example: Assume a number 19



Number Computation Result cycle/iterations



19 1



2 + 9



2 82 1



82 8



2 + 2



2 68 2



68 6



2 + 8



2 100 3



100 1



2 + 0



2 +0



2 1 4

A basketball player throws the ball at the different angles. At which of the following angles will the ball achieve the maximum height? A. 35.0° B. 45.0° C. 65.0° D. 70.0°


For example if the given two strings A and B are "ramisgood" "goodforall"





The output should be "good"

Use nested while loop to print this shape





+----------+



| ^^ |



| ^ ^ |



| ^ ^ |



| ^^ |



| ^ ^ |



| ^ ^ |



+----------+



|v v|



| v v |



| vv |



|v v|



| v v |



| vv |



+----------+

Write a program to take input your name. Now write a function to print your name



in reverse order (eg. RAM KUMAR becomes RAMUK MAR). Then Write one more



function to find sum of ASCII values of all the characters (including space) in your



name using function.

Create classes as per below structure and add below functionalities



1. Add getter and setter member functions and display function in student, Test and sports



classes.



2. Result class only display all the data of Student, sports and test. and also calculate the total as



Total= marks of subject+ score for sports and display that also.

word count problem:

input: hello world welcome to python world

output:

hello: 1

world: 2

welcome: 1

to: 1

python: 1


LATEST TUTORIALS
APPROVED BY CLIENTS