Professional Documents
Culture Documents
August 2015. You Are Also Required To Show Me Your: Total Kilogram Worked Off: 0.6 KG
August 2015. You Are Also Required To Show Me Your: Total Kilogram Worked Off: 0.6 KG
Submit your hardcopy on 6th August 2015. You are also required to show me your
completed COBOL program during lab session for grading purposes. Programs with
no errors and display the required output will get higher marks.
Question 1
Write a COBOL program using PERFORM VARYING statement that will count 45,
40, 35, 30, 25.
Question 2
The number of calories burned per hour by cycling, jogging and swimming are 200,
475 and 275 respectively. A person loses 1 kilogram of weight for each 3500
calories burned. Write a COBOL program that allows the user to input the number
of hours spent at each activity and then calculates the number of kilogram
worked of.
Sample output:
Enter number of hours you spent for cycling: 2
Enter number of hours you spent for jogging: 3
Enter number of hours you spent for swimming: 1
Number of questions:
5
Full marks:
50
Enter the marks for each question:
Question 1
10
Question 2
10
Question 3
8
Question 4
9
Question 5
6
Total Marks: 43/50