Answer to Question #48479 in C for karkat

Question #48479
Write a program that asks the user to enter a character, a string, an integer, and a float value using function overloading. The user should be prompted for each data item in a separate function with the name getData and a reference parameter of the type item being read. Display the data entered twice, using a different function but each time named displayData, that have different parameter lists.
The following is a sample run of the program.

Enter a character: A
Enter a word: sunny
Enter a whole number: 125
Enter a number with decimal point: 50.25

You entered the following data:
Letter: A
String: sunny
Integer: 125
Float: 50.25

Your data displayed again:
Integer: 125
Float: 50.25
Letter: A
String: sunny
1
Expert's answer
2014-11-04T00:35:57-0500
The answer to the question is available in the PDF file https://www.assignmentexpert.com/https://www.assignmentexpert.com/homework-answers/programming-answer-48479.pdf

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS