python code to print the right alphabetic triangle up to the given N rows.
1) Write a Python program to print the following string in a specific format:
Sample String : "Twinkle, twinkle, little star, How I wonder what you are! Up above the world so high, Like a diamond in the sky. Twinkle, twinkle, little star, How I wonder what you are"
I am trying to write a python program that illustrates my knowledge of CS Concepts. I want to specifically make a "calories burned calculator that has a menu with several different exercises. I want the user to pick one of the exercises, then I want them to put in their weight, age, and height, and from that information I would like a number of calories that would have been burned for that specific activity. The data doesn't need to be accurate, I will change that myself, I just need a basic python program that can run those operations.
As a minimum, the program needs:
to be programed solely in Python
Use a data structure (array, objects, files, database)
Have a interface for the user (Tkinter, pygame, command - line menu)
Solve the problem of how many calories you burned with each exercise relative to your weight, age, and height
Shouldn't crash under a typical load
Write a program which prompts the user for a Celsius temperature, convert the temperature to Fahrenheit, and print out the converted temperature.
Assume that we execute the following assignment statements:
width = 17
height = 12.0
For each of the following expressions, write the value of the expression and the type ( of the value of the expression )
1. width/ /2
2. width/2.0
3. height/3
4. 1 + 2 * 5
Use the Python interpreter to check your answers
Write a program to prompt the user for hours and rate per hour to compute gross pay.
Enter Hours: 47
Enter Rate: 3.25
Pay: 152.75
Write a program that uses input to prompt a user for their name and then welcomes them
Enter your name: Mira
Hello Mira
Create a program that will accept number of passengers and distance from point of origin to destination. Calculate the expense of the passenger if the fare is P20.00 per kilometer.
sample output:
passenger count: 5
distance :2
total fare is : P200.00
Create a program that will accept number of passengers and distance from point of origin to destination. Calculate the expense of the passenger if the fare is P20.00 per kilometer.
Create a program that will accept number of passengers and distance from point of origin to destination. Calculate the expense of the passenger if the fare is P20.00 per kilometer. The image is the sample output. Attach the screenshot of your code.
Passenger count: 5
Distance: 2
Total fare is : (peso sign) 200.00