Question
For each of the programs assigned below, submit the following: Copy of the source code (.c) saved as an electronic attachment to Assignment 2 located
For each of the programs assigned below, submit the following: Copy of the source code (.c) saved as an electronic attachment to Assignment 2 located in Canvas under Assignments. Do not submit the entire project. A printscreen of the output of the programs, pasted into a single word document. Observe the following guidelines: Begin each program with a comment section which contains the following: Program name Author's name Due date A description of what the program does. Use comments within the source code to label sections of your program. Place no more than one C statement per line. Do not type more than 80 characters per line. Programs: 1. Write a program which asks a user to input two numbers(type double, neither can be zero). The program should calculate and print the sum, the product, and the quotient of the first number divided by the second, each with two decimal digits. Test with the values 17.5 and 12.78. 2. Four track stars have run a 1 mile race. Write a program that reads in the number of minutes and the number of seconds(2 values), that each of four runners took to finish the race. Calculate, in feet per second(fps) the speed at which each runner finished the race. Display the results in a table like this(use 3 decimal places) Racer Speed(fps) 1 xx.xxx 2 xx.xxx 3 xx.xxx 4 xx.xxx
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started