Prompt for a number and display the corresponding calendar

Assignment Help Python Programming
Reference no: EM132356278

Problem 1:

Create a program to calculate the body mass index (BMI) for a person using the person's height in inches and weight in pounds. The program should prompt the user for weight and height.

Calculate the BMI by using the following formula: bmi = (weight / (height * height)) * 703

If the BMI is between 18.5 and 25, display that the person is at a normal weight. If they are out of that range, tell them if they are underweight or overweight and tell them to consult their doctor.

Example Output

Your BMI is 19.5.

You are within the ideal weight range.

Your BMI is 32.5.

You are overweight. You should see your doctor.

Problem 2:

Create a tax calculator that handles multiple states and multiple counties within each state. The program prompts the user for the order amount and the state where the order will be shipped.

Wisconsin residents are charged a base tax of 5%. Wisconsin residents are also charged additional tax based on their county of residence.

- For Eau Claire county residents, add an additional 0.005 tax.

- For Dunn county residents, add an additional 0.004 tax.

Illinois residents must be charged 8% sales tax with no additional county-level charge. All other states are not charged tax. The program then displays the tax and the total for Wisconsin and Illinois residents but just the total for everyone else.

Example Output

What is the order amount? 10

What state do you live in? Wisconsin

What county do you live in? Eau Claire

The tax is $0.55.

The total is $10.55.

Problem 3:

Write a program that converts a number from 1 to 12 to the corresponding month. Prompt for a number and display the corresponding calendar month, with 1 being January and 12 being December. For any value outside that range, display an appropriate error message.

Example Output

Please enter the number of the month: 3

The name of the month is March.

Problem 4:

Create a program that compares two strings and determines if the two strings are anagrams. The program should prompt for both input strings and display the output as shown in the example that follows.

Example Output

Enter two strings and I'll tell you if they are anagrams:

Enter the first string: note

Enter the second string: tone

"note" and "tone" are anagrams.

Problem 5:

Create a program that determines the complexity of a given password based on these rules:

- A very weak password contains only numbers and is fewer than eight characters.

- A weak password contains only letters and is fewer than eight characters.

- A strong password contains letters and at least one number and is at least eight characters.

- A very strong password contains letters, numbers, and special characters and is at least eight characters.

Example Output

The password '12345' is a very weak password.

The password 'abcdef' is a weak password.

The password 'abc123xyz' is a strong password.

The password '1337h@xor!' is a very strong password.

Reference no: EM132356278

Questions Cloud

Prompt the user to enter the amount of a dinner bill : A common issue with dinning out is calculating the correct tip amount. Need a Python program that will Prompt the user to enter the amount of a dinner bill.
Evaluate the implications of internet use : In a 750- to 1,250-word paper, evaluate the implications of Internet use (including, but not limited to, basic web presence, online shopping, vendor unique.
Discuss the two major risks of using international strategy : Discuss the two major risks of using international strategy. These risks are complexities and limits. Include in your response how Nehemiah1-5 guides
How simply awareness can help with security countermeasures : A wiki is a collaborative web site that collects and organizes content, created and revised by its users. The most well-known example is Wikipedia.
Prompt for a number and display the corresponding calendar : Write a program that converts a number from 1 to 12 to the corresponding month. Prompt for a number and display the corresponding calendar.
Determining how the crime was committed : Locate one current news article that explains how investigators may have used these techniques to solve a crime. Explain the crime that was solved.
Business analyst skilled in area of operational excellence : As business analyst skilled in area of operational excellence, you are hired by company to compile detailed case study analysis of quality control product
Discuss the problem related to vpn service : Using the Internet, locate TWO companies that provide VPN services. Compare the TWO different services offered. Include their services, pricing, and make.
Create a program to calculate the body mass index bmi : Create a program to calculate the body mass index BMI for a person using the person's height in inches and weight in pounds.

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