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 a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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