Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Programming - Tutorial session 3 Objective: Use of different types of control statements (Solve the problems using If statements or its variants) Please check

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+ Why have these changes occurred?

Answered: 1 week ago

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago