I believe the correct answer is B) Chain of command.
~Silver
Explanation:
PROGRAM QuadraticEquation
IMPLICIT NONE
REAL :: a, b, c
REAL :: d
REAL :: root1, root2
! read in the coefficients a, b and c
READ(*,*) a, b, c
WRITE(*,*) 'a = ', a
WRITE(*,*) 'b = ', b
WRITE(*,*) 'c = ', c
WRITE(*,*)
! compute the square root of discriminant d
d = b*b - 4.0*a*c
IF (d >= 0.0) THEN
d = SQRT(d)
root1 = (-b + d)/(2.0*a)
root2 = (-b - d)/(2.0*a)
WRITE(*,*) 'Roots are ', root1, ' and ', root2
ELSE
WRITE(*,*) 'no real roots exist!'
WRITE(*,*) 'Discriminant = ', d
END IF
END PROGRAM QuadraticEquation
You use the keyword extends to acheive inheritence in java.
I got this answer from my parents
Answer in python:
import random
money = 10
winnings = 0
def main():
global winnings
global money
dice_num = random.randrange(1,6)
input_str = "Guess the dice number. You have $"+str(money)+" > "
input_num = input(input_str)
if int(input_num) == dice_num:
money = money + 10
winnings = winnings + 10
else:
money = money - 1
if money < 0:
print("You lose. You won "+str(winnings)+" times. Press enter to try again")
useless_variable = input()
main()
else:
main()
main()
Explanation:
Answer:
he could use his mac book and let his friend use his mac book
Explanation: