5.4k views
4 votes
Develop a Flowgorithm and Python code the following problems. Upload the Flowgorithm and code files to Github. Paste the Github link into the upload link on Blackboard.

Save your files with the convention PS3P1, PS3P2 etc. PS3P1 is Problem set 1, program 1 etc.

Allow the user to enter two test scores from the keyboard. The first test is worth 60% of the total points and the second test is worth 40%. Calculate the total score by multiplying each test score input by the respective weighting then add the two results together. Display the total.

Input the purchase price per share, the current stock price and quantity of stock, compute the increase (or decrease) of the value of the stock entered. (value is computed as (current price – price per share) * quantity. If the amount is negative that means you are losing money).

Enter the total for a meal. Compute a tip at 15%, 18% and 20%. Display total, each tip value and total with each tip value. Your output should have total for the meal as entered, tip and total with tip for each tip value. (9 lines). Put a blank line between each tip of the set of tip values. For example,

With 15% Tip:
Total: 10
Tip: 1.50
Total with Tip 11.50

With 18% Tip:
Total: 10
Tip: 1.80
Total with Tip 11.80

With 20% Tip:
Total: 10
Tip: 2.00
Total with Tip 12


Enter first name and number of steps walked in a day. For each step you burned .25 calories. Compute the number of calories burned. Display first name and calories burned.


You are setting up a business and need to compute the break even point. This indicates how many items you must sell at a given price to cover your overhead. Enter fixed costs, price per unit and cost per unit into your program. Compute the break even point by dividing fixed costs by the difference of price per unit and cost per unit.

User Yurib
by
7.6k points

1 Answer

3 votes

Final answer:

These problems require creating algorithms and Python code for tasks such as calculating weighted test scores, stock value change, meal tip amount, calories burned, and a business break-even point. Each task involves inputs, specific calculations, and outputs of the results.

Step-by-step explanation:

To solve the specific problems mentioned, you would create algorithms and corresponding Python code to execute the required tasks. Each problem is centered around basic computational problems that require data input, processing, and output of the results.

Calculating Weighted Test Scores

The first problem requires you to calculate the total test score based on different weightings for two tests. You would multiply each test score by its respective weighting (60% for the first test and 40% for the second test) and then add the results together to get the total weighted score.

Computing Stock Value Change

In the second problem, to compute the change in value of a stock, you would subtract the purchase price per share from the current stock price, then multiply the result by the quantity of stock owned. The output would indicate whether there's an increase or decrease in the value of the investment.

Calculating Meal Tips

The third problem involves calculating different tip amounts for a meal's total. You would calculate the tip values at 15%, 18%, and 20%, and then add each to the original total to find the final amounts with tips included.

Calories Burned Calculation

In the fourth problem, you calculate the number of calories burned based on the number of steps walked. Each step burns 0.25 calories, and you would need to display the first name of the individual along with the total calories burned.

Break Even Point for a Business

For the fifth problem, calculating the break even point requires you to divide the fixed costs by the difference between the price per unit and the cost per unit, which will show you how many items must be sold to cover all expenses and start making a profit.

User BenDundee
by
8.1k points