1
Student Name: __________________
Class and Section __________________
Total Points (20 pts) __________________
Due: Monday, October 3, 2016 before the class
Project: Comparing Loans
CSCI 1301 Introduction to Programming Principles
Armstrong Atlantic State University
Problem Description:
Write a program that lets the user enter the loan amount and loan period in number of
years and displays the monthly and total payments for each interest rate starting from 5%
to 8%, with an increment of 1/8. Here is a sample run:
<Output>
Analysis:
(Describe the problem including input and output in your own words.)
Design:
(Describe the major steps for solving the problem.)
2
Submit the following items:
1. Print this Word file and Submit to me before the class on the due day
2. Compile, Run, and Submit to LiveLab as Exercise05_21 (you must submit the program
regardless whether it complete or incomplete, correct or incorrect)
Hint:
1. Can you get the first four rows manually? This will help you understand how to compute
the numbers mathematically.
3
Code Solution:
public class Exercise05_21 {
// Main method
public static void main(String[] args) {
java.util.Scanner input = new java.util.Scanner(System.in);