Complete - Computer Programming II
Complete - Computer Programming II
2 / 2019
CBCP 2202
COMPUTER PROGRAMMING II
0
INSTRUCTIONS
Do not copy the assignment question and instructions to your answer.
Prepare your assignment answer following the layout of the ASSESSMENT
CRITERIA shown in the RUBRICS provided for the course. Where RUBRICS are
not provided, follow the instructions/guidelines specified by the Open University
Malaysia (OUM) for the assignment concerned.
Your assignment should be written according to the number of words outlined
in the assignment instruction EXCLUDING references.
Type your answer using 12 point Times New Roman font and 1.5 line spacing.
Show the number of words at the end of your assignment.
Tables and figures where provided, should be appropriately titled.
List your references separately in the APPENDIX page.
1
1.0 Introduction
language to create or write an operating system. The main task for this assignment is
Image output 1
2
Image Output 2
3
#include <stdio.h>
#include <math.h>
int main(void) {
// P = Monthly Payment
// A = Loan Amount
// r = Rate of Interest
// N = Number of Payment
// Total Payment
// Variable
char Choose;
// Variable
double a, b, c, d, P, r = 3.25, MonthlyPayment , Rates, NumberOfYear, TotalPayment;
// Variable
double Increment = 0.25, RateofInterest = 3.25 , Increament = 0.25;
4
for (int i=0; i<=18 ; i++)
{
// Increament + 0.25 everytime
r += Increment;
5
printf ("\n\n Do you want to repeat the operation Y/N: ");
// Input to store
scanf (" %c", &Choose);
}
// Capital or small Capital both will work
while (Choose == 'y' || Choose == 'Y');
6
ATTACHMENT
REFERENCES