Question: Write a c++ program the prompts for the following data items. Store all of these into pointer variables. 1. Prompt for Name using string. Display
Write a c++ program the prompts for the following data items. Store all of these into pointer variables.
1. Prompt for Name using string. Display the value and the pointer address.
2. Prompt for Age using int. Display value and the pointer address.
3. Prompt for Salary using float. Display value and the pointer address.
4. Create a method called raisedSalary with a void return. Pass the salary pointer to the method and add %10 to your salary. ( Review section 9.7)
5. After you have called the raisedSalary method, display the salary variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
