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

  Write Python program that generates an informative web site

ICT112 Assignment - Generated Web Site for Aussie Airport Passenger Movements. University of the Sunshine Coast. write a Python program that generates a site

  Python code for grabbing data from yahoo finance

I am new to Phython. Using Spyder IDE Simple code. It is not recognizing by Data file see line 33 - The purpose of assignment is to get you familiar with the Python.

  Why was basic good in past and why have we moved to python

Why was BASIC good in the past? Why have we moved to Python? Feature-by-feature, how powerful is BASIC vs. Python?

  Create a print command to output each variable

Write a Python script that meets the following requirements: declares three variables: GPA (floating-point number), studentName ( a string), studentNumber.

  Implement the remaining simple arithmetic operators

Implement the remaining simple arithmetic operators (_sub__, __mul __ and truediv ___). Implement the remaining relational operators.

  The block of statements below the line of stars

The block of statements below the line of stars is where I need help correcting. The true line that needs to be corrected is p = add((getX(k),getY(r))), it needs to give points of the path using the block of information. I have somthing which I kn..

  Write a program that asks the user for a letter

Write a program that asks the user for a letter. The program should then determine if the letter is a vowel or not

  Topic of effective and ethical communication

Design an algorithm and use it to write a Python program that reads the contents of the data file into a list. The program should then loop, to allow a user to check various numbers against those stored in the list.

  What is the purpose of variable fragnum

What is the purpose of variable fragNum in rdt1.0 sender code and how is the segmented message merged back in receiver? Which operation justifies it?

  Write a function replist that receives two input arguments

In python, write a function repList that receives two input arguments: a list and the number of times each element is to be duplicated.

  Write a program that displays 10 random balls in a rectangle

Write a program that displays 10 random balls in a rectangle with width 120 and height 100, centered at (0,0).

  Write a modularized body mass index program

Write a modularized Body Mass Index (BMI) Program which will calculate the BMI of a team player. The formula to calculate the BMI is as follows: BMI = Weight *703 / Height^2.

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