Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started