Computer Science, asked by mallimalleswari56, 9 months ago

Write a program that displays questions and four choices of answers. The user enters the answer and accordingly his high score is calculated​

Answers

Answered by rajansharma46
2

Answer:

USING PYTHON

Example 1

number = input("Enter your house number: ")

street = input("Enter your street name: ")

town = input("Enter your town/city: ")

county = input("Enter your county: ")

postcode = input("Enter your postcode: ")

print("\nAddress Details:\n" + "Street: " + number + " " + street + "\nTown/City: " + town + "\nCounty: " + county + "\nPostcode: " + postcode)

Example 2

score = int(input("Enter a score between 0 and 100: "))

if score >=70:

print("That test score is a grade A")

elif score>=60:

print("That test score is a grade B")

elif score>=50:

print("That test score is a grade C")

elif score>=40:

print("That test score is a grade D")

else:

print("That test score is a grade U")

Explanation:

MARK ME AS BRAINLIEST

Similar questions