0% found this document useful (0 votes)
3 views1 page

C++ Assign 1

The document outlines a series of programming tasks, including displaying student information, calculating surface areas, executing projectile motion equations, determining sales commission based on sales figures, checking for leap years, and identifying character types while converting case. Each task specifies the required inputs and expected outputs. The programs aim to enhance programming skills through practical applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

C++ Assign 1

The document outlines a series of programming tasks, including displaying student information, calculating surface areas, executing projectile motion equations, determining sales commission based on sales figures, checking for leap years, and identifying character types while converting case. Each task specifies the required inputs and expected outputs. The programs aim to enhance programming skills through practical applications.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a program to display student information like Name, Roll no, Gender, Address,
Percentage of Previous Examination.
2. Write a program to calculate surface area of sphere and trapezium by entering required
values.
3. Write a program to execute the expression for projectile motion.
s = ut+1/2 at2
where s: Displacement; u: initial velocity, a : acceleration t: time
4. Write a program to find the commission on a salesman's total sales.
The commission on a salesman’s total sales is as follows:
a) If sales <100, then there is no commission.
b) If 100>=sales <=500, then commission = 10% of sales.
c) If sales > 500, then commission = 100+8% of sales above 500.
Display details of salesman

5. Write a program to accept year (4-Digit>1900) and check whether it is a leap year or not.
6. Write a program to check whether entered character is digits, special symbol or alphabet. If
the alphabet is uppercase then display it into lowercase and vice versa.

You might also like