Question:
Create a C Program that contains the following functions: (SEE INSIDE)?
aLiAnNaH^
2010-09-01 05:02:19 UTC
Create a C Program that contains the following functions:
1.) A function named printDate which accepts the year, month and day as integers and print them like "12/31/09".
2.) A function named printHour which accepts the hour, minute and second as integers and print them like "1:30:50".
3.) A function named printSpaced which accepts three characters. It will print them like "P O L". -- put spaces in between the characters
4.) A function named printReversed which accepts four characters. It will print them in reverse order. For example, if the input is 'A', 'B', 'C', 'D', it will output "DCBA".
5.) The function main. Main will ask FROM the USER to input six integers and four characters. It will pass them to the above functions to be print-formatted.
Four answers:
no1home2day
2010-09-01 05:10:17 UTC
Hmmm - well - okay - I created the C Program. Now YOU create the C program.



Oh - wait - I get it - you want US to do YOUR homework for YOU. WE do the work, while YOU get the credit.



Well, that DOES take time; time I could be spending mowing the lawn, or raking the leaves or something. I'll tell you what - if you'll take YOUR time to do MY work around the house, I'll take MY time to do YOUR work for school. That certainly seems like a fair trade off. There is, however, one very important caveat - I take credit for all work that I do! (But don't worry, I'll give YOU credit for the work that YOU do. Fair exchange.)



OR - you could start up on your own homework, and then when you reach a particular problem, you could then ask for help with the obstacle. We would be glad to assist you as you progress.
Just Helping
2010-09-01 05:15:46 UTC
These are pretty basic problems. With a C reference guide and some knowledge of print function formatting, you should be able to do these easily. have a look at these guides and work it out yourself.
Lisa
2016-04-21 06:51:14 UTC
Declare your array eg int num_array[100] Function declaration is func abc (int an_array[], int length) Call with abc(num_array, x) whwre x is the number of elements to consider,
Jim
2010-09-01 20:53:49 UTC
msdn is your friend.

or get a printf quick ref.

most browsers have a search tool for msdn.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...