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
Answer: Right
Explanation: If you use the Command Right (90°), it makes sense that Tracy turns right 90°...
Social security
Also if he has any taxs they will be deducted
Answer:
b=0
c=0
lol=list()
while True:
salary=input("Enter your salary: ")
if salary=="e" or salary=="E":
print("Thankyou!!")
break
else:
a=int(salary)
if a>=300000 and a<=400000:
c=c+1
if a<0 or a>400000:
print("Your salary is either too small or too big ")
if a>0 and a<=400000:
a=a-(25/100*a)-(5/100*a)-(2/100*a)
lol.append(a)
b=b+1
if a>=300000:
c=c+1
print(lol)
print("The number of salaries entered is: "+ str(b))
print("The number of salaries that exceeded 300000 is: "+str(c))