c++ lab sheet kuppiya- 1

Download quincy

Lab Sheet 01

1.Draw a flow chart to input 2 numbers and find the total

answer1

Save

Save

Save

2. Draw a flow chart to input 3 numbers and find the average

answer2

3. Draw a flow chart to input 2 numbers and find the larger one.

answer3

Save

4. Draw a flow chart input an age of a person and find whether the person is an adult or a child. (Age>18 considered as an adult)

answer4

Save

Save

Save

5. Draw a flow chart to convert temperature from Fahrenheit degrees to Celsius degrees.
Use the equation C = 5/9*(F-32), Where C is Celsius and F is Fahrenheit.

answer5

Save

6. Draw Flow chat to input marks of 4 subjects and display Pass or fail
If Average>= 60 , “Pass” otherwise “Fail”)

answer6

Save

7. Write a program to input amount that a customer purchases a certain good, and the tax rate (in percentage) of the good, and calculate the total amount that the customer should pay for this good, and print the sales tax rate and the total amount customer paid.
Hint: sales tax = amount of purchased x tax rate.

answer7

8. Draw a flow chart to get the Number as a key board input and check whether this number is greater than 100. if number is greater than 100 print “Number is greater than 100” otherwise print “Number is less than 100”.

answer8

Save

9. Draw a flow chart to create a simple calculator. The program should allow the user to enter two numbers and an option. The options are
1. +
2. –
3. *
4. /
You should print an appropriate error message if the user enters invalid data.

answer9

Save

Save

10. Draw a flow chart to print numbers from 1 to 100.

answer10

11. Draw a flow chart to print numbers from 100 to 1

answer11

Save

12. Draw a flow chart to print odd numbers between 1 and 25

answer12

Save

13. Draw a flow chart to generate following number series
1,4,9,16,25………

answer13

Save

Please comment.Thanks

Save

Save

Save

Save

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *