Question: first think about the algorithm. An algorithm is a procedure for solving a problem, and can be expressed using many kinds of notation such as

 first think about the algorithm. An algorithm is a procedure for
solving a problem, and can be expressed using many kinds of notation

first think about the algorithm. An algorithm is a procedure for solving a problem, and can be expressed using many kinds of notation such as flowcharts, pseudocode, and natural languages. As a new student to programming, you are learning both the syntax of the programming language, and trying to figure out the algorithm at the same time. As you become more proficient with the syntax, most of your time will be spent on finding a correct algorithm. A large part of programming is learning to think clearly and concisely. If you spend the time figure out the approach to solving the problem first, it will be much easier to write the code. A good algorithm when written down can be ported to many different programming languages How much interest is earned in 5 years if $3,000 is invested at a simple interest rate of 7% per year? You are given the formula l PRT, where l represents nterest earned, P represents pnncpal or amount ivested, R represents simple interest rate per year, and T represents time in years. Translate the following natural language type pseudocode into a working C computer program that can solve this problem for any P, R, and T provided by the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!