Answer:
#include <iostream>
using namespace std;
void CoordTransform(int *ptr1, int *ptr2);
int main()
{
int xVal;
int yVal;
cout<<"please enter two valid integers";
cin>>xVal;
cin>>yVal;
CoordTransform(&xVal , &yVal);
int xValNew=xVal;
int yValNew=yVal;
cout<<xValNew<<yValNew;
return 0;
}
void CoordTransform(int *ptr1, int *ptr2)
{
int a = *ptr1;
*ptr1=(*ptr1+1)*2;
*ptr2=(*ptr2+1)*2;
}
Explanation:
It will return new values in previously defined variables
coding language: c++
Answer:
The pseudocode is as follows
1. Input Steps
2. Input Day
3. Miles = Steps/2000
4. Calories = 65 * Miles
5. Print Calories
6. Stop
Explanation:
This line gets the number of steps for the day
1. Input Steps
This line gets the current day
2. Input Day
The line calculates number of miles
3. Miles = Steps/2000
This line calculates the calories lost
4. Calories = 65 * Miles
This line prints the calories lost
5. Print Calories
The pseudocode ends here
6. Stop
21
2121212121222 erhfjefbvervjgretg