76 311
Assignments Done
Successfully Done
In May 2019

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
Expert's answer

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions