Create the algorithm in both flowchart and pseudocode forms for the following two functions: A. Write a Python function that receives a real number argument representing the sales amount for videos rented so far this month. The function asks the user for the number of videos rented today and returns the updated sales figure to the main function. All videos rent for $4.25. B. Write a Python function that receives three integer arguments and returns the maximum of the three values. ) Create the algorithm in both flowchart and pseudocode forms for a main program that tests the two above functions. C. Write a Python main program that calls both above functions to shows that both functions work properly.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 1PP
icon
Related questions
Question
100%
Create the algorithm in both flowchart and pseudocode forms for the following two functions:
A. Write a Python function that receives a real number argument representing the sales amount for videos rented so far this month. The
function asks the user for the number of videos rented today and returns the updated sales figure to the main function. All videos rent for
$4.25.
B. Write a Python function that receives three integer arguments and returns the maximum of the three values.
) Create the algorithm in both flowchart and pseudocode forms for a main program that tests the two above functions.
C. Write a Python main program that calls both above functions to shows that both functions work properly.
Transcribed Image Text:Create the algorithm in both flowchart and pseudocode forms for the following two functions: A. Write a Python function that receives a real number argument representing the sales amount for videos rented so far this month. The function asks the user for the number of videos rented today and returns the updated sales figure to the main function. All videos rent for $4.25. B. Write a Python function that receives three integer arguments and returns the maximum of the three values. ) Create the algorithm in both flowchart and pseudocode forms for a main program that tests the two above functions. C. Write a Python main program that calls both above functions to shows that both functions work properly.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr