Answer:
A lot can happen, depending on the use of the variable
Explanation:
Lets create a position variable, a common variable in games.
Vector3 position = new Vector3(0, 0, 0);
The above variable initialization creates a new Vector3 object. The Vector3 class contains 3 properties, X, Y, and Z. When you assign the variable 'position' the new Vector3 object, the variable 'position' contains an instance of Vector3 where
X = 0,
Y = 0,
and Z = 0.
The variable 'position' can be used to set the position of a player, or an object.
We can reuse this variable when you want the object or player to move.
position.X = 29
position.Y = -14
position.Z = 47
now the object/player's position is (29, -14, 47).
Variables can be used for basically everything you need in programming, from storing a position, to storing the result of a complex math equation.
I included a picture of my code below. Best of luck with your assignment.
Answer:
The algorithm is as follows:
1. Start
2. Display "Input Item Price: "
3. Input Price
4. Markup = Price + 80% * Price
5. Selling_Price = 10% * Markup
6. Display "The Selling Price is "+Selling_Price
7. Stop
Explanation:
This signals the beginning of the algorithm
1. Start
This is a prompt that asks for the price of the item
2. Display "Input Item Price: "
This gets the price of the item
3. Input Price
This calculates the Markup (80% of the inputted price)
4. Markup = Price + 80% * Price
This calculates the selling price (10% of the markup)
5. Selling_Price = 10% * Markup
This prints the selling price
6. Display "The Selling Price is "+Selling_Price
This signals the end of the algorithm
7. Stop
It is true the reason why it is true is