Question: Computer Programming - Tutorial session 3 Objective: Use of different types of control statements (Solve the problems using If statements or its variants) Please check
Computer Programming - Tutorial session 3 Objective: Use of different types of control statements (Solve the problems using If statements or its variants) Please check the students' capacity to solve these questions independently, guide them as and when required. Q1. Write a C++ program that accepts a heart rate in BPM and displays the condition as normal, Bradycardia or Tachycardia (HR: 60 - 90 Normal, Bradycardia90). Q2. Write a C++ program that accepts all even numbers between 1 and 10000. Q3. Write a C++ program that accepts three integers as input: the first integer as the starting point, second number as the ending point and third number as the increment. For Ex: An Input 50, 90, 10 would give 50, 60, 70....... 90. Q4. Write a C++ to display the Fibonacci series up to 100. (1,1,2,3,5,8,13,.........) Q5. Write a C++ code that accepts a value of temperature and its unit (1 for F and 2 for C), displays the temperature in F if given temperature is in C or vice versa. Q6. Write a C++ program that accepts marks scored by a student (out of 100) and shows the corresponding grade (Grade A: 90 or above, B+: 85-89, B: 80 -84, C+: 75 - 79, C: 70 - 74, D+: 65-69, D: 60-64 and F below 60)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
