Programming in C Homework
Write a C program that computes and outputs the current age of the United States in
days (you can use 1776 as theUS founding year). You don't have to worry about
fractional years or leap years for this assignment. Remember to include your
program's
output as part of your submission.
Write a C program that requests the name of any cartoon character from the user, then does the
following with that name (use printf for each):
a.Displays it enclosed in double quotes.
b.Displays it in a field 24 characters wide, with the whole field
in quotes and name at the right end of the field.
Write a C program that requests from the user the number of miles traveled and the number of gallons
of gasoline consumed. It should then calculate and display miles-per-gallon, showing one place to the
right of the decimal.
Write a C program that converts a time in minutes to a time in hours and minutes.
Use #define or const to create a symbolic constant for 60. Use a while loop to let
the user repeatedly enter values until a time <= 0 is entered. COMMENT your
code. Follow structured programming principles. Make sure your code is
professional in appearance. Test your code thoroughly and submit output using
the value 312minutes.
Write a program that requests a type double value from the user then displays the value
to the 4th power. To do this, your program must PASS the value to a function called pow4
(you must write this function). Your pow4 function will then compute the passed value to
the 4th power and display the answer. COMMENT your code. Follow structured
programming principles. Make sure your code is professional in appearance. Test your
code thoroughly and submit output using the input value 6.
9 years ago
25
Purchase the answer to view it

- c_programming.zip
- DENNISWRIGHT
- A-plus Writer - CVP Analysis
- A
- Fresh Solution A+ 100% Correct: World History Assignment
- MGT498-FinalExam
- professor 2013 Process designs and supply chains
- Corporate Entrepreneurship:
- 5 Algebra questions- 5.00 due in the next hour and a half
- •Determine whether or not existing “fair use” exceptions strike an appropriate balance between creators and users of the material. Provide two (2) specific examples to support your response.
- week five assignment mha 610