Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming Language!! Thumbs-Up given for quality response! (b) You will write a program that will do the following: prompt the user enter characters from

C Programming Language!! Thumbs-Up given for quality response!image text in transcribed

(b) You will write a program that will do the following: prompt the user enter characters from the keyboard, you will read the characters until reading the letter 'Q' You will compute statistics concerning the type of characters entered. In this lab we will use a while loop. We will read characters from stdin until we read the character 'Q' Example input mJ0*5/Hx1@3qcxQ The Q' should be included when computing the statistics properties of the input Since characters are integers you will determine the average character (average when one looks at the character as an integer (its ASCII value). To achieve this you will need to compute the sum of the ASCII values of the characters. We are interested in determining the following statistics I. The number of uppercase alphabetical characters 2. The number of odd digits T, 3', '5', T, 9" 3. The total number of characters inputted 4. The number of line feeds (ASCII value of 10) 5. The average character (here we treat the characters as an integer based on their ASCII values) 6. The average character that is read (include the Q')

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

3. Contrast relational contexts in organizations

Answered: 1 week ago

Question

2. Describe ways in which organizational culture is communicated

Answered: 1 week ago

Question

1. Describe and compare approaches to managing an organization

Answered: 1 week ago