Answer:
The value of discountRate would be 0.01
Explanation:
double discountRate = 0.0;
int purchase = 1250;
if (purchase > 1000)
discountRate = .05;
if (purchase > 750)
discountRate = .03;
if (purchase < 2500)
discountRate = .01;
else discountRate = 0;
discountRate is declared as 0.0 then purchase is 1250. But the entire if statement is sequential, that is; all the if statement are executed.
first if-statement assign .05 to discountRate because purchase is greater than 1000.
Next if-statement re-assign .03 to discountRate because purchase is greater than 750.
The last if-statement re-assign .01 to dicountRate because purchase is less than 2500. Since this is the last if statement executed, the value of discountRate is .01
Answer: Hyperpersonal communication
Explanation:
In this type of communication we have inter personnel communication mediated through computers such that there is more scope for textual messages than face to face communication.
If any mistake was made using this type of primitive programming, the entire program of punch cards had to be re punched again. The correct option is A.
<h3>What is punch card?</h3>
A punch card is a card on which data is able to be recorded in the form of punched holes.
Whenever a mistake is done, the punched card is scrapped and made anew one for same programming.
Thus, if any mistake was made using this type of primitive programming. The entire program of punch cards had to be re punched again. The correct option is A.
Learn more about punch card.
brainly.com/question/27476988
#SPJ1
Answer:
Explanation:
Let's do this in Python, we shall use the package random to generate a random double between 0 and 1. Then we multiply it with 50 and covert to integer to get a random integer between 0 and 50. Place a While function with condition to stop when it's greater than 25
from random import random
attempts = 1
random_int = int(random()*50)
print(random_int)
print("This is attempt " + attempts)
while random_int <= 25:
attempts += 1
random_int = int(random()*50)
print(random_int)
print("This is attempt " + attempts)