Desk check the algorithm given below.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
icon
Concept explainers
Question

Desk check the algorithm given below.

  1. Start
  2. Declare number variable of type int and initiate it to “0”,
  3. Print “University of Okara”
  4. Print “Enter the number of registrants”
  5. Read number
  6. Check: if (number <=o), Print “Error”
  7. Check: else if (number <=7), Print “Total amount is Rs”<<number*100
  8. Check: else if (number >=8 & number<=14 ) , Print “Total amount is Rs”<<number*75
  9. Check: else , Print “Total amount is Rs”<<number*50
  10. End/Exit
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning