Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

write this program in the programming language C image text in transcribed
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

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

(2) An example of praise that you received badly or indifferently.

Answered: 1 week ago