Purchase Solution

C++ program to count number of students living in a state

Not what you're looking for?

Ask Custom Question

Attached docx file gives the content of a text database file "database.txt" that contains five columns: DSI#, Person_Number, Last_Name, First_Name and State.

Write a C++ program that displays the total count of students living in "NY".

Purchase this Solution

Solution Summary

Ensure that all the lines in database.txt contain exactly five fields, nothing more nothing less, so that the program operating on it functions correctly.

Solution Preview

After compiling the attached 302859.cpp, you should run it like "executable_name database.txt ...

Purchase this Solution

Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C# variables and classes

This quiz contains questions about C# classes and variables.

C++ Operators

This quiz tests a student's knowledge about C++ operators.