Entries by admin

Write a program that creates a dictionary containing the U.S. states as keys and their abbreviations as values. The program should then randomly quiz the user by displaying the abbreviation and asking the user to enter that state’s name.

Write a program that creates a dictionary containing the U.S. states as keys and their abbreviations as values. The program should then randomly quiz the user by displaying the abbreviation and asking the user to enter that state’s name. The program should keep a count of the number of correct and incorrect responses, as well […]

Write a program that determines Perfect Numbers

Write a program that determines Perfect Numbers. A perfect number is an integer, such that the sum of all the distinct factors in the number, excluding the number itself, add up to the original number. Perfect numbers are not very common. Examples of perfect numbers are: 6 = 1 + 2 + 3 28 = […]

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places. (Note that for standard Earth gravity, 1 kilogram = 2.2 pounds

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places. (Note that for standard Earth gravity, 1 kilogram = 2.2 pounds.) Format your output with two decimal places?Please help!!!