Question: write this program in the programming language C 1. Create a void function that sounds a bell using the escape sequences, and then prints the
1. Create a void function that sounds a bell using the escape sequences, and then prints the following text: (25 points) So excited that she shouted, "What a wonderful day full of sweets, flowers, and love! Wishing you all the best this Valentine's Day." 2. Create a void function named one three (). This function should display the word one on one line, call the function two (), and then display the word three on one line. The function two() should display the word two on one line. Your program should display the phrase starting now: before calling one_three () and display done! after calling it. Thus, the output should look like the following: (25 points) starting no now: one two three done! 3. Create a function that accepts 6 inputs as coordinates of two 3-D points (X1, 91,21) and (x2, Y2, 22) and returns the distance between them using the following formula. (25 points) Distance = (x,- x)2 + (y1 - y)2 + (21 - 2)2 Note: The coordinate values should be declared as int. The distance calculation should be rounded to 2 decimal places. In the main function, use appropriate prompts to ask the user for coordinate inputs. 4. The mass of a single molecule of water is about 3 x 10-23 grams. A quart of water is about 950 grams. Write a user-defined function that requests the amount of water in quarts, and returns the number of water molecules in that amount. (25 points) a. Request the amount of water in quarts. b. Convert that amount of water to grams. C. Calculate the number of water molecules in that many grams of water. d. Return the results back to the calling function. e. Display the results in scientific notation (e notation). Note: The conversion factors should be defined as constant macros
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
