Question: Design detailed algorithms for the following problems. Your algorithm must have at least 4 to 5 steps. And it must be very clear. Write an

Design detailed algorithms for the following problems. Your algorithm must have at least 4 to 5 steps. And it must be very clear. Write an algorithm:
1. That gets the radius r of a circle as input. Its output is both the circumference and the area of a circle of radius r.
2. That gets as input your current credit card balance, the total dollar amount of new purchases, and the total dollar amount of all payments. The algorithm computes the new balance, which this time includes an 10% interest charge on any unpaid balance below $200, 14% interest on any unpaid balance between $200 and $500, inclusive, and 18% on any unpaid balance above $500.
3. Jason typically uses the Internet to buy various items. If the total cost of the items ordered, at one time, is $200 or more, then the shipping and handling is free; otherwise, the shipping and handling is $2 per item. Design an algorithm that prompts Jason to enter the number of items ordered and the price of each item. The algorithm then outputs the total billing amount. Your algorithm must use a loop (repetition structure) to get the price of each item. (For simplicity, you may assume that Jason orders no more than five items at a time.)

Step by Step Solution

3.52 Rating (182 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

1 Algorithm import math r floatrawinputstrip circumpherence 2mathpir area mathpirr print cir... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1019-B-C-A-T-A(1747).docx

120 KBs Word File

Students Have Also Explored These Related Cost Accounting Questions!