Computer Science  >  Research Paper  >  DeVry University, ChicagoCIS 170CCEIS170 Week 7 Course Project (All)

DeVry University, ChicagoCIS 170CCEIS170 Week 7 Course Project

Document Content and Description Below

CEIS170 COURSE PROJECT WEEK 7 Add the ability to save data to disk in one or more files. The menu(s) should give the user the option to save or retrieve data. Examples: In the programming tutorial, ... add a tutorial on working with files. Then add the ability to save/retrieve user information or quiz results. CODE: #include <iostream> #include <string> #include <cmath> #include <iomanip> #include <array> #include <fstream> using namespace std; void menu(void); void writeData(void); void readData(void); int main() { ofstream outputFile; outputFile.open("DJ Playlist.txt"); //Variables double lengthOfLoan, amountOfLoan, interestRate, monthlyPayment, loanTotal, totalInterest; char yes; const int INPUT_CUSTOMER = 1, DISPLAY_LOAN = 2, INTEREST_ACQUIRED = 3, TOTAL_LOAN = 4, MONTHS_TO_PAY = 5, EXIT_PROGRAM = 6; string customerName; int choice; //Program cout << "Welcome to the loan Calculator!\n"; cout << "Please make a selection from the list below.\n" << endl; cout << "1.) To Enter Your loan Information." << endl; cout << "2.) To view your Monthly Payments." << endl; cout << "3.) View total amount of interest for the loan." << endl; cout << "4.) Total Amount due." << endl; cout << "5.) View total months remaining on loan." << endl; cout << "6.) Exit the program" << endl; do { cout << "Choose another Menu option. 1, 2, 3, 4, 5, or 6.... "; cin >> choice; while (choice < INPUT_CUSTOMER || choice > EXIT_PROGRAM) { cout << "Please enter a valid menu choice: "; cin >> choice; } if (choice == 1) { cout << "What is the customers name? "; cin >> customerName; cout << "Enter the amount borrowed. $"; cin >> amountOfLoan; cout << "What is the interest rate? % "; cin >> interestRate; cout << "How many months is the loan for? "; [Show More]

Last updated: 3 years ago

Preview 1 out of 3 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of DeVry University, ChicagoCIS 170CCEIS170 Week 7 Course Project document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$8.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

65
0

Document information


Connected school, study & course


About the document


Uploaded On

Jul 06, 2021

Number of pages

3

Written in

All

Seller


Profile illustration for Cheryshev
Cheryshev

Member since 4 years

102 Documents Sold

Reviews Received
6
4
1
0
1
Additional information

This document has been written for:

Uploaded

Jul 06, 2021

Downloads

 0

Views

 65

Document Keyword Tags

Recommended For You

Get more on Research Paper »

$8.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·