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
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