diff options
| author | BensProgramma <[email protected]> | 2021-11-07 12:52:35 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-07 12:52:35 -0800 |
| commit | 3b7cf7e526677d1626bf3c1f5fb7bc47c0e7533e (patch) | |
| tree | cb73296cd218868ee5a8b0651dae9d88543337e6 /Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp | |
| parent | Update Project2_TestRuns.txt (diff) | |
| download | project2_fhernandez_bschroeder-3b7cf7e526677d1626bf3c1f5fb7bc47c0e7533e.tar.xz project2_fhernandez_bschroeder-3b7cf7e526677d1626bf3c1f5fb7bc47c0e7533e.zip | |
Update Project2_Fhernandez_BSchroeder.cpp
Diffstat (limited to 'Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp')
| -rw-r--r-- | Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp b/Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp index 2e0a328..021cde0 100644 --- a/Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp +++ b/Project2_Fhernandez_BSchroeder/Project2_Fhernandez_BSchroeder.cpp @@ -60,23 +60,23 @@ // AGILE QUESTIONS for Benjamin Schroeder // (ie 1)What specific task? 2)What do I know about the specific task? 3)What do I not know about the specific task? ) // 10/26/2021 1) I will begin to draw up psuedocode for the functions in the project, -// 2) I know how to do most of the operations involved in the project, however, -// 3) I do not know how exactly to build the addition and multiplication tables. +// 2) I know how to do most of the operations involved in the project, however, +// 3) I do not know how exactly to build the addition and multiplication tables. // 10/30/2021 1) I will begin coding the program functions starting with GetData() and go down the list as they are introduced in -// ch7, 8, and 9. -// 2) I know I will be testing as I go, so I will see results pretty readily. -// 3) I do not know how to do 4 of the functions right off hand, the addition and multiplication tables, ReverseDigits(), and -// DigitAtPosition() +// ch7, 8, and 9. +// 2) I know I will be testing as I go, so I will see results pretty readily. +// 3) I do not know how to do 4 of the functions right off hand, the addition and multiplication tables, ReverseDigits(), and +// DigitAtPosition() // 11/01/2021 1) I will begin running the program and see if I can find any things that need changing -// 2) I know I will find mistakes and unaesthetic problems in the program as the code is still very much a scratch draft. -// 3) Not sure if I will fix everything I see or wait to talk to Freddy about what his thoughts are on the Project. +// 2) I know I will find mistakes and unaesthetic problems in the program as the code is still very much a scratch draft. +// 3) Not sure if I will fix everything I see or wait to talk to Freddy about what his thoughts are on the Project. // 11/04/2021 1) I will begin toubleshooting the program. -// 2) I will probably find some errors upon testing every function with: Positive, Negative, and Zero. -// 3) Not sure exactly where the errors are going to show up. -// - Found some major things that needed addressed. Fixed function inputs +// 2) I will probably find some errors upon testing every function with: Positive, Negative, and Zero. +// 3) Not sure exactly where the errors are going to show up. +// - Found some major things that needed addressed. Fixed function inputs // 11/05/2021 1) I will do some more rins of the program looking for errors or undesireable effects. -// 2) There is still a bit of a flow problem in the program, but all in all the program works as it should. -// 3) I don't know that anymore fixes need to take place. +// 2) There is still a bit of a flow problem in the program, but all in all the program works as it should. +// 3) I don't know that anymore fixes need to take place. // // // @@ -140,9 +140,9 @@ // void IsPosNeg(number) // There will be 3 possibilties, Positive, negative, and zero // (If, If Else, and Else statements will be used for each possibility) -// If number > 0 ....cout number is positive +// If number > 0 ....cout number is positive // If number < 0 ....cout number is negative -// If number == 0 .... cout zero is neither pos or neg +// If number == 0 .... cout zero is neither pos or neg // Then Call DisplayMenu() to start the program back through // // @@ -151,7 +151,7 @@ // Either the number leaves a remainder when divided by 2, or it does not. // If there is a remainder from number%2, the number is odd.... cout odd // If there is no remainder from number%2, the number is even... cout even -// Then call DisplayMenu() to start the program back through +// Then call DisplayMenu() to start the program back through // // //////////////////////////////////////////// @@ -159,7 +159,7 @@ // There will be 3 possibilties for this function: Positive numbers, negative, and or zero // IF number > 0 ... use sqrt(number) ..cout the squareroot. // IF number < 0 ... cout "negative numbers do not have squareroots" -// IF number ==0 ... cout " zero doesn't have a squareroot" +// IF number ==0 ... cout " zero doesn't have a squareroot" // Then call DisplayMenu() to start the program back through // // @@ -167,7 +167,7 @@ // void ChangeSign(number) // There are 2 possibilities for this function: Postive or negative numbers // If number > 0 ...subtract the number from 0 and cout the result -// If number < 0 cout the absolute value of the number +// If number < 0 cout the absolute value of the number // Then call DisplayMenu() to start the program back through // // @@ -176,8 +176,8 @@ // Every digit adds a factor OF 10 to the number... // Dividing "number" by 10 and counting how many times we do this while the number is still >=1 // will give us how many digits the original number had. -// count = 0 -// while (number >= 1) +// count = 0 +// while (number >= 1) // number = number/10 // count = count+1 // cout the count @@ -195,19 +195,19 @@ // ///////////////////////////////////////////// // void ReverseDigits(number) -// find the remainder at each digit position by using number%10 and record this "remainder" -// Construct a "reversed number" by adding this remainder to an accumulative "reversed number *10" -// Iterate through the entire number by redefining the number to "itself divided by 10" (to more to the next digit position) -// cout the reversed number -// Then call DisplayMenu() to start the program back through +// find the remainder at each digit position by using number%10 and record this "remainder" +// Construct a "reversed number" by adding this remainder to an accumulative "reversed number *10" +// Iterate through the entire number by redefining the number to "itself divided by 10" (to more to the next digit position) +// cout the reversed number +// Then call DisplayMenu() to start the program back through // // ///////////////////////////////////////////////// // void DisplatAdditionTable() // This will be a 12 by 12 table -// we will need an array of numbers 1 thru 12 to represent the horizontal row at the top of the table +// we will need an array of numbers 1 thru 12 to represent the horizontal row at the top of the table // We will need an additional array of numbers 1 thru 12 representing the vertical column on the left side of the table -// A for loop can be utilized to cout each row of the table by iterating through each entry of the vertical array +// A for loop can be utilized to cout each row of the table by iterating through each entry of the vertical array // A for loop within the above for loop will handle the calculations (adding results) of whichever horizontal item with // the particular row (vertical item from the outside for loop) cout of each calculation will contruct the table row by row. // Then call DisplayMenu() to start the program back through |