0% found this document useful (0 votes)
58 views4 pages

Python Lab: Compound Interest Problem

This document outlines the instructions for Machine Problem #1 in the CSS12L Computer Programming Laboratory course. Students are required to write a Python program to calculate compound interest, submit specific files, and adhere to formatting and commenting guidelines. The grading rubric includes criteria for output accuracy, comments, design, and submission completeness.

Uploaded by

Donald trump
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views4 pages

Python Lab: Compound Interest Problem

This document outlines the instructions for Machine Problem #1 in the CSS12L Computer Programming Laboratory course. Students are required to write a Python program to calculate compound interest, submit specific files, and adhere to formatting and commenting guidelines. The grading rubric includes criteria for output accuracy, comments, design, and submission completeness.

Uploaded by

Donald trump
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Official Business

CSS12L: Computer Programming Laboratory


Machine Problem #1: Variables, Input and Output

Name: Score
:

Sectio Date:
n:

Instructions:
1. Save your file as Surname_Firstname_MP1. Ex. Santos_Jared_MP1

2. You will submit the following and send it to BB.

a. PDF file of Machine Problem 1 provided with the screenshot of your answers.
b. Python Notebook File

3. Your program must have comments for each section.


Header Comments:

This demo program shows how good a Python program is


Written by: Cheryl Mari M. Isip
Date: January 07, 2025
Time: 12:30pm
Program: BSIE
Course: CSS12L
Section: A9
School: Mapua University

4. Your output should be displayed rounded to two decimal places.

5. You’re not allowed to use conditional or repetition statements.

Rubrics
1. Correct output 50
2. Comments 10
3. Design and user interface 20
4. Complete submission of files 10
(Zip files) 10
5. Readability
Official Business
CSS12L: Computer Programming Laboratory
Machine Problem #1: Variables, Input and Output

MACHINE PROBLEM

1. The formula for computing the final amount if one is earning compound interest is given
on Wikipedia as

Write a Python program that assigns the principal amount of 10000 to variable P, assign to n
the value 12, and assign to r the interest rate of 8% (0.08). Then have the program prompt
the user for the number of years, t, that the money will be compounded for. Calculate and
print the final amount after t years.

In the editor window, take a screenshot and paste your output:


Official Business
CSS12L: Computer Programming Laboratory
Machine Problem #1: Variables, Input and Output

In the command window, take a screenshot and paste your output:


Official Business
CSS12L: Computer Programming Laboratory
Machine Problem #1: Variables, Input and Output

You might also like