Browse C
Alphabetical listing with fast deep pagination.
81169 items • Page 41 / 1624
C++ 1) Implement a class named StarWars; Class StarWars has a class named World;
C++ 1) Implement a class named StarWars; Class StarWars has a class named World; 2) The object starWarsOBJ created the Class Moon as a tool that Darth Vader uses to control the Cl…
C++ 1) Pointer basics a) Declare two (type double) pointer variables named d_var
C++ 1) Pointer basics a) Declare two (type double) pointer variables named d_var and d_array: b) Write C++ statements to dynamically create a double-precision floating-point varia…
C++ 1) Set numMatches to the number of elements in userValues (having NUM_VALS e
C++ 1) Set numMatches to the number of elements in userValues (having NUM_VALS elements) that equal matchValue. Ex: If matchValue = 2 and userValues = {2, 2, 1, 2}, then numMatche…
C++ 1) Write a function named WordCount, which determines the number of words in
C++ 1) Write a function named WordCount, which determines the number of words in a “C type” string. The function will have one parameter (the address of the string) and will retur…
C++ 1) Write a random number generator that generates random floating numbers fr
C++ 1) Write a random number generator that generates random floating numbers from 0.0 to 1.0. 2) Write a random number generator that generates random floating numbers from -1.0 …
C++ 1) Write one line of code for each line below. What is the template type in
C++ 1) Write one line of code for each line below. What is the template type in each case? - produce a vector to store student IDs - produce a vector to store student names - prod…
C++ 1)After the code in the catch block is executed program execution continues
C++ 1)After the code in the catch block is executed program execution continues inside the try block. True False p2 2)Who can access private data in a class? a)members of the clas…
C++ 1)Copy the code, make sure you correct any errors, add in comments but not s
C++ 1)Copy the code, make sure you correct any errors, add in comments but not steps however, explain what happens during the steps in your comments. Look at the description of wh…
C++ 1. A Bookseller has a book club that awards points to its customers based on
C++ 1. A Bookseller has a book club that awards points to its customers based on the numbers of books purchased each month. The points awarded are as follows: If a customer purcha…
C++ 1. A letter means push and an asterisk means pop in the following sequence.
C++ 1. A letter means push and an asterisk means pop in the following sequence. Give the sequence of values returned by the pop operations when this sequence of operations is perf…
C++ 1. A variable of a class type is called a class ____________________. 2. A(n
C++ 1. A variable of a class type is called a class ____________________. 2. A(n) ____________________ search reduces the range to be searched by approximately one-half after each…
C++ 1. Asks the user to enter a positive integer greater than or equal to 0 2. V
C++ 1. Asks the user to enter a positive integer greater than or equal to 0 2. Validates that the entry is a positive integer 3. Displays the even digits that make up the number e…
C++ 1. Change Calculator Write a program that directs a cashier how to give chan
C++ 1. Change Calculator Write a program that directs a cashier how to give change. The program has two inputs: The amount due and the amount received from the customer. Display t…
C++ 1. Compile Time Bugs (TCO 4) Find and fix the four (possibly five) compile t
C++ 1. Compile Time Bugs (TCO 4) Find and fix the four (possibly five) compile time bugs in the code at the end of this section. Compile time bugs shown as errors when you compile…
C++ 1. Consider the loops below. Loop A: int i = 0; while( EXPR){ i++; } cout
C++ 1. Consider the loops below. Loop A: int i = 0; while( EXPR){ i++; } cout << i << endl; Loop B: int i = 0; do{ i++; } while(EXPR); cout << i << endl; F…
C++ 1. Create Fraction Class 2. Run the driver without change Objective: To corr
C++ 1. Create Fraction Class 2. Run the driver without change Objective: To correctly overload the standard arithmetic operators, the equality operator, and the stream insertion o…
C++ 1. Create Fraction Class 2. Run the driver without change Objective: To corr
C++ 1. Create Fraction Class 2. Run the driver without change Objective: To correctly overload the standard arithmetic operators, the equality operator, and the stream insertion o…
C++ 1. Create a class template called PatientRecord which includes following thr
C++ 1. Create a class template called PatientRecord which includes following three data members: ItemType lastName; ItemType firstName; …
C++ 1. Define a class named PrimeNumber that stores a prime number. The default
C++ 1. Define a class named PrimeNumber that stores a prime number. The default constructor should set the prime number to 1. 2. Add another constructor that allows the caller to …
C++ 1. In C++, what is a pure virtual method ? 2. In C++, what is an abstract cl
C++ 1. In C++, what is a pure virtual method? 2. In C++, what is an abstract class? 3. Assume that Pet is a base class, and Cat is a class derived from Pet using public inheritanc…
C++ 1. In order to use a dynamic_cast in a C++ program, runtime type informati
C++ 1. In order to use a dynamic_cast<> in a C++ program, runtime type information must be enabled. a. true b. false 2. In C++, a call to a virtual method though a base clas…
C++ 1. Open a project , and a . cpp file. 2. Choose File, New from the menu and
C++ 1. Open a project, and a .cpp file. 2. Choose File, New from the menu and choose Text File. Once the text file is opened, go to the File menu again and choose the option that…
C++ 1. Place the following values in a file. Use this file as input to your prog
C++ 1. Place the following values in a file. Use this file as input to your program. {62, 8, 25, 7, 90, 82, 22, 46, 15, 54} 2. Write a program that performs the following:("For" l…
C++ 1. Program: Create a C++ program that will function as an Employee Salary Ca
C++ 1. Program: Create a C++ program that will function as an Employee Salary Calculator. Obtain from the user: a. Double variables for: i. Standard Hours Worked ii. Rate of Pay i…
C++ 1. Suppose vehicle is a class that defines the basic properties of a vehicle
C++ 1. Suppose vehicle is a class that defines the basic properties of a vehicle. Draw a class hierarchy in which several classes are derived from the class vehicle, and then othe…
C++ 1. Two arrays, list1 and list2 are identical if they have the same contents.
C++ 1. Two arrays, list1 and list2 are identical if they have the same contents. Write a function that returns true if list1 and list2 are identical, and false if not. DO NOT USE …
C++ 1. What is the delete keyword used for? To remove a pointer address from the
C++ 1. What is the delete keyword used for? To remove a pointer address from the stack To delete both the pointer and to deallocate the space in the heap that is pointed to. To de…
C++ 1. Which of the following statements about multidimensional arrays is NOT tr
C++ 1. Which of the following statements about multidimensional arrays is NOT true? 5 For dynamically allocated multidimensional arrays, you must allocate memory for each row indi…
C++ 1. Write a for statement to add all the multiples of 3 between 1 and 100. 2.
C++ 1. Write a for statement to add all the multiples of 3 between 1 and 100. 2.How many times will each of the following loops execute? What is the output in each case? a. x=5;y=…
C++ 1. Write a program that allows the user to enter the last names offive candi
C++ 1. Write a program that allows the user to enter the last names offive candidates in a local election and the votes received by each candidate. The program should then output …
C++ 1. Write a program that uses an array to find the Average of 10 double value
C++ 1. Write a program that uses an array to find the Average of 10 double values. Allow the use to enter values for the 10 double numbers. A for loop will facilitate the user inp…
C++ 1. Write the function sum() that receives two parameters; a double type arra
C++ 1. Write the function sum() that receives two parameters; a double type array and an integer type parameter representing the size of the array. The function returns the sum of…
C++ 1. \'Which operator do you use to read into a variable? 2. If you want the u
C++ 1. 'Which operator do you use to read into a variable? 2. If you want the user to input an integer value into your program for a variable named number, what arc two lines of c…
C++ 1.) Implement the following functions for your RSA: (a) Mapping function fro
C++ 1.) Implement the following functions for your RSA: (a) Mapping function from alphanumerical characters to decimal digits. Every two alphanumerical characters will be converte…
C++ 1.Functions written by the programmer in C++ cannot receive values through t
C++ 1.Functions written by the programmer in C++ cannot receive values through the argument list. a)true b)false 2.Functions written by the programmer in C++ can return multiple v…
C++ 1.Your program will prompt the user for a U.S. Dollar amount and convert the
C++ 1.Your program will prompt the user for a U.S. Dollar amount and convert the U.S Dollar amount to the Chinese Yuan currency. You must use only one pointer. Your program must p…
C++ 11 (a) The concept of a class is central to Object-Oriented Programming TRUE
C++ 11 (a) The concept of a class is central to Object-Oriented Programming TRUE FALSE b) A private member variable of a class cannot be accessed directly by name from a pri- vate…
C++ 11 Complex Class Program I\'m having trouble understanding how to write the
C++ 11 Complex Class Program I'm having trouble understanding how to write the code for the following question: Create a class called Complex for performing arithmetic with comple…
C++ 11. Consider the following function definition: void tripler(int& n) { n = 3
C++ 11. Consider the following function definition: void tripler(int& n) { n = 3*n; } Which of the following are acceptable function calls? int a[3] = {4, 5, 6}, number = 2; t…
C++ 11. In this exercise, you will design various classes and write a program to
C++ 11. In this exercise, you will design various classes and write a program to computerize the billing system of a hospital. a. Design the class doctorType, inherited from the c…
C++ 14. Bank Charges A bank charges $10 per month plus the following check fees
C++ 14. Bank Charges A bank charges $10 per month plus the following check fees for a commercial checking account: $.10 each for fewer than 20 checks $.08 each for 20-39 checks $.…
C++ 1A. (1) Draw a complete and neat flowchart that converts the temperature in
C++ 1A. (1) Draw a complete and neat flowchart that converts the temperature in °C to °F or temperature in °F to °C. The user is prompted to enter the choice of conversion (for ex…
C++ 2) More Polynomial Methods Extend the Poly class to support the evaluation o
C++ 2) More Polynomial Methods Extend the Poly class to support the evaluation of quadratic polynomials as follows: 1. Add a member function named eval that takes a single double …
C++ 2. (A). Show the contents of stack and que after the following algorithm is
C++ 2. (A). Show the contents of stack and que after the following algorithm is executed. Input sequence: 10, 10, 1, 2, 3, 10, 10, 10,5, 6, 10 loop ( not end of input allocate (da…
C++ 2. Suppose you are defining a class named Array to represent lists of up to
C++ 2. Suppose you are defining a class named Array to represent lists of up to 100 type double values. You want to allow input of such a list from a file that con- tains first th…
C++ 2. Using dynamic arrays, implement a polynomial class with polynomial additi
C++ 2. Using dynamic arrays, implement a polynomial class with polynomial addition, subtraction, and multiplication. Discussion: A variable in a polynomial does nothing but act as…
C++ 20. Random Number Guessing Game Write a program that generates a random numb
C++ 20. Random Number Guessing Game Write a program that generates a random number and asks the user to guess what the number is. If the user’s guess is higher than the random num…
C++ 22.5* (Remove elements) Implement the following function that removes the sp
C++ 22.5* (Remove elements) Implement the following function that removes the specified value from a first-class container. Only the first occurrence of a matching value in the co…
C++ 24.3* (Find a shortest path) Write a program that reads a connected graph fr
C++ 24.3* (Find a shortest path) Write a program that reads a connected graph from a file. The graph is stored in a file using the same format specified in Exercise 24.1. Your pro…
C++ 2D Array Help I am having trouble with a C++ 2d array. Will rate all helpful
C++ 2D Array Help I am having trouble with a C++ 2d array. Will rate all helpful solution thumbs up. Thank you! Question: Assumption: - There is at least one value in the file, no…