Objective: To demonstrate your knowledge of using pointers of the built in data types.
Solicit two numbers from the user, one whole number and one decimal number.
Display the corresponding mathematical results. All necessary variables should be declared dynamically. Use pointer notation wherever possible.
I have the layout for what the code will do, but I don't understand how to alter my code so that the variables are declared dynamically. I think I know what to do with the pointer notation, but if you want to help with that as well it would be appreciated! Thanks!
As you can see, this is a horrible assignment because there is absolutely no reason to use dynamic memory or pointers here (though, honestly, there's almost never a reason to use a pointer in C++). However, your assignment is very clear and explicit: all variables must be pointers.