Question: Write a C program that has 1 function: void giveDays(int days, int weeks) a. accepts as parameters two ints. The first is a number of

Write a C program that has 1 function: void giveDays(int days, int weeks) a. accepts as parameters two ints. The first is a number of days and the second is a number of weeks b. calculates how many total days are represented by the 2 parameters Example: 25 days and 3 full weeks represents a total number of days of 46 c. print out (in the function) how many total days are calculated function headers should be: void giveDays(int days, int weeks) in main 1. ask for the number of days 2. read in the number of days 3. ask for the number of weeks 4. read in the number ofweeks 5. call your function giveDays(int, int) output from the function should look like: ??? days ??? weeks has ??? total days Use the output (cout) manipulators to format the output correctly [setw(?), fixed, right, left, etc]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!