Anne Dawson: CSCI101A_LAB7_SU05.htm   

 

Last updated: Thursday 23rd June 2005, 9:01 PT

 

This document is subject to change without notice.

 

Please report any errors or omissions in this document:

adawson@coquitlamcollege.com

 

Special instructions:

For this assignment you may work in teams of 2, 3, or alone.

This lab is due at the end of the lab session.

 

Please note: there were two unfair questions on Quiz 7.  The scores for this quiz have been deleted.  A new version of Quiz 7 will be given with Quiz 8 in Week 10 Class 1.  

 

For homework you should read the first two sections of Chapter 11 - 11.1  "An Array Type for Strings" and 11.2 The Standard string Class", and run the example programs referred to in the Powerpoint on Strings - link on the schedule.

CSCI101A

 

Introduction to Computer Programming using C++

Summer 2005

Lab Assignment 7 - Calculation of Standard Deviation

 

Step 1

 

Study the following:

 

#4 on page 560 of the 5th Edition

#3 on page 633 of the 4th Edition

#4 on page 598 of the 3rd Edition

#4 on page 580 of the 2nd Edition

 

Note: you do not type in the code of your program until Step 4.

 

Step 2

 

Design an algorithm (the steps to solve the problem). You should have the algorithm approved by your instructor before going on to the next step.

The following web page will help you design your algorithm and pseudocode:

http://www.coquitlamcollege.com/adawson/Pseudocode.htm

 

Step 3

 

Development the pseudocode from your algorithm.

The following web page will help you design your algorithm and pseudocode:

http://www.coquitlamcollege.com/adawson/Pseudocode.htm

 

Step 4

 

Using your pseudocode as a guide, implement your program in the C++ language. Use either the Borland or Dev-C++ IDE to edit and run your program.

 

 

Your program should start with a comment block that contains the following information:

 

//  File:       lab7.cpp

//  Purpose:    Calculation of Standard Deviation

//  Ref:        #4 on page 560 of the 5th Edition

//  Programmer: [your name]

//  Partner:    [your partner's name]

//  Course:     CSCI101A

//  Date:       Thursday 23rd June 2005

//  Test data:

 

 

Step 5

 

Test your program by running supplying your own test data. You should test your program with at least 3 sets of test data. Show your test data and results in comments at the top of your program.

 

Step 6

 

At the end of the class, save your program file (lab6.cpp) to your folder on the network in:

 

CSCI101A\Week09\Lab07

 

 

Program points will be based on the following marking scheme:

 

Marking Scheme: CSCI101A   -   Lab 7  -   Standard Deviation

Student name(s):

Category

Points

Description

Algorithm

15

An informal description of the steps that must be taken to solve the problem.

ref: http://www.coquitlamcollege.com/adawson/Pseudocode.htm

Pseudocode

15

A formal description of the steps that must be taken to solve the problem.

http://www.coquitlamcollege.com/adawson/Pseudocode.htm

Comments

10

The program is commented appropriately.

Style

15

The source code should use meaningful variable names (identifiers).

Output

15

Screen prompts and results should be user-friendly.

Correctness

10

The program should output correct results.

Completeness

10

The program should be complete.

Test

10

Comments in the code explain how the code was tested.

 

 

Assignment Presentations :  In the next class, a random selection of lab assignment programs will be presented to the CSCI101A group.