blob: d36036cf9d34fbc2b730f3d0c90dd8e0520729bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
//=============================================================
// CODE FOR PROBLEM #1 ON PAGE 282 (LEARN BY DOING) IS BELOW
//=============================================================
//#include <iostream>
//#include <iomanip>
//#include <string>
//
//using namespace std;
//
//void readData(string[][31], string[][31], int[], float[]); //Takes in user entered data and writes to arrays
//
//void displayData(string[][31], string[][31], int[], float[]); // Displays the data from the arrays in an orderly fashion
//====================================================================
// CODE FOR PROBLEM #1 ON PAGE 292 (PROGRAMMING EXERCISES) IS BELOW
//====================================================================
//#include <iostream>
//#include <string>
//#include <cstring>
//#include <iomanip>
//#include <cctype>
//
//using namespace std;
//
//void displayMenu(int&); //Displays menu choices and takes in user choice
//
//void processMenuChoice(int); //Process menu choice, calls relevant function
//
//void isPalindrome(); //Checks whether or not a user input string is a palindrome and displays result
//
//void isAlphaStr(); //Checks to see if a user input string contains all alphabetic characters or not, displays result
//
//void countChar(); //Takes in a user input string and a character, counts the frequency of that character within the string, displays result
|