Question: Code in C . Please send me a screenshot of the code 1. Write a program that produces the following output: 20 points) Smile! Smile!
1. Write a program that produces the following output: 20 points) Smile! Smile! Smile! Smile! Smile! Smile! The program should define a function that displays Smile once, and use the function as often as needed. In this problem, you would be calling the function that prints Smile within the function 030 2. Write a program that sounds a beep, and then prints the following text: (10 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 3. Write a program that calls a function named one_three 1). This function should display the word one on one line, call the function to C), and then display the word three on one line. The function two() should display the word two on one line. The 03 function should display the phrase starting now: before calling one_three) and display donel after calling it. Thus, the output should look like the following 25 points) starting now: one two three done! 4. Write a C program that prompts the user for coordinates of two 3-D points (x...) and (X, Y, 2) and displays the distance between them using the following formula (20 points) Distance = (x1 - x2)+%: - y)2 + (x - 2)") Note that the coordinate values should be declared as int. The distance calculation should be rounded to 2 decimal places Due: Feb 21 end of day COP 2220-Spring 2020 Assignment 2 5. The mass of a single molecule of water is about 3 x 10- grams. A quart of water is about 950 grams. Write a program that requests the amount of water in quarts, and displays the number of watermolecules in that amount. 25 points) a Request the amount of water in quarts 5 points Convert that amount of water to grams 5 points c Calculate the number of water molecules in that many grams of water 5 points) d. Display the results in exponential form 6 points Note: The conversion factors should be defined as constant macros 3 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
