create a report that displays back tge total sales by country
Answer:
The program is as follows:
<em>5 INPUT A,B</em>
<em>6 PROD = A * B</em>
<em>7 PRINT PROD</em>
<em>8 TOTAL = A + B</em>
<em>9 PRINT TOTAL</em>
<em>10 DIFF = A - B</em>
<em>11 PRINT DIFF</em>
<em>12 END</em>
Explanation:
This gets input for the two numbers
<em>5 INPUT A,B</em>
This calculates the product
<em>6 PROD = A * B</em>
This prints the calculated product
<em>7 PRINT PROD</em>
This calculates the sum
<em>8 TOTAL = A + B</em>
This prints the calculated sum
<em>9 PRINT TOTAL</em>
This calculates the difference
<em>10 DIFF = A - B</em>
This prints the calculated difference
<em>11 PRINT DIFF</em>
This ends the program
<em>12 END</em>
Editing, saving, printing, copying and pasting
Answer:
In Python:
low = int(input("Low: "))
high = int(input("High: "))
if low >= 1000000000 or high >=1000000000:
print("Out of range")
else:
mylist = []
for num in range(low,high+1):
flag = False
if num > 1:
for i in range(2, num):
if (num % i) == 0:
flag = True
break
if not flag:
mylist.append(num)
print(num, end = " ")
print()
print("The twin primes are: ",end="")
count = 0
for i in range(1,len(mylist)):
if mylist[i] - mylist[i-1] == 2:
print(str(mylist[i])+" & "+str(mylist[i-1]),end=", ")
count+=1
print()
print("There are "+str(count)+" twin primes")
Explanation:
See attachment for complete program where comments were used to explain each line
Answer:
cryptography
Explanation:
cryptography
In computer science, cryptography refers to secure information and communication techniques derived from mathematical concepts and a set of rule-based calculations called algorithms, to transform messages in ways that are hard to decipher