Reference no: EM132382436
Question
program4_1.py
Uses a for loop with the range function to inspect all integers from 300 down to 1. See page 170-172 to learn about the range function. Code in the loop should find exact multiples of 23 and print them in fields 5 characters wide on one line. The loop should also determine two totals; the total of the even multiples and the total of the odd multiples of 23. When the loop ends, the program should display these two totals.
program4_2.py
Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commission of 5% of the selling price. use interactive program that calculates a salesperson's total pay for selling two vehicles, each one of any type. The program should prompt the salesperson to enter the type & selling price of each vehicle. Do not use a loop. The program should then display the salesperson's total sales and total pay. Express these amounts in currency format as described in the requirements above.
You were specifically instructed not to use a loop to process the sale of two vehicles. In fact, this problem can be much better addressed with a loop. use a loop to solve this problem.
program4_4.py
Prompts the user to enter a series of strings, but with each string containing a small integer. Use a while loop and stop the loop when the user enters a zero. When the loop has finished, the program should display:
the number of user inputs (not counting the final zero input).
the total of the integers in the strings entered.
the average of the integers accurate to one decimal place.
List of integers path that represents a proposed path
: Create function post_time that returns how long it will take Johnny's card to travel the given path using divide and conquer.
|
PROJ6009 Business Process Management and Systems Assignment
: PROJ6009 Business Process Management and Systems Assignment help and solution, Torrens University Australia, Assessment help - analyse the role of management
|
Expected value and standard deviation of rate of return
: What is the expected value and standard deviation of the rate of return of your client's portfolio?
|
Create the blog and relevant pages
: For this Project - You just need to create the blog and relevant pages. You don't have to write posts. What needs to be done is mentioned in detail here
|
Prompts the user to enter a series of strings
: Prompts the user to enter a series of strings, but with each string containing a small integer. Use a while loop and stop the loop when the user enters a zero.
|
Find the time when the concentration will return back
: Suppose a reactor normally contains 12 units of dissolved oxygen in a fixed volume of water. Suppose at t=0(min) a quantity of organic waste is introduced.
|
ISY3001 e-Business Fundamentals and Systems Assignment
: ISY3001 e-Business Fundamentals and Systems Assignment Help and Solution - Australian Institute of Higher Education, Australia
|
EDEC102 Foundations of Early Childhood Class Assignment
: EDEC102 Foundations of Early Childhood Class Assignment help and solution, Excelsia College, Assessment help - How would this theory align with the precepts
|
Report the total number of pies you can make
: Prompt the user for the # of crust, meat, corn, and potatoes they have. Report the total number of pies you can make, and the leftover ingredients.
|