Write a program to print a parallelogram pattern with * characters. The size N represents the length (the number of * characters in each line)& breadth ( the number of lines) of the parallelogram.
The slope of the parallelogram T represents the number of extra spaces a line should have in the beginning compared to its next line. The last line of the pattern does not have any spaces in the beginning.
Explanation:
Given N=3 and T=2
Each line should have 3 star(*) characters.
The last line should have 0 spaces at the beginning.
Each line has 2 extra spaces characters when compared to its next line.
Sample Input1
2
2
Sample Output1
**
**Sample Input2
3
2
Sample Output2
***
***
***how much heat energy is used to vaporize 3.5 mol of chloroethane at its normal boiling point 12.3°c given Hvap= 24.7k/mol
The "human cannonball" has long been a popular and extremely dangerous circus
stunt.
A person with a mass of 45kg starts at rest and leaves the cannon with a final speed of
25m/s after a 1600N force is applied to them by the cannon. For how much time was the
force being applied to the person?
program to check whether a no is palindrome or not using friend function.
Program to print fibonacci series using classes and objects
Write a program to print a parallelogram pattern with * characters. The size N represents the length (the number of * characters in each line)& breadth ( the number of lines) of the parallelogram.
The slope of the parallelogram T represents the number of extra spaces a line should have in the beginning compared to its next line. The last line of the pattern does not have any spaces in the beginning.
Explanation:
Given N=3 and T=2, each line should have 3 star(*) characters.
The last line should have 0 spaces at the beginning.
Each line has 2 extra spaces characters when compared to its next line.
Sample Input1
2
2
Sample Output1
**
**Sample Input2
3
2
Sample Output2
***
***
***: Write a program to overload operators in the same program by writing suitable operator friend
functions for following expression:
O7=((O1>=O2) +(O3 && O4) *(O5<O6)) [Here O1,O2,O3,O4,O5,O6 and O7 are objects of a class
“overloading”, and this class is having one integer data member]
. The radioactive isotope carbon-10 has a half-life of 20 seconds.
a. How much time is required so that only 1/16 of the original amount remains?
b. Find the rate of decay at this time.
Write c++ program that receives the radius of a circle and calculate The area
Keith’s Florists has 15 delivery trucks, used mainly to deliver flowers and flower arrangements in the Greenville, South Carolina, area. Of these 15 trucks, 6 have
brake problems. A sample of five trucks is randomly selected. What is the probability that two of those tested have defective brakes?