Implement a voting test

Assignment Help Python Programming
Reference no: EM132161903

This programming assignment includes 4 short programs:

1. Implement a voting test. The user enters their age and then the program prints either, "You must be 18 to vote" or "You are of voting age".

2. Ask the user to enter a grade percentage. Convert the grade into a letter grade. For instance, if the user types 99 then print A+. You can find a sample grading scale

3. Write a program that asks for two numbers. If the sum of the numbers is greater than 100, print "They add up to a big number" if it is less than/equal to 100 than print "They add up to "

4. Implement a random number guessing game. The computer will pick a number at random from 0-9, the user will be asked to guess the number. Inform the user if they get the answer correct.

You will need to include the following in your program to create a variable "randomNum" and set it to a number from 0-9 at random: from random import randint randomNum = randint(0,9)

Attachment:- Assignment.zip

Verified Expert

This assignment is of python programming which is illustrating the use of conditional statement, i.e., if-elif-else statement in programming. There are 4 different questions in which if - else - elif statement is used. The program demonstrate the logic building using condition statement. The assignment also illustrate the use of random numbers in the python programming.

Reference no: EM132161903

Questions Cloud

Calculate margin for each division : Pronghorn, Inc., reported the following results for last year. Calculate margin for each division. Which division generates the highest margin
What is the best way to use join in sql : What is the best way to use "join" in SQL. Do you use the join to add two different sections for different tables into one?
Justifications for recommending it or denouncing it : Question: Based on your understanding of computer forensics, would you recommend it as a career option to your friends and family members?
How do firewalls block traffic : Referring to distributed computer architecture, please write on "Firewalls", and in particular, how it addresses the following questions.
Implement a voting test : Implement a voting test. The user enters their age and then the program prints either, "You must be 18 to vote" or "You are of voting age"
Scholarship endowments for major public university : Meredith Shomers manages scholarship endowments for a major public university. What is the maximum scholarship payment that should be made in the current year?
Write code that outputs the number in words : The int t contains an integer between 1 and 50 (inclusive). Write code that outputs the number in words and stores the result in the String inwords.
Three fundamental things of any kan ban implementation : What are the 3 fundamental things of any Kan Ban implementation?
Create a scatter diagram in the statistical software : Create a scatter diagram in the statistical software of your choosing for one of your independent variables. Verbally explain whether there is a strong relation

Reviews

Write a Review

Python Programming Questions & Answers

  Create a program that gets a message from the user

Create a program that gets a message from the user and then prints it out backwards.

  Write a function named digit_count that takes one parameter

Write a function named digit_count that takes one parameter that is a number (int or float) and returns a count of even digits, a count of odd digits.

  Implement a triangle class in python

CSc 11300 Spring 2016 Programming Languages. Implement a Triangle class in Python: The triangle is defined by its three side lengths - a, b, and c. The class includes methods that perform the following operations: is_triangle - checks whether the giv..

  Define a class for representing a distance

Define a class for representing a distance (with one attribute that represents the distance in inches).

  Determine the final order of a stack of pancakes

create a Python program called pancakes.py that will determine the final order of a stack of pancakes after a series of flips.(PYTHON 3)

  Compare crimes rates in different cities

Use the following dataset 'Crime in Major Cites' to compare crimes rates in different cities for the years listed in the dataset. Is there an obvious trend

  Fill in the python code

Fill in the Python code to play Tic Tac Toe. I won't award points unless it runs succesfully. # Tic-Tac-Toe Game def drawBoard(board): # Draws the board using the list of numbers print(" ") print(" ",board[0]," | ",board[1]," | ", board[2]) print("--..

  Create a single line plot with two line for lists

BIO380: Practical Computing for Scientists Assignment - create a single line plot with two line for lists that track the Prey and Predadator populations

  Computing finite difference for first derivative of function

Computing finite difference approximations for the first derivative of a specified function, and to plot these approximations along with the analytical first

  Create an html web document that displays the results

Search for and download a photograph of a jackrabbit. Create an HTML Web document that displays the results and plays the blended WAV document that you created in Topic 5. Add a headline "Mythological Jackalope Discovered!"

  Write a program to that displays a table

Write a program to that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit and Kelvin equivalents

  Write python script that reads and analyses country metadata

ICT702 Task 2 - Theme: Child Mortality. In this second part of Task 2, you should write another Python script that reads and analyses the country metadata

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd