Write a program in C++ to read a number n and find out the sum of the integers from 1 to
then from 1 to 3, then 1 to 4, and so on and to display the sum of the integers from 1 to
n.
For example, from
1 to 2 = 1
1 to 3 = 3
1 to 4 = 6
1 to 5 = 10
1 to 6 = 18
If we know that the roots of the cubic equation x3 - 61x2 -8000 = 0 are in G.P., then find the roots of the equation.
Develop a small application in C++ that should allow the user of application to enter the receipt number, sender name, sender address, receiver name, receiver address, shipment fee and parcel weight. After getting required information, generate a shipment receipt and show as summary on screen.
Write a program to determine the entered character is an alphabet or number or special character using if – else-if – else.
Instruction: This program read a character value from the user and displays whether it is an alphabet or number or special character, with a suitable message.
Write a program to implement the Date class which has three data members named day, month and year.
1. Provide a constructor, which takes arguments (you may set values of data members to 0).
2. Write getter and setter functions (input and show functions) for the Date class.
3. Also write a member function void CompareDates(Date d1, Date d2) which tells which date comes first.
Create a class Circle having a data member radius. The class should be capable of calculating the area. Compare the areas of two circles and also displaying the area of which circle is greater. Make all the necessary function as needed including constructors.
A flask is charged with 2.00 atm of nitrogen dioxide and 1.00 atm of dinitrogen tetroxide at 25 °C and allowed to reach equilibrium. When equilibrium is established, the partial pressure of NO2 has decreased by 1.24 atm.
(a) What are the partial pressures of NO2 and N2O4 at equilibrium?
(b) Calculate and for Kp and Kc following reaction at 25 °C.
2NO2 (g) ↔ N2O2 (g)
(Answer: K p = 2.80; K c = 68.6)
Write a program of static data memeber
n a game of gambling a player tossesa fair coin. Ifit falls head,he wins 100 cedis and if it
falls tail he loss 100 cedis. Aplayer with 800 cedis tossesthe coin six times. What is the
probability that he will be left with 600 cedis?
How many molecules of hydrochloric acid (HCI) are required to react with 10.0
grams of zinc (Zn)?