Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program: assign02a.m Write a MATLAB script file that uses principal (or amount), rate of interest, and time to compute and display the simple interest with

image text in transcribed
Program: assign02a.m Write a MATLAB script file that uses principal (or amount), rate of interest, and time to compute and display the simple interest with appropriate labeling. Problem CONSTANTS: PRINCIPAL (with units) 4000 $ dollars Problem Inputs: (with units) rate of interest 4.75 % percent time 4 years NO error checking. Do not use commands and statements beyond what has been taught on class. Do not use commands and statements in assign01 until they have been discussed in class. Problem Outputs: (with units) simple interest % dollars New commands: format bank, loose disp() Use descriptive variables. Other variables: (with units) none Equation: See above. Algorithm: See green comments below. Type the green comments as given in the editor window and use as a guide for typing the MATLAB statements. Run output: Simple interest ($): Some rounding differences allowed 760.00 Start your program file by typing the following into your empty editor window. Type yours/your group and other required information comments Type the algorithm as given below as comments to guide you when writing the MATLAB instructions to do the tasks to solve the given problem. Below the comment, type the MATLAB statement(s) that do what the comment says. This example should help. A sample program The algorithm was added as comments to guide you when writing the MATLAB program file solution for the problem. A letter is not a descriptive name, but in this equation a, b, c are commonly used as quad equation coefficients. submitter's name, GROUP # or none other group members' names or none # program file name due date of the assignment statement(s) about collaboration. See syllabus for example a short narrative about what the file does clc, clear all format short clc, clear all format long format loose *** INPUT* # Get coefficients a = 1; + 1st coefficient E ndistant

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_2

Step: 3

blur-text-image_3

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

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions