- Print the following shapes.
- *
* *
* * *
* * * *
* * * * *
* * * * * *
- . * * * * * * *
* * * * * *
*
* * * * * * *
* * * * * * *
* * * * * * *
- * * * * * *
* * * * *
* * * *
* * *
* *
- . *
* *
* * *
* * * *
* * * * *
* * * * * *
- * * * * * *
* *
* * *
*
* * *
* * *
* *
*
- 1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
For first 50 units Rs. 0.50/unit
For next 100 units Rs. 0.75/unit
For next 100 units Rs. 1.20/unit
For unit above 250 Rs. 1.50/unit
An
additional surcharge of 20% is added to the bill
4. Find the minimum and maximum of sequence of 10 numbers.
5. Write a program to generate and display a table of n and n 2 , for integer values of n ranging from 1 to 10. Be certain to print appropriate column headings.
1 + 1/2 + 1/3 + 1/4 + 1/5 ... 1/n terms
Test Data :
Input the number of terms : 5
Expected Output :
1/1 + 1/2 + 1/3 + 1/4 + 1/5 +
Sum of Series upto 5 terms : 2.283334
7. Find the total and average of a sequence of 10 numbers.
Index Number Name
Maths Physics
Chemistry Total Average Grade
In this program, for each student you have to input marks of
three subjects. Students’
grade is determined according to following criteria:
Average >= 90% : Grade A
Average >= 80% : Grade B
Average >= 70% : Grade C
Average >= 60% : Grade D
Average >= 40% : Grade E
Average < 40% : Grade F
0 Comments
Post a Comment