Science, asked by ccsodhacanubhacsodha, 9 months ago

high lavel language program has to be converted into machine language by translater programs. ​

Answers

Answered by hrs77
2

Answer:

Compiler and Interpreter used for converting high level language to machine level language

Explanation:

Compiler scans the entire program and translates it as a whole into machine code and Interpreter translates program one statement at a time.

Answered by Aayush0005
0

Explanation:

choice = "Yes"

while choice == "Yes":

   print("Simple calculator!", "******************", sep = "\n")

   print("1. Addition", "2. Subtraction", "3. Multiplication", "4. Division", sep = "\n")

   x = int(input("Enter a value: "))

   y = int(input("Enter a value: "))

   z = int(input("Enter the operation you'd like us to perform: "))

   if z == 1:

       print(x + y)

   elif z == 2:

       print(x - y)

   elif z == 3:

       print(x*y)

   elif z == 3:

       if y == 0:

           print("Division isn't possible.")

       else:

           print(x/y)

   print("Do you wish to perform more operations?")

   print("Yes/No")

   choice = input()

Similar questions