Computer Science 2574
Intro to Data Structures & Soft Eng

Screens.cpp

#include "screens.h"

//**************************************************************************
// Function:      startscreen
// Purpose:       Prints to the screen a start message with information about
//                the program.
// Called By:     Main
// Calls:		  clearscreen
// Parameters:	  NONE
// Return value:  Void
// Authors:       John W. Boyd III & Cullen J. Morris
//**************************************************************************

void startscreen()
{
	char tmpchar; //local char variable that holds what is input by the keyboard

	cout << "\t\t\tData Opscan Grader" << endl;
	cout << endl;  // skip a couple of lines
	cout << endl;
	cout << "\t\t\t  DOG Version 1.1" << endl << endl;
	cout << " Programmers:  Cullen Morris - cumorrris@vt.edu"   << endl;
	cout << "               John W. Boyd III - joboyd3@vt.edu" << endl;
	cout << endl;  // skip a couple of lines
	cout << endl; 
	cout << "	This program builds upon the first and second programs by" << endl;
	cout << " building an Opscan Database (ODB) file and storing the opscan" << endl;
	cout << " data in dynamic doubly linked lists.  The opscan data can be" << endl;
	cout << " viewed using simple menus to traverse the linked lists.  DOG" << endl;
	cout << " will also allow the user to open a previously built ODB file" << endl;
	cout << " and build and view the linked lists based on that file.  DOG" << endl;
	cout << " also enables the user to edit any of the student test data as" << endl;
	cout << " well as change the answer keys or the test memo.  The user can" << endl;
	cout << " also recalculate test grades and compute statistics such as" << endl;
	cout << " the class average and the standard deviation.  Some new" << endl;
	cout << " features available with this version of DOG are the Save" << endl;
	cout << " and SaveAs commands." << endl;

	cout << endl;  // skip a couple of lines
	cout << endl;

	cout << " Press enter to continue." << endl;

	scanf("%c",&tmpchar); //read in a character from the keyboard
	while(tmpchar != '\n') //make sure the character is the newline
	{
		scanf("%c",&tmpchar);
	}

	clearscreen(); //call the clear screen function

} //end of startscreen


//*****************************************************************************
// Function:	 helpscreen
// Purpose:		 Display a screen that tells what the program does
// Called By:	 ProgramMenu 
// Calls:		 clearscreen
// Parameters:	 NONE
// Return value: void
// Authors:		 John W. Boyd III & Cullen J. Morris
// Version:		 1.1
//******************************************************************************

void helpscreen()
{
	char tmpchar; //local char variable that holds what is input from the
					  //keyboard
	
	cout << endl;
	cout << "\t\t\t   DOG" << endl;
	cout << "\t\t\tVersion 1.1" << endl << endl << endl;
	cout << "\t\tHELP SCREEN" << endl << endl;
	cout << " There are a few things that a novice DOG user may need some" << endl;
	cout << " small assistance on." << endl << endl;
	cout << " - If the user wishes to edit any of the following, they can" << endl;
	cout << "   only do this while viewing the student results:" << endl << endl;
	cout << "   - SSN,  Name,  Form Letter,  Group Number,  or Chair#" << endl << endl;
	cout << "   The other two editing options, Answers and Memo, can only" << endl;
	cout << "   be changed while viewing the student answers." << endl << endl << endl;

	cout <<" Press enter to continue." <