Principles of programming with c++

Assignment Help C/C++ Programming
Reference no: EM13855048

1 Instructions

You may work in pairs (that is, as a group of two) with a partner on this lab project if you wish or you may work alone. If you work
with a partner, only submit one lab project with both of your names in the source code file to Blackboard for grading; you will each
earn the same number of points. What to hand in, and by when, is discussed in Section 5; read it.

2 Lab Objectives

After completing this assignment the student should be able to:

? Complete all of the objectives of the previous lab projects.
? Write function definitions, call functions, pass parameters, define local variables.
? Open a text file for reading/writing and read/write strings and numbers from/to the text file.

3 Prelab Exercises

? First, skip to Section 4 and read the lab project software requirements. Then come back here.
? Create a new Code::Blocks C++ project named Lab05.
? Navigate to the course website and download the Lab05.cpp file. This file is a template containing most of the code for the lab project, but in various places, the code has not been completed. Your job shall be to complete the code by reading the comments and writing proper C++ code in the locations indicated by ??? symbols. Follow the instruction in Steps 28 through 32 of the Code::Blocks tutorial1 to add Lab05.cpp to your Code::Blocks project.
? Navigate to the course website and download the stats-season.txt file. This program will read input data from this file and will
write data to an output file named stats-game.txt. Copy stats-season.txt to your Code::Blocks Lab05 project folder. For example,
when you created your Lab05 project, if you specified C:\cse100\Lab05 as the project folder, then copy stats-season.txt to
C:\cse100\Lab05.
? When you run your program, you will see the output window appear, but nothing of substance will be displayed in it. This is because the output is being sent to the output file named stats-game.txt rather than to the output window. To know if your program worked correctly, you need to open the output file and examine its contents. Click File | Open on the main menu. In the Open dialog, navigate to your project directory C:\cse100\Lab05 where you should see a file named stats-game or possibly stats-game.txt. Click on that file name and then click the Open button. Verify the output file contains the correct contents.

4 Lab Exercise

A text file named stats-season.txt contains season statistics for a basketball team, e.g.,

Name GP FGM FGA FTM FTA 3M 3A PTS REB
F.Flintstone 23 88 190 50 82 27 74 253 100
B.Rubble 23 85 212 45 53 24 84 239 94
W.Flintstone 14 56 101 29 46 0 1 141 82
H.Simpson 23 77 118 62 107 1 3 216 143
N.Flanders 23 57 127 15 17 37 91 166 51
N.Explosion 23 53 109 9 14 46 95 161 63
K.Broflovski 21 31 100 57 79 8 29 127 38
E.Cartman 18 28 66 10 12 17 37 83 22
G.Jetson 17 26 58 19 29 3 16 74 37
S.Skwigelf 18 19 43 18 25 3 9 59 20
T.Wartooth 22 19 59 23 40 7 23 68 46

Where the contents of each column is,
Name The players name, formatted as I.s where I is the initial of the player's first name and s is the player's surname.
GP Games played.
FGM Field goals made.
FGA Field goals attempted.
FTM Free throws made.
FTA Free throws attempted.
3M Three point field goals made.
3A Thee point field goals attempted.
PTS Points (the total points scored in the season).
REB Rebounds.


Attachment:- Assignment.pdf

Reference no: EM13855048

Questions Cloud

Critique the trends and issues in union membership : Address the following in your presentation: Critique the trends and issues in union membership that have led to the decrease of a represented workforce. Recommend the beginnings of a strategic plan that reduces the desire of workers to unionize
What can bjc do to secure daimlerchryslers commitment : What can be done to make this type of organization more effective? Should DaimlerChrysler focus more resources toward BJC? What can BJC do to secure DaimlerChrysler's commitment?
Medicaid expansion and the affordable care act : "Medicaid Expansion and the Affordable Care Act" Please respond to the following: Read the Senate Bill HB 707 for the state of Georgia. You may also view the article athttp://www.legis.ga.gov/Legislation/20132014/143506.pdf
Financial system and the essential documents : Scenario: You have recently been hired as a manager in the financial department for a local hospital. In the last few weeks, you have noticed a lack of understanding from the staff on the hospital financial system. In order to connect the situatio..
Principles of programming with c++ : Name The players name, formatted as I.s where I is the initial of the player's first name and s is the player's surname.
Choose ten different public policy issues : Choose ten different public policy issues from both the domestic policy (choose 5) and foreign policy spheres (choose another 5) and explain the differences between the parties (if any). If there is no difference in the policy issues you choose, expl..
Explain the human resource management process : Explain the human resource management process, its role in supporting the overall organizational strategies, and the various functions involved in human resource management
What good services does the business provide : What good services does this business provide? And to what market (s)? What is its basis for competing? How does it make profit or contribute to a society?
Prepare the amortization schedule for the loan : Calculate the monthly payment required if Bill agrees to the sticker price of $25,000 and finances the car at 2% per year and prepare the amortization schedule for the loan using an Excel spreadsheet.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd