hey men,, you were wrong.. lecture gave me 2.3 point on 3.. I was disappointted.. he said "I need to see OUTPUTS".. I knew there was something missing.. we didn't show the outputs,, that's why I was asking to you!!! but you guys wrote same thing like I typed.
You run your program, select all the text and choose "copy". Then you can paste it in your e-mail or wherever.
Alternatively, write the output to a file with the syntax yourpogram.exe > outputfile.txt (from the console).
And this would be a solution that honors the requested formatting:
Prompt the user to enter a date in the YYYYMMDD format. Example: 10 March 2010 is 20100310.
Read the user input into a variable.
Print an error message and exit the program if the user enters a negative number.
Split the YYYYMMDD number into its respective YYYY, MM, DD pieces using integer division and the modulus operator. [hint: 20100101 / 10000 = 2010 and 20100101 % 10000 = 101]
Print a line that has the following format.
YYYYMMDD is MM/DD/YYYY
examples...
20100314 is 3/14/2010
19571105 is 11/5/1957
20380118 is 1/18/2038
Your source code file must contain a file comment block. In addition, you need to turn in a printed copy of the output generated by your program for at least three different inputs.
I think you need to make a new thread instead of recycling this old one, with a more appropriate subject than this one. When you do that, perhaps you can use code tags and be a little less vague than "something is wrong."