Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago

Question

At what level(s) was this OD intervention scoped?

Answered: 1 week ago