Question: Hello there I just need part B Functions Prototype Function call Write a function that computes the sum of three integers passed to it Lab
Functions Prototype Function call Write a function that computes the sum of three integers passed to it Lab 5 (a) Consider the following diamond, it is a 9 by 9 diamond made with S signs. Write a program that takes as input positive odd integer K (greater than or equal t three and outputs a K by K diamond made with S signs (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 'You will compude staristics 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 charater'e Example inpt mJO*S/Hx1@3qcx0 The 'Q' should be inclwded when compuring the staristics 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 staristics 1- The mamber of uppercase alphabetical characters 2. The mamber ofodl digits "I'. '3', .5,'7', '9, 3. The total number of characters inputted 4. The mumber 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 (inchude the 0) FS F6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
