Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions