1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ksenya-84 [330]
4 years ago
6

How is a most recent variable different from a fixed variable

Computers and Technology
1 answer:
rusak2 [61]4 years ago
7 0

In this program, there are three variables: data, count, and value. In the first loop, a user is requested to enter the number of values to be later processed in the second loop. This number is requested repeatedly until the user gives a positive value. The variable data is used to store the latest input read, and there is no possibility for the program to guess what values the user will enter.

The variable value is used similarly in the second loop: it stores the latest input, and there is no known relation between its successive values.

The variable count, however, behaves very differently. Once it has been initialized its future values will be known exactly: it will step downwards one by one until it reaches its limiting value, i.e. zero.

In the following the variables data and value are said to have the role most-recent holder (as they store the latest value in some value succession - user input in this case), and the variable count is said to be a stepper. These roles occur in programs again and again. In fact, only ten roles are needed to cover 99 % of all variables in novice-level programs.

You might be interested in
What type of adventure/puzzle computer games can I download and not have to pay for? Some games that I've played are Legend of Z
Y_Kistochka [10]

Answer: Pirate and wizard 101, also try using an emulator for a certain console like NES to play certain games you can think of that are available on that console.

5 0
3 years ago
Read 2 more answers
It is safe to tell an online acquaintance (someone you have never met in person) your
Anna [14]
It is safe to give out information that the other user can't use to track you. Generally, these include favorite music, favorite bans, hobbies.

It is never safe to give our personal and identifying information about yourself. This includes your full name (in most cases), place of residence, or any other contact information you may have - such as social media information.

D. Favorite music
7 0
3 years ago
Read 2 more answers
In Microsoft Word, when you highlight existing text you want to replace, you are in
ddd [48]
I believe formatting toolbar.
The answer would be B. Basic mode.
6 0
4 years ago
What does a computer use to determine if an ip address of another computer is on the same network or a different network?
Radda [10]
It uses it's routing table. If the destination is on the same network, it transmits directly via the MAC address. If the destination is on another network, it transmits to whatever the table says for that network. For desktops it's usually a default address of the router on the computer's network.
6 0
3 years ago
Which of these is installed only on Apple smartphones and tablets?
melomori [17]
IOS. It's Apple's own custom OS system, built for their tech.
5 0
3 years ago
Read 2 more answers
Other questions:
  • 10 points
    12·1 answer
  • Which step can most directly help your team follow up on decisions made during Web development meetings?This task contains the r
    6·1 answer
  • Which color reflects more light red blue black or white
    6·1 answer
  • What does the action tool allow you to do in Microsoft power point?
    9·1 answer
  • What are 2 main differences betweenarrays andstructs?
    7·1 answer
  • An online travel agency such as Travelocity is an example of a(n) _____.
    14·1 answer
  • Which one of these is NOT an indicator that an email is spam?
    5·1 answer
  • A computer follows step-wise instructions to complete any task which is known as?
    5·1 answer
  • Write a c++ program which has array in fifteen element sort the array by selection the search for in element using binary search
    14·1 answer
  • Which element of the MakeCode Arcade interface represents an individual
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!