Project 2 Overview Start Part 1 Today Part 2 [Optional] later Due: On or before last class.

Slides:



Advertisements
Similar presentations
Files Used to transfer data to and from disk. Opening an Output File Stream #include // File stream library. ofstream outfile;// Declare file stream variable.
Advertisements

S.P.R.I.N.T v2.0 User Guide Infrastructure Access Feedback Survey.
Extended DISC Online System User Instruction: How to Generate Reports
Order Based Production Management
Using XA Browser/Power-Link Preferences to Improve Efficiency
Objectives Create a new presentation. Format slides.
A complete citation, notecard, and outlining tool
1 of : Multi-Currency Payments / DA0813 Last updated: Project Walkthrough: Multi-Currency Payments Multi-Currency Payments.
CSO’s 2014 Training & Networking Conference | Austin, TX | Copyright © 2014 CSO Research, Inc. Wonderful World of Data Cleanup Keenan & Mona.
Spillman Sentryx 6.0.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Accounts Receivable Presented by: Robert Myers Presented by: Robert Myers.
McGraw-Hill Career Education© 2008 by the McGraw-Hill Companies, Inc. All Rights Reserved. Office PowerPoint 2007 Lab 1 Creating a Presentation.
Chapter 5: Loops and Files.
Qwik Start Tutorial MEDT_7478_Automation of the Media Center (Section 4 : Reports and Utilities) For Dr. Snipes By Has Slone.
Online testing made effective and easy. The easy way to have your tests answered and scored online. If you have a test in a PDF file, it can be online.
Online banking Using the internet for your banking.
McGraw-Hill/Irwin Introduction to QuickBooks Pro, 2004 © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved. Chapter 4 Bank Reconciliation.
2013.  Reconcile your checking account  Create bank reconciliation reports  Find errors during reconciliation  Correct errors found during reconciliation.
Extended DISC Online System User Instruction: How to Create a New Account.
Nextgen Bank Reconciliation Presented by: Carol Newton Resource 2014.
Slide#: 1© GPS Financial Services Revised 05/03/2009 cms 2 RW Rep-AR-DatedInvoice ™ Cougar Mountain Software Professional Version.
IPAD Set Up. Gmail Account First, you need to set up a free gmail account with your name. If you have an existing one you may use that as long as: – A)
Gadgets & More…. “Date Range” Gadgets Allows you to choose a specific date, before or after a date or a range of dates using the Workflows calendar.
FlexGen Trustee Review Class In this session we will review dashboard receipting, troubleshooting day end issues, pitfalls of assessment changes, adding.
String Constructors string str; // creates an empty //string string str(“abc”); // creates a string // from a C-string string str(aString); // creates.
Chapter 8 Data File Basics.
What is a Database? A Database is…  an organized set of stored information usually on one topic  a collection of records  a way to organize information.
1 OrderPro Point of Sale (POS) Training Prepared by Christina Van Metre Independent Educational Consultant CTO, Business Development Team © Training Version.
How to Use Naviance Succeed for Teacher Recommendations.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT OUTLOOK Lesson 1 – Outlook Basics and .
Address book By NIRMIT GANG. Main Program  Selection Screen 1.Enter Data 2. Read Data 3. Search Data 4. Modify Data 5. Delete Data 6. Exit Choice.
Chapter 9 I/O Streams and Data Files
How to Create a Document in Google Drive By Tressa Beckler.
1 CS161 Introduction to Computer Science Topic #13.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Exercise Your your Library ® RefWorks: Advanced November 21, 2006.
Easy Grade Pro: The Basics Presented By Mr. Paul Salmon.
Monday, Mar 31, 2003Kate Gregory with material from Deitel and Deitel Week 12 Labs 4 and 5 are back File IO Looking ahead to the final.
An Introduction to Programming with C++ Sixth Edition Chapter 14 Sequential Access Files.
TEXT FILES. CIN / COUT REVIEW  We are able to read data from the same line or multiple lines during successive calls.  Remember that the extraction.
Lesson 10 - Mail Merge and Reviewing Documents Advanced Microsoft Word.
PsycINFO Storing search results: mail, print, export Library.
Basic & Advanced Reporting in TIMSNT ** Part Three **
1 Simple File I/O Chapter 11 Switch Statement Chapter 12.
ServicePoint 5.0 Upgrade Overview 1. Navigation & Home Log in takes you to Home Page – New Look Home Page Banner Logos can be uploaded Agency/Program.
We connect you to your money ACH Software Demonstration.
Loops and Files. 5.1 The Increment and Decrement Operators.
PRINTING!!! Print to Google Docs (Chrome) Print to Word (PC)
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT OUTLOOK Lesson 3 – Working with Other Outlook Tools.
Customizing Reports Adding a Date to a Report Reference Window Adding a Date to a Report Display the report in the design view Click the Text Box Tool.
Davisware GlobalEdge 2008 Payroll Main Menu Time Entry and Payroll Processing.
More Sequences. Review: String Sequences  Strings are sequences of characters so we can: Use an index to refer to an individual character: Use slices.
Copyright © 2006 Pearson Addison-Wesley. All rights reserved Today’s Lecture  I/O Streams  Console I/O  File I/O  Tools for File I/O  Sequential.
File I/O in C++. Using Input/Output Files A computer file  is stored on a secondary storage device (e.g., disk);  is permanent;  can be used to provide.
File I/O in C++ I. Using Input/Output Files A computer file is stored on a secondary storage device (e.g., disk); is permanent; can be used to provide.
Bank Reconciliation Chapter 4. PAGE REF #CHAPTER 4: Bank Reconciliation SLIDE # 2 Objectives Reconcile your checking Create bank reconciliation reports.
Python: File Directories What is a directory? A hierarchical file system that contains folders and files. Directory (root folder) Sub-directory (folder.
Functions CMSC 201 – Lab 5. Overview Objectives for today's lab:  Practice breaking down a program into multiple functions  Practice writing function.
Lesson 17 Mail Merge. Overview Create a main document. Create a data source. Insert merge fields into a main document. Perform a mail merge. Use data.
NextGen Trustee GL/Accounting This class will cover NextGen Financial Management for Trustee Offices. We will look at GL accounts, Transactions, Bank Reconciliation,
Chapter 14: Sequential Access Files
Quote It! Overview July 2011 Speak to slide /26/11 1.
Millennium Create Lists in Action
Remark® Exam-Grading Instructions
Resource 2018 LG Permits Demo
NextGen Trustee General Ledger Accounting
Interactive I/O Input from keyboard Must prompt user User friendly
Utility Billing Balancing the Accounts Receivable
Becoming a registration grouping guru
Professional Services Tools Library (PSTL)
Presentation transcript:

Project 2 Overview Start Part 1 Today Part 2 [Optional] later Due: On or before last class

Try the ATM Demo Program Again Run ATM.exe and log in as test, 111 –Try all the menu choices –Exit Rerun and log in as admin, 999 –Choose hidden menu choice A to go to admin mode –view sorted and unsorted records –add a new customer, delete a customer

The ATM Simulator manages two files

New Skills Needed Working with ASCII Art How to append to an existing file –ofstream trans(“transactions.txt”, ios::app); Accessing Date/Time

Working with ASCII Art Visit –Type in text and choose a font Copy into your program’s banner( ) fn –add cout<<" "<<endl; If a single \ appears in your figlet it may cause problems –Do a Global Replace of single \ with \\

Working with ASCII Art For Example: After replacing \ with \\:

What does function deposit have to do? List the steps –

Pseudocode for Deposit Function deposit( ): let customer add money to their account 1.Ask the customer how much money to deposit 2.read the customer’s money value (& check valid) 3.Get the current balance from transactions file 4.Calculate new balance 5.Print a a receipt (using receipt function) 6.append an entry to the end of the transactions.txt file with the appropriate information and transaction code

Appending Data to a File (step 6) Normally, opening an output file stream erases any existing file with the same name –ofstream outFile; –outfile.open(“transactions.txt”); Another way is to open the file using the append option: –ofstream outFile; –outfile.open(“transactions.txt”, ios::app); Now anything you send to the file appears at the end of the pre-existing file This would erase the existing transactions.txt file

Example from deposit function ofstream trans("transactions.txt", ios::app); trans<<dateStr<<" "<<timeStr<<setw(8) <<userID<<setw(6)<<'D'<<fixed<<setprecision(2) <<setw(12)<<money<<setw(12)<<balance<<endl; trans.close(); This information is added to the end of the file

Reading System Date and Time char dateStr[9], timeStr[9]; // time and date vars // (old style C-strings) _strdate(dateStr); // dateStr now has date _strtime(timeStr); // timeStr now has time cout<<dataStr<<" "<<timeStr<<endl; // display You also must include this library  #include

This is the easy way! void getDateAndTime(string & date, string & time) { char dateStr[9], timeStr[9]; // time and date information _strdate(dateStr); // dateStr now has date _strtime(timeStr); // timeStr now has time date=dateStr; time=timeStr; } string date, time; getDateAndTime(date, time);

There is a lot more to learn… Read the project 2 handout carefully and follow the instructions Rest of the class is yours Challenge students –Recommend finishing part 1 by next week Foundation students –Only need to complete part 1