<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Dismiss
Skip Navigation
Our Terms of Use (click here to view) and Privacy Policy (click here to view) have changed. By continuing to use this site, you are agreeing to our new Terms of Use and Privacy Policy.

8.4: Solutions to Exercises

Difficulty Level: At Grade Created by: CK-12

Solution to Exercise 1

10 times.

Solution to Exercise 2

This loop will continue to print 'Hello World' until the user stops the program. You can stop a program by holding down the 'Ctrl' key and simultaneously pressing the 'c' key.

Solution to Exercise 3

a =
1
a =
2
a =
4
a =
8
a =
16
a =
32
a =
64
a =
128

Solution to Exercise 4

a =
1
a =
2
a =
6
a =
24
a =
120

Solution to Exercise 5

APR = 14.9;
r = (1 + APR/100)^(1/12)-1;

Solution to Exercise 6

bn = 2203;
pn = max((r + 0.01)*bn, 10);

Solution to Exercise 7

fn = r * bn;
bn = bn + fn - pn;

Image Attributions

Show Hide Details
Description
Subjects:
Grades:
Date Created:
Feb 23, 2012
Last Modified:
Apr 13, 2016
Save or share your relevant files like activites, homework and worksheet.
To add resources, you must be the owner of the section. Click Customize to make your own copy.
Reviews
Help us create better content by rating and reviewing this modality.
Loading reviews...
Please wait...
Please wait...
Image Detail
Sizes: Medium | Original
 
CK.ENG.ENG.SE.1.Engineering-Matlab.8.4