Survey

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Survey

Document related concepts

no text concepts found

Transcript

“SIMPLE INTEREST AND COMPOUND INTEREST CALCULATOR” • Mini-Project (OPERATING SYSTEM) • Submitted in partial fulfilment of the requirement of University of Mumbai For the Degree of • (Computer Engineering) • By • SHABARISH SHETTY[B-53] ID NO: TU3F1819132 • AJINKYA THAKUR[B-46] ID NO: TU3F1819123 • MANAS PHANSE[B-40] ID NO: TU3F1819117 • Under the Guidance of Prof. “PRAMILA MATE” Have satisfactorily completed the requirements of the Mini Project Of subject • “Operating System” • As prescribed by the University of Mumbai Under the guidance of • Prof. “Pramila Mate” 1.INTRODUCTION • P.T.O Objective of OS Project on SI and CI calculator: • The main objective of this project is to calculate the SI & CI in faster and in most reliable way. This means you can do multiple calculations in minutes whereas calculations may take more time on paper. What Is Simple Interest? • Simple interest is a quick and easy method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments. • Simple Interest=P×I×N where: P=principle • I=daily interest rate • N=number of days between payments What Is Compound Interest? • Compound interest (or compounding interest) is interest calculated on the initial principal, which also includes all of the accumulated interest of previous periods of a deposit or loan. • Compound Interest = Total amount of Principal and Interest in future • (or Future Value) less Principal amount at present (or Present Value) • = [P (1 + i)n] – P • = P [(1 + i)n – 1] • (Where P = Principal, i = nominal annual interest rate in percentage terms, and n = number of compounding periods.) 2.PROBLEM STATEMENT • Creating a Simple Interest and Compound Interest Calculator using bash script in Linux. • Objective of Project – • The main objective of this project is to create a user friendly and efficient system for calculation of the EMI, which saves the user’s valuable time and efforts. • About shell script: • A shell script is a computer program designed to be run by the Unix shell, a command-line interpreter. • Bash is a command processor that typically runs in a text window where the user types commands that cause actions. Bash can also read and execute commands from a file, called a shell script. • System requirements – • Linux/Unix Operating system • Or • Windows Operating System (With Unix environment provided by Cygwin.exe) • + Notepad / Notepad++ (For Writing Shell Commands) 3.IMPLEMENTATION • • • • • • • • • • #!/usr/bin/env bash while [ 1 ] do echo "Menu" echo "1. Simple Interest" echo "2. Compound Interest" echo "3. Exit" echo "Enter the Choice" read choice case $choice in • • • • • • 1) echo "Enter the value of p,t and r" read p read t read r si=`echo "scale=2;( $p * $t * $r)/100" | bc` echo "Simple Interest = $si" ;; • • • • • • • • 2) echo "enter the value of p, t, r and n" read p read t read r read n power=`expr $n \* $t` echo $power ci=`echo "scale=2; ($p*(1 + $r/$n ) ) ^ $power" | bc` • echo "Compound Interest = $ci" ;; • 3) exit;; • *) echo "Invalid Choice";; • esac • done 4.OUTPUT (Using Cygwin): 5.CONCLUSION • Finally, we have developed a secure, user-friendly EMI calculator system for calculation of EMI. With the help of this system, user can calculate EMI in efficient and in faster way. 6.REFERENCES • https://www.geeksforgeeks.org/simple-calculator-bash/ • (Referred Arithmetic Calculator bash script as a template) • https://www.calculatorsoup.com/calculators/financial/simple-interestplus-principal-calculator.php (Formula for Simple Interest) • https://www.calculatorsoup.com/calculators/financial/compoundinterest-calculator.php (Formula for Compound Interest) Shabharish Shetty Manas Phanse Ajinkya Thakur

Related documents