Skip to content
Marketing – vCMO
WordPress Plugin Development
Full-Stack Web Development
About Matthew Maennche
C++ Solution Map
Java Solution Map
Python Solution Map
Visual Basic Solution Map
Learn To Code
Microsoft Dynamics CRM
The speed of sound depends on the material the sound is passing through.
Creating objects of the Currency class requires a name (string), a currency symbol (string) and the number of decimal places (integer) usually associated with the currency (in that order).
Consider a class Movie that contains the following information about a movie: * Title * MPAA Rating (e.g. G, PG, PG-13, R) * Number of people who rated this movie as a 1 * Number of people who rated this movie as a 2 * Number of people who rated this movie as a 3 * Number of people who rated this movie as a 4 * Number of people who rated this movie as a 5
Define a class called Odometer that will be used to track fuel and mileage for a vehicle.
The pay of an hourly worker is calculated by multiplying the hours worked by the hourly rate—up to 40 hours;
Given that a vector of int named a has been declared, and that the integer variable n contains the number of elements of the vector a, assign -1 to the last element in a.
Write an expression whose value is the number of values that have been stored in v.
Given that an array of int named a has been declared, and that the integer variable n contains the number of elements of the array a, assign -1 (minus one) to the last element in a.
Write the definition of a function printDottedLine, which has no parameters and doesn’t return anything.
Design a class called Date that has integer data members to store month, day, and year. The class should have a three-parameter (day-of-month, month, year) default constructor that allows the date to be set at the time a new Date object is created.
Write a full class definition for a class named Averager, and containing the following members: An data member named sum of type integer. An data member named count of type integer.
Given three variables, k, m, n, of type int that have already been declared and initialized, write some code that prints each of them in a 9 position field on the same line. For example, if their values were 27, 987654321, -4321, the output would be: |xxxxxxx27987654321xxxx-4321
Scroll To Top