Archives

Chapter 1 Page Name Class Date With

Chapter 1 Page Name Class Date With

Name: Class: Date: chapter 1 Page 1 Indicate whether the statement is true or false. 1. The main reason why high-level langauges were a vast improvement over machine and assembly langagues is because they allow the programmer to use instructions […]

8 Pages | February 23, 2023
Chapter 10 Sending Copy Variables Value Function Referred Which

Chapter 10 Sending Copy Variables Value Function Referred Which

Name: Class: Date: chapter 10 Page 1 Indicate whether the statement is true or false. 1. While a void function does not return a value, it must still end with a return statement. a. True b. False 2. Void functions […]

8 Pages | February 23, 2023
Chapter 11 When Passing Array Function Which The Following

Chapter 11 When Passing Array Function Which The Following

Name: Class: Date: chapter 11 Page 1 Indicate whether the statement is true or false. 1. The first variable in a one-dimensional array is assigned a subscript of 1. a. True b. False 2. Many C++ compilers initialize char array […]

8 Pages | February 23, 2023
Chapter 12 Name Class Date Dimensional Array Scores00

Chapter 12 Name Class Date Dimensional Array Scores00

Name: Class: Date: chapter 12 Page 1 Indicate whether the statement is true or false. 1. A one-dimensional array resembles a table in that the array elements are in rows and columns. a. True b. False 2. When specifying an […]

8 Pages | February 23, 2023
Chapter 13 Hello Ello Hello Ello 25 Which Statement

Chapter 13 Hello Ello Hello Ello 25 Which Statement

Name: Class: Date: chapter 13 . Page 1 Indicate whether the statement is true or false. 1. By default, the getline function will continue to read characters from the keyboard until it encounters the ‘#’ character. a. True b. False […]

8 Pages | February 23, 2023
Chapter 14 Which Term Best Describes Files That Are

Chapter 14 Which Term Best Describes Files That Are

Name: Class: Date: chapter 14 Page 1 Indicate whether the statement is true or false. 1. The mode argument is optional for the creation of input and output objects. a. True b. False 2. The name of the class from […]

8 Pages | February 23, 2023
Chapter 15 Which The Following Terms Best Describes Something

Chapter 15 Which The Following Terms Best Describes Something

Name: Class: Date: chapter 15 Page 1 Indicate whether the statement is true or false. 1. When two or more methods have the same name but different parameter lists, the methods are referred to as overloaded methods. a. True b. […]

7 Pages | February 23, 2023
Chapter 2 What The First Step The Problem solving Process

Chapter 2 What The First Step The Problem solving Process

Name: Class: Date: chapter 2 Page 1 Indicate whether the statement is true or false. 1. Pseudocode is not standardized, each programmer has his/her own version. a. True b. False 2. A processing item in an IPO chart represents an […]

8 Pages | February 23, 2023
Chapter 3 Why The Use Camel Case Preferred C

Chapter 3 Why The Use Camel Case Preferred C

Name: Class: Date: chapter 3 Page 1 Indicate whether the statement is true or false. 1. In C++, the float and double variable data types are used to store real numbers. a. True b. False 2. The name of a […]

7 Pages | February 23, 2023
Chapter 4 Program Run Correctly Linker Object Code

Chapter 4 Program Run Correctly Linker Object Code

Name: Class: Date: chapter 4 Page 1 Indicate whether the statement is true or false. 1. C++ provides the static_cast operator for explicitly converting data from one data type to another. a. True b. False 2. The following statement adds […]

8 Pages | February 23, 2023
Chapter 5 Selection Structures That Contain Instructions Both The

Chapter 5 Selection Structures That Contain Instructions Both The

Name: Class: Date: chapter 5 Page 1 Indicate whether the statement is true or false. 1. Another name for the selection structure is the decision structure. a. True b. False 2. Comparison operators are used to compare two values with […]

8 Pages | February 23, 2023
Chapter 6 Class Date Flowchart What Does

Chapter 6 Class Date Flowchart What Does

Name: Class: Date: chapter 6 Page 1 Indicate whether the statement is true or false. 1. The switch clause can always be used in replace of a multiple-alternative selection structure. a. True b. False 2. A common error made when […]

9 Pages | February 23, 2023
Chapter 7 Which The Following Another Name For Sentinel

Chapter 7 Which The Following Another Name For Sentinel

Name: Class: Date: chapter 7 Page 1 Indicate whether the statement is true or false. 1. The update read is often an exact copy of the priming read. a. True b. False 2. An accumulator is a numeric variable used […]

8 Pages | February 23, 2023
Chapter 8 False Pretest Loop And Posttest Loop Produce

Chapter 8 False Pretest Loop And Posttest Loop Produce

Name: Class: Date: chapter 8 Page 1 Indicate whether the statement is true or false. 1. With nested repetition structures, both loops must be the same type (example: both must be pretest loops, or both must be posttest loops). a. […]

9 Pages | February 23, 2023
Chapter 9  What Are The Arguments Passed The Pow

Chapter 9  What Are The Arguments Passed The Pow

Name: Class: Date: chapter 9 Page 1 Indicate whether the statement is true or false. 1. The pow function contains two arguments, the base number and the square root value. a. True b. False 2. Unless you specify otherwise, variables […]

8 Pages | February 23, 2023
Programming Languages Chapter 1 Homework Introduction Programming With C Eighth Edition

Programming Languages Chapter 1 Homework Introduction Programming With C Eighth Edition

4. a an algorithm 5. b repetition 6. c selection 7. b selection 8. a repetition 9. c both repetition and selection 10. b selection if (the customer is one of the first 10) calculate the discount by multiplying the […]

4 Pages | March 19, 2023
Programming Languages Chapter 10 The Answer This Try This Exercise Located

Programming Languages Chapter 10 The Answer This Try This Exercise Located

answer = (intNum1 + intNum2) * dblNum; } //end of getProduct function void getProduct(int num1, int num2, double dblNum, double &answer); [or void getProduct(int, int, double, double &);] calcQuotient(num1, num2, quotient); 5. void calcSumAndDiff(int n1, int n2, int &sum, int […]

3 Pages | March 19, 2023
Programming Languages Chapter 11 All The Elements One dimensional Array Have The

Programming Languages Chapter 11 All The Elements One dimensional Array Have The

9. a 0.0 10. c 6.0 11. b 5.0 12. d 8.0 13. c cout << cities[8] << endl; cout << scores[x] << endl; x += 1; } //end while 4. double rates[5] = {6.5, 8.3, 4.0, 2.0, 10.5}; 5. […]

4 Pages | March 19, 2023
Programming Languages Chapter 12 Introduction Programming With Review Questions

Programming Languages Chapter 12 Introduction Programming With Review Questions

3. d 800 with 810 4. a 20000 with 900 5. a display 1300 6. d if (row >= 0 && row <= 1 && col >= 0 && col <= 4) 4. for (int row = 0; row < […]

4 Pages | March 19, 2023
Programming Languages Chapter 13 which is contained in either the

Programming Languages Chapter 13 which is contained in either the

17. a divider.assign(5, ‘*’); 18. b cityState = city + “, ” + state; 19. b letter = word.substr(4, 1); 20. a cin.ignore(100); 21. c getline function 7. word.insert(0, “a”); 8. word.replace(3, 2 “th”); 9. amount.erase(1, 1); amount.erase(4, 1); or […]

2 Pages | March 19, 2023
Programming Languages Chapter 14 field record f stream of stream

Programming Languages Chapter 14 field record f stream of stream

8. getline(inFile, textLine); 9. inFile >> number; 10. outFile.close(); 11. outFile << “Employee” << endl << “Name” << endl; 12. outFile << capital << endl; 13. while (!inFile.eof()) 14. string textLine = “”; getline(inFile, textLine); while (!inFile.eof()) { cout << […]

3 Pages | March 19, 2023
Programming Languages Chapter 15 Double Name Price End Assign item Method

Programming Languages Chapter 15 Double Name Price End Assign item Method

private: string name; double salary; }; //implementation section Employee::Employee() { name = “”; salary = 0.0; } //end of default constructor Employee::Employee(string n, double s) { name = n; salary = s; } //end of constructor An Introduction to Programming […]

4 Pages | March 19, 2023
Programming Languages Chapter 2 The answer to this TRY THIS Exercise is located at 

Programming Languages Chapter 2 The answer to this TRY THIS Exercise is located at 

2. The answer to this TRY THIS Exercise is located at the end of Chapter 2 in the book. 3. 2. calculate the miles per gallon by dividing the miles driven by the gallons used 3. calculate the cost per […]

6 Pages | March 19, 2023
Programming Languages Chapter 3 The values in the desk-check table are rounded to

Programming Languages Chapter 3 The values in the desk-check table are rounded to

2. The answer to this TRY THIS Exercise is located at the end of Chapter 3 in the book. 3. The modifications are shaded. latex purchased int latexPurchased = 0; Mylar purchased int mylarPurchased = 0; sales tax rate (6%) […]

9 Pages | March 19, 2023
Programming Languages Chapter 4 Car Display Total Expenses Cout

Programming Languages Chapter 4 Car Display Total Expenses Cout

2. The answer to this TRY THIS Exercise is located at the end of Chapter 4 in the book. 3. The modifications are shaded. Also, the cout and cin statements that prompt for and get the car payment were removed. […]

9 Pages | March 19, 2023
Programming Languages Chapter 5 the declaration statement in the if statement’s true path

Programming Languages Chapter 5 the declaration statement in the if statement’s true path

3. The modifications are shaded. if (code1 != code2) cout << “Not equal” << endl; else cout << “Equal” << endl; //end if { total = units * 5; cout << “Total: $” << total << endl; } //end if […]

9 Pages | March 19, 2023
Programming Languages Chapter 6 Trash Containers Lid Using Your Left Hand

Programming Languages Chapter 6 Trash Containers Lid Using Your Left Hand

drop the bag of trash in the Trash container put the lid back on the Trash container using your left hand else if (the lid is on the Recycle container) lift the Recycle container’s lid using your left hand end […]

9 Pages | March 19, 2023
Programming Languages Chapter 7 Calculate the ending balance by adding

Programming Languages Chapter 7 Calculate the ending balance by adding

5. a while (age >= 50) 6. d all of the above 7. c sentinel 8. d priming 9. a 0 10. b 5 11. d 11 12. b 7 13. d 11 14. d all of the above 15. […]

7 Pages | March 19, 2023
Programming Languages Chapter 8 Exercises Pencil and Paper located at the end of 

Programming Languages Chapter 8 Exercises Pencil and Paper located at the end of 

3. for (int outer = 1; outer <= 2; outer +=1) { for (int nested = 3; nested > 0; nested -= 1) cout << nested << ” “; //end for cout << endl; } //end for open the front […]

8 Pages | March 19, 2023
Programming Languages Chapter 9 The name of each actual argument should be identical

Programming Languages Chapter 9 The name of each actual argument should be identical

6. d double getFee(int base, double rate) 7. d double getFee(int, double); 8. d none of the above 9. d by value 10. c scope 11. a calcGross 12. a True 4. cout << 50 + rand() % (100 – […]

2 Pages | March 19, 2023