Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i just need simple beginners program with no fancy tools used like array or function recall , i just want program using switch and while

  1. i just need simple beginners program with no fancy tools used like array or function recall , i just want program using switch and while and some condition statements
  2. Using Dev C++, write a program to solve the problem as stated below. Make use of a repetition structure (counter-controlled while loop) to shorten part of your code
  3. Dont use array.
  4. make use of a repetition structure (counter-controlled while loop) to shorten part of your code.
  5. Write a program will input a single integer value (all input will be exactly 8 digits long) and will store pairs of digits as individual integer values. The program will display the five 2-digit numbers as well as the average of these, each on their own line. Use a switch statement to print out Grade: and then either A (>=90), B ([80..89]), C ([70..79]), D ([60..69]) or F (<60) based on the calculated average.
    1. Sample
      1. Input: 54861398
      2. Output:

54

86

13

98

Avg: 62.75

Grade: D

  1. Sample
    1. Input: 64536785
    2. Output:

64

92

67

85

Avg: 77.00

Grade: D

  1. Compile the program and correct errors.

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago

Question

13-1 How does building new systems produce organizational change?

Answered: 1 week ago