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 main function that declares two rectangle object as follows:
The first name rect1 is created using the overridden default constructor.
The second named rect2 has a height of 5 and width of 10 assigned by the parameterized constructor.
Use setWidth and setHeight to assign rect1 a width of 100 and height of 25 respectively.
Call computeArea and computePerimeter for each rectangle object.
Call getArea and getPerimeter and display the area and perimeter of each rectangle.

Among the above gropus, only groups 1,2 and 3 are valid groups, whereas group 4 is invalid because it consists of only 2 members.

hence, the output is 3.


Given an array A of N integers and two integers X and Y, find the number of integers in the array that are both less than or equal to X and divisible by Y.


given the value added tax is 15% of the cost of a product ,design an interface and write a program that accepts any cost of a product and calculates the value added tax given output


A car completes its journey in three parts. It travels the first X km of its journey at an average
speed of x_Speed m/s and the next Y km at an average speed of y_Speed km/h. The car completes the
last part of its journey at an average speed of z_Speed km/h in z_Minutes minutes. Here X, x_Speed, Y,
y_Speed, z_Speed, and z_Minutes are all variables whose values you will have to take as an input from the
user. Find the average speed for its entire journey, giving your answer in km/h.
à ƒ ƒ °  ‘ à ƒ ƒ °  ‘ Ãƒ ƒ ƒ °  ‘ ’à ƒ ƒ °  ‘ ’à ƒ ƒ °  ‘ ‘ =à ƒ ƒ °  ‘ ‘à ƒ ƒ °  ‘ –à ƒ ƒ °  ‘ à ƒ ƒ °  ‘ ¡Ãƒ ƒ ƒ °  ‘ ŽÃƒ ƒ ƒ °  ‘ ›Ãƒ ƒ ƒ °  ‘ Ãƒ ƒ ƒ °  ‘ ’ /à ƒ ƒ °  ‘ ¡Ãƒ ƒ ƒ °  ‘ –à ƒ ƒ °  ‘ šÃƒ ƒ ƒ °  ‘ ’

Write a loop to print 56 to 70 inclusive (this means it should include both the 56 and 70). The output should all be written out on the same line.

Sample Run

A passenger train travels at a speed of 72 km/h. A man on the passenger train observes a
goods train travelling at a speed of 54 km/h in the opposite direction. If the good train passes him in X
seconds, write a C++ function to find the length of the goods train.

Design wrapper classes about the surface area of a rectangle


5. Not Less than Three

by CodeChum Admin

Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.


Let's go!


Input

A line containing an integer.

8

Output

Multiple lines containing an integer.

4
5
6
7
8






LATEST TUTORIALS
APPROVED BY CLIENTS