Represent the algorithm of each problem in both pseudocode and flowchart Please follow proper pseudocode conventions and make sure that your flowcharts are neatly organized and easy to trace Design an...



Represent the algorithm of each problem in both pseudocode and flowchart



Please follow proper pseudocode conventions and make sure that your flowcharts are neatly organized and easy to trace


Design an algorithm for a company that sells three types of bags: small, medium, and large. They sell for $2.00, $3.50, and $4.00 respectively. This algorithm is to read three numbers input by the user. The first number indicates how many small bags the customer has ordered. The second number indicates how many medium bags the customer has ordered. And the last number indicates how many large bags the customer has ordered. The algorithm will calculate and print to the screen the
total
cost of the bags, the sales tax charged at a rate of 7.5%, and the total sale including sales tax.




Design an algorithm that will
repeatedly
get as input a single data value
x
and will output the two values of
x
2
and 1/x. This process should repeat until the input value for
x
is 999, at which time the algorithm terminates.




Design an algorithm that takes as input two integers,aandb, and outputs the sum of all the integers betweenaandbinclusive. You may assume thataband thata> 0 andb> 0.




Design an algorithm where the user inputs the length and width of a carpet in feet and the cleaning cost per square foot. The cost is double for every square foot past the first 100. Calculate and output the area of the carpet (square feet) and the cost of cleaning the carpet.





May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here