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
Nadusha1986 [10]
3 years ago
5

Discuss a situation in which you might want to use a floating-point number with a fractional part for a loop control variable. W

hat are the pitfalls of using real numbers for the index variable in a for loop?
Computers and Technology
1 answer:
serious [3.7K]3 years ago
7 0

Answer:

1. When calculating the division of each number in some range of floating type number.

2. One cannot use real numbers for exact comparison. Two real numbers are rarely equal. Real numbers are have representational errors.

Explanation:

1. In structured programming, we make use of a floating-point number with a fractional part for a loop control variable. a given scenario is when we just want to calculate the division of each number in some range of floating type number. However, the downsides to using a floating-point number with a fractional part for a loop control variable are:

  • They can cause 'off-by-one' failure
  • A floating point number cannot represent all simple fractions exactly

2. The pitfalls of using real numbers for the index variable in a for loop:

  • Two real numbers are hardly equal
  • One cannot use real numbers for exact comparison
  • The existence of representational errors
You might be interested in
comparing the cost of care provided to medicare beneficiaries assigned to primary care nurse practitioners and physicians
Aleks [24]

"Comparing the cost of care provided to Medicare beneficiaries assigned to primary care nurse practitioners and physicians" is a study that

<h3>What is the cost of Medicare according to the above study?</h3>

The study shows that after controlling for demographics, geography, comorbidities, and proclivity to visit an NP, Medicare evaluation and management payments for patients allocated to an NP were $207, or 29%, less than PCMD assigned beneficiaries.

The similar tendency was seen for inpatient and total office visit payment amounts, with NP-assigned beneficiaries receiving 11 and 18 percent less, respectively. The work component of relative value units yields similar results.

Learn more about Medicare:
brainly.com/question/1960701
#SPJ4

8 0
1 year ago
I need help. People who know computer science. I have selected a word from the first 1000 words in my dictionary. Using the bina
Rudiy27

Answer:

14

Explanation:

8 0
2 years ago
A design was operating at a maximum clock frequency of f and the clock had no jitter. if the clock started to have jitter of t s
docker41 [41]
A design was operating at a maximum clock frequency of f and the clock had no jitter. if the clock started to have jitter of t secs, what will be the new frequency?
4 0
3 years ago
Write a function call using print_sum() to print the sum of x and 400 (providing the arguments in that order).
kodGreya [7K]

A function call utilizing print-sum to print the sum of x and 400 is

print-sum(x, 400)

<h3>What is sum, exactly?</h3>
  • A summation, also known as a sum, is the outcome of adding two or more numbers or quantities.
  • There are always an even number of terms in a summation. There could be only two terms, or there could be one hundred, thousand, or a million.
  • There are summations with an infinite number of terms. SUM Single User Monitor is its full form.
  • The idea of the sum of four stresses the notion that there are numerous—if not infinite—ways to achieve particular outcomes, objectives, aspirations, or locations.
  • To total the numbers, choose a cell next to them, choose AutoSum from the Home menu, and then press Enter.

To learn more SUM, refer to:

brainly.com/question/20203147

#SPJ4

8 0
1 year ago
In which of the following situations would it be best to choose portrait orientation?
AnnZ [28]
A poster is a goo example of use for the portrait style.
5 0
3 years ago
Other questions:
  • Landon starts his computer and receives the error message, "Hard drive is not found." In a panic, he calls you because he did no
    14·2 answers
  • The operation of the waste spark Ignition system is being discussed. technician a says that the spark that occurs on the exhaust
    14·1 answer
  • Select the proper ergonomic keyboarding techniques.
    15·2 answers
  • (1) prompt the user for a string that contains two strings separated by a comma. (1 pt) examples of strings that can be accepted
    7·1 answer
  • What happens if you move unencrypted files into an encrypted folder?
    5·1 answer
  • What is renewable energy
    13·2 answers
  • What is an efficient way to ensure that the code is working as per the acceptance criteria/business requirements? (1 correct ans
    11·2 answers
  • Damion recently did an update to his computer and added a new video card. After the update, Damion decided that he would like to
    14·1 answer
  • The math function ceil(x) returns the smallest integer that is greater than or equal to x. True False
    12·1 answer
  • What special enterprise VPN supported by Cisco devices creates VPN tunnels between branch locations as needed rather than requir
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!