[Solved] Homework #3

$25

File Name: Homework_#3.zip
File Size: 103.62 KB

SKU: [Solved] Homework #3 Category: Tag:
5/5 - (1 vote)

Exercise #1: Grades Distribution

Write a program that prompts the user to enter grades of TEN students. The program then distributes the grades in different ranges (i.e. 0-9, 10-19, 20-29, 30-39, 40-49, 50-59, 60-69, 70-79, 80-89, 90-99) and prints a star (*) in front of each category for each occurrence of the grade falling the corresponding range, as shown in the output given below. Sample Input/Output:

Exercise #2: Mean and Standard Deviation

Write a program that prompts the user to enter integer values for the array of size N (in this case N is 6). The program then calculates mean and standard deviation for the data entered.

Hints: The standard deviation s of a finite data set x1, x2, , xn is defined by the following formula, is the mean:

Sample Input/Output:

Exercise #3: Some operations on Strings

Write a program that uses a C-string (character array) to store a string entered from the keyboard. The program will then provide 4 options about operations performed on the input string in the form of a menu, as shown in the following sample Input/Output. The 4 operations are given below:1. reverse the string2. print the length of the string3. convert the string case, i.e. from upper case to lower and from lower to upper case4. print number of words in the string Note: It is not allowed to use the string library functions for the 4 operations. Sample Input/Output:

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] Homework #3
$25