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 thetotalcost of the bags, the sales tax charged at a rate of 7.5%, and the total sale including sales tax.
Design an algorithm that willrepeatedlyget as input a single data valuexand will output the two values ofx2and 1/x. This process should repeat until the input value forxis 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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here