Answer:
In this example you will learn to create a simple calculator that can add, subtract, multiply or divide depending upon the input from the user.
Explanation:
Answer:
G=(A^3 + B) * 4-c^2
To calculate G if A=3, b=4 and C=5
cobegin
p1: A^3 = 27
P2:C^2 =25
P3: p1 +B =31
P4:P3*4 =124
P5:P4-P2 =99
coend
Explanation:
One operation is performed at a time, and on the basis of priority as we have only one processor.
I have a very good example of the program you need written on Python. You can use this (sorry for bad tabulation):
import math
import math
def main():
function = input("Enter a function f(x):\n")
x = 0
y = 0
for rows in range(10,-11,-1):
for col in range(-10,11,1):
x=col
roundfx = round(eval(function))
if roundfx == rows:
print("o", end="")
if rows==0 and col==0 and not rows == roundfx:
print("+", end="")
if col == 0 and not rows == 0 and not rows == roundfx:
print("|", end="")
if rows==0 and not col==0 and not rows == roundfx:
print("-", end="")
else:
if not rows == 0:
if not col == 0:
if not rows == roundfx:
print(" ", end="")
print()
main()
Well if you put sad/mad/scared/tired/ect it should pop up with the same person.
Answer:
Explanation: integer is the meaning of int() if you payed attention to programming class, int() would be a WHOLE number and not a decimal number, 2nd of all, a decimal number would be float() so the answer is int() hope i helped!
Explanation:
hope this helped byyyyyyyyyyye