# programming

posted by .

Write a program that will ask the user to enter a person's age, weight and birth month. Your program will compare the entered value to the following and print the appropriate response. Be sure to use modules.

The secret answers: age=25

The comparison: if the guessed age less than or equal to 25

The printed response: Congratulations, the age is 25 or less.

The secret answer: weight= 128

The comparison= If the guessed weight is greater that or equal to 128

The printed response: Congratulations, the weight is 128 or more

The secret answer: birthMonth = 'April'

The comparison: if the guessed month is equal to April

The printed response: Congratulations, the birth month is April

This program to be written in Python and Raptor

• programming -

For your information, I will tend to respond to posts on programming / computers in which efforts are shown.

Unlike mathematics, where 2+2 always equal 4 (if we are in the decimal system).

However, no two computer programs are the same, so every program is a personal version of the answer.

We can help you correct your coding, or suggest new algorithms, but you need to show your work, please.

• programming -

I really don't know how to start.. so I have nothing written now

• programming -

If you really don't know where to start, you may review your teacher's class notes, your text book. If there is none, you can also learn by tutorials, such as:
http://www.sthurlow.com/python/

Do you have Python installed on your computer, or you have one available at school? The first part of the tutorial deals with installation of Python on your computer.

• programming -

The Python Code

def main():
age = getAge()
weight = getWeight()
birthMonth = getMonth()
def getAge():
age = input ("Enter your guess for age: ")
return age
def getWeight():
weight = input ("Enter your guess for weight: ")
return weight
def getMonth():
birthMonth = raw_input ("Enter your guess for birth month: ")
return birthMonth
def correctAnswers (age, weight, birthMonth):
if age<=25:
print "Congratulations, the age is 25 or less"
if weight>=128:
print "Congratulations, the weight is 128 or more"
if birthMonth=="April" or "april":
print "Congratulations, the birth month is April"
main()
you can also learn by Python tutorials, such as:The Python Code

def main():
age = getAge()
weight = getWeight()
birthMonth = getMonth()
def getAge():
age = input ("Enter your guess for age: ")
return age
def getWeight():
weight = input ("Enter your guess for weight: ")
return weight
def getMonth():
birthMonth = raw_input ("Enter your guess for birth month: ")
return birthMonth
def correctAnswers (age, weight, birthMonth):
if age<=25:
print "Congratulations, the age is 25 or less"
if weight>=128:
print "Congratulations, the weight is 128 or more"
if birthMonth=="April" or "april":
print "Congratulations, the birth month is April"
main()
you can also learn by Python tutorials form GURU99

## Similar Questions

1. ### C Programming

Write a program that prompts the user to enter a temperature, followed by a letter representing Celsius (C) or Fahrenheit (F). Then prompt the user for the conversion type and print the results to the screen with one decimal point. …
2. ### computers

Write a program that will ask the user to enter a person's age, weight and birth month. Your program will compare the entered value to the following and print the appropriate response. Be sure to use modules. The secret answers: age=25 …
3. ### programming MIPS ask

Write a MIPS assembly language program that will cover the following steps: Prompt the user to enter a first integer named i1 Prompt the user to enter a second integer named i2 Compute i1+i2-200 Print the value of the result Repeat …
4. ### Programming and Design

Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a number …
5. ### Programming in c++

Draw a flow-chart and Write a program that asks the user to enter students grades. The program should stop reading when the use enters ‘*’. In addition, your program should print the number of students got each grade. The grades …
6. ### C programming

Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: …
7. ### Computer Science

write a program that will prompt the user for a value and print the value entered to the screen. The program stops when the user enters a value less than zero. I need an IPO chart, pseudocode and C++
8. ### programming

Write a program which allows user to enter 10 student names and scores for Java programming 1 and Java programming 2. Allow user to choose which course they want to enter the record for. Use the loop to ask input from user. The program …
9. ### java programming

Your boss at Ruritania Weather Center (RWC) has asked you to write a small program for center. The specification are as follows: a. the program asks a user to enter a number between 1 and 12 inclusive representing the months January …
10. ### computer programing

: Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: …

More Similar Questions