Question: Programs in IDLE: Create a program in IDLE named yyyy lab1-1.py (where yyyy is your family name plus your first name initial). Opening a new
Programs in IDLE:
- Create a program in IDLE named yyyylab1-1.py (where yyyy is your family name plus your first name initial). Opening a new File, write and test a program that accepts the users name and age as input. (Be sure to convert the age to an integer.) Then output a sentence that uses both their name and their age.
A sample run: Getting to know you
Type your first name: Albert
How old are you? 21
Albert, 21 is a good age to be!
- Write a program in IDLE named yyyylab1-2 (where yyyy is as in no. 1) that converts pounds into kilograms. The program asks the user to type a number of pounds. It then converts that to kilograms and displays the result. One pounds is 0.454 kilograms.
This is a sample run (so that you can use this number and check the result):
This program changes pounds to kilograms.
Enter a value in pounds: 110.5
110.5 pounds is 50.167 kilograms
- The name of your project will be as specified in the lab (usually your last name and first initial followed by the lab number.
- Appropriate comments should appear in each procedure.
- The program informs the user of what it will do.
- The program uses only those skills that were learned in the current chapter or earlier chapters. This is to ensure that you can use those specific methods effectively.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
