Text Processing and More about Wrapper Classes. Contents I.The Test Score Problem II.Exercise.

Slides:



Advertisements
Similar presentations
Introduction to Excel This class is “HANDS-ON” you will need to open up an excel spreadsheet and do examples as you go along. Students will be able to.
Advertisements

Microsoft Excel 2002 Microsoft Excel is a powerful spreadsheet program that helps you to organize data complete calculations make decisions graph data.
Unit-1 : Introduction.
Alternative FILE formats
Basics Of Spreadsheets Chapter Spreadsheet spreadsheet: grid of cells, each of which can contain text data or numeric data.
1. Write an Excel formula in cell Survey
Excel Objects, User Interface, and Data Entry. ◦ Application Window  Title Bar  Menu Bar  Toolbars  Status Bar  Worksheet Window  Worksheet Input.
Monday, February 9, 2009  Journal Activity:  Have you ever used Microsoft Excel and what do you think it is?  Agenda  Take Notes  Project 1 Steps.
Visualizing Multiple Physician Office Locations Exercise 9 GIS in Planning and Public Health Wansoo Im, Ph.D.
1 CA202 Spreadsheet Application Creating Dynamic Lists with PivotTables Lecture # 9.
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
©Brooks/Cole, 2001 Chapter 7 Text Files. ©Brooks/Cole, 2001 Figure 7-1.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making: What If? Robert Grauer and Maryann Barber Exploring.
Chapter 7 Question 1 Group A: Alexis Tsirkas, Darryl Jackson, Ghandi More, Kevin Rasimowicz.
1 Access Lesson 6 Integrating Access Microsoft Office 2010 Introductory Pasewark & Pasewark.
MICROSOFT EXCEL Form 4 Spreadsheets Revision Instructions: Go through slides and complete all exercises. Up to exercise 5. Save it on the computer or on.
Chapter 13 Fill-in-the-blank Computing: The Basics of Spreadsheets.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Microsoft Excel How to make a SPREADSHEET. Microsoft Excel IT is recommended that you have EXCEL running at the same time. You can try what you are reading.
Array Processing Simple Program Design Third Edition A Step-by-Step Approach 7.
In Business Series © Prentice Hall Microsoft Office Excel 2007 In Business Core Chapter 1 Introduction.
To begin presentation, click SLIDE SHOW on bottom left of screen and then click arrow.
Excel. Spreadsheet Software  What Is a Spreadsheet, and How Does It Work? A spreadsheet program allows users to perform simple and complex sorting. It.
Chapter 3: Using Spreadsheets in Analytical Chemistry CHE 321: Quantitative Chemical Analysis Dr. Jerome Williams, Ph.D. Saint Leo University.
Inputting and presenting data. “ I know what a spreadsheet is, I can enter simple data into a spreadsheet.” By the end of this session, I want you to.
What is a Spreadsheet? A grid that organizes data into columns and rows It can be used to store, sort & manipulate information… … and to perform calculations.
MS Excel Introduction Short Course Warilla High School April 2008.
Array Processing.
Chapter 17: Import/Export McGraw-Hill/Irwin Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
Microsoft Excel Chapter 5. Chapter 4 – More built-in function In this chapter, we are going to discover more built-in functions in excel such as Maximum,
1 Microsoft Excel An Introduction to Spreadsheets Lecture 18.
Text Processing and More about Wrapper Classes
NOBELCON Version 4.0 USER MANUAL. Get started Obtain Excel spreadsheet with coordinates. Open spreadsheet in Excel. If there are multiple sets of coordinates.
EXCEL Intro to Microsoft Excel. Objectives for the Week Content ObjectivesLanguage Objectives I can create and manipulate charts, graphs, and reports.
Melanie Peasnall. MS Word Microsoft Word is a word processing program that allows you to make text files. This can be anything from a note to a novel.
Absolute Cell References Unit 2 ICT GNVQ. Lesson Objectives To use an absolute cell reference in a formula To use the website effectivelywww.ictgnvq.org.uk.
Spreadsheet Applications What is Excel?. Microsoft Excel MS Excel is an electronic workbook that gives you the ability to perform business and scientific.
INTRODUCTION TO SPREADSHEETS MICROSOFT EXCEL. Spreadsheets Allows users to perform simple and complex sorting Allows users to perform calculations quickly.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Chapter 14 Fill-in-the-blank Computing: The Basics of Spreadsheets.
Project 2 Completing a Three Dimensional Workspace Using Logical and Lookup Functions Jason C. H. Chen, Ph.D. Professor of Management Information Systems.
Project 4 Formatting, Displaying, Printing, and Publishing Workbooks Jason C. H. Chen, Ph.D. Professor of Management Information Systems School of Business.
Count Controlled Loops (Nested) Ain’t no sunshine when she’s gone …
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Excel Project 1 Creating a Worksheet and an Embedded Chart.
More Oracle SQL Scripts. Highlight (but don’t open) authors table, got o External data Excel, and make an external spreadsheet with the data.
 Introduction of Microsoft Excel  Uses of Microsoft Excel  How to start Microsoft Excel  Introduction of Microsoft Excel Screen  Practical of Mark.
