Question: Write a C program that can perform the following operations: Read the following from the keyboard and store them in appropriate variables: 1. A full

Write a C program that can perform the following operations: Read the following from the keyboard and store them in appropriate variables: 1. A full name (e.g. John Smith). 2. A telephone number (e.g. 12345678900) assume all phone numbers have 11 digits. 3. A 2 digit decimal number (e.g. 22). 4. A temperature in degrees Celsius (e.g. 28.5C). Use a loop to add together the character values of the name entered and print the total on the screen. (e.g. Jet Li = 74 + 101 + 116 + 76 + 105 = 472). Divide the first 6 figures of the telephone number by the last 5 and store the result in a variable. Print the value on the screen (e.g. 123456/78900 = 1.56. Convert the decimal number to its binary equivalent and print it on the screen (e.g. 22 = 10110). Convert the temperature from degrees Celsius to degrees Fahrenheit and degrees Kelvin. Store the values in appropriate variables rounded to the closest whole number and print them on the screen (e.g. 10C 50F 283K).

Write a C program that can perform the following operations: Read the

Write a C program that can perform the following operations: Read the following from the keyboard and store them in appropriate variables: 1. A full name (e.g. John Smith). 2. A telephone number (e.g. 12345678900) assume all phone numbers have 11 digits. 3. A 2 digit decimal number (e.g. 22). 4. A temperature in degrees Celsius (e.g. 28.5C). . Use a loop to add together the character values of the name entered and print the total . Divide the first 6 figures of the telephone number by the last 5 and store the result in a . Convert the decimal number to its binary equivalent and print it on the screen (e.g. 22 . Convert the temperature from degrees Celsius to degrees Fahrenheit and degrees on the screen. (e.g. Jet Li 74 101 + 116 + 76 105 472) variable. Print the value on the screen (e.g. 123456/78900 1.56. - 10110). Kelvin. Store the values in appropriate variables rounded to the closest whole number and print them on the screen (e.g. 10C 50F 283K)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!