Unit 8 – Spreadsheets Part 2 Spreadsheets Skills Lesson Part 1.
+ Spreadsheets Microsoft Excel + Programs Microsoft Excel Quattro Pro (Corel) Open Office Calc.
Spreadsheet Manager Training Module
Spreadsheets.
Creates the file on disk and opens it for writing
Microsoft Excel Chapter 3.
Starting Out with Programming Logic & Design
Grauer and Barber Series Microsoft Excel Chapter Three
Lab 01 - Grades.
Python I/O.
Formatting Cells and Ranges
Fill-in-the-blank Computing: The Basics of Spreadsheets
Spreadsheets (Excel Tasks)
Creates the file on disk and opens it for writing
Fundamentals of Data Structures
Let’s Learn About Spreadsheets
funCTIONs and Data Import/Export
Fill-in-the-blank Computing: The Basics of Spreadsheets
Exercise Solution First questions What's output What's input
Fill-in-the-blank Computing: The Basics of Spreadsheets
Working With Data.
AP Java 9/21/2018.
SPREADSHEETS Who can provide a definition for a “spreadsheet?” Answer
Spreadsheets and Data Management
Presentation transcript:

Text Processing and More about Wrapper Classes

Contents I.The Test Score Problem II.Exercise

A. The Test Score Problem Professor Harrison keeps her students’ test scores in a Microsoft Excel spreadsheet. Figure below shows a set of five test scores for five students. In addition to manipulating the scores in Excel, Dr. Harrison wants to have a Java application that accesses them. Excel, like many commercial applications, has the ability to export data to a text file.

When the data in a spreadsheet is exported, each row is written to a line, and the values in the cells are separated by commas. For example, when the data shown in the Figure is exported, it will be written to a text file in the following format: 87,79,91,82,94 72,79,81,74,88 94,92,81,89,96 77,56,67,81,79 79,82,85,81,90 This is called the comma separated value file format. When you save a spreadsheet in this format, Excel saves it to a file with the.csv extension. Dr. Harrison decides to export her spreadsheet to a.csv file, and wants to have a Java program that reads the file and calculates the score average for each student. Help her to do this task.

Solution 1.Design 2.Test Case 3.Developing Test Class

1. Design Finding the main task

Finding the class name

2. Test Case Input: TestScores.csv Output: { 86.6, 78.8, 90.4, 72.0, 83.4 }

3. Developing Test Class  Develop class TestScoreProvider

Ask TestScoreManager to provide test scores for calculating the averages

 Develop TestScoreManager

 Develop getScores()

B. Exercise The file SalesData.txt contains the dollar amount of sales that a retail store made each day for a number of weeks , , , , , , , , , , , , , , , , , , Each line in the file contains seven numbers, which are the dales numbers for one week. The numbers are separated by a comma.

Develop a program that opens the file and processes its contents. The program should be able to calculate: –The total sales for each week –The average daily sales for each week –The total sales for all of the weeks –The average weekly sales –The week number that had the highest amount of sales –The week number that had the lowest amount of sales

References 1.Starting Out with Java – From Control Structures through Data Structures, Chapter 10. Tony Gaddis and Godfrey Muganda, 2007