Reference no: EM131310457
Assignment
1. You are a manager who is employed by a game production company. Your team is responsible for coding one of the game modules. You have two newly hired programmers working for you who believe that the following naming conventions and properly chosen names for methods is too restrictive since each person has his own style and it should be skipped. How would you explain to them what the best practices for naming methods is and why it is so necessary?
2. Provide an example that shows how we can have Encapsulation without Data/Information Hiding in object-oriented programming.
3. Given the following program description.
Identify the required classes/objects necessay to achieve the program requirements
Briefly describe any relationships that might exist between your classes; and
Briefly decribe the overall hierarchy of your proposed classes.
Program Description - You have been asked to create a program designed to ring up orders in any store. The program must create a new electronic "shopping cart" with a unique ID that can be associated with a specific customer. The shopping cart must accept any number of items including both taxable and non-taxable items, and it should calculate the tax on the order and display the final price.
4. How are pure virtual functions created? When a class contains one pure virtual function, what will happen? Can we still treat the class like a normal class?
5. Consider the class Bicycle. Given your knowledge of some common components of bicycles
Show a class hierarchy in which the class bicycle inherits from other classes, which, in turn, can aslo be inherited from yet other classes;
Discuss inheritance from class bicycle from other closely related derived classes; and
Discuss the common components of class bicycle.
6. How does the "is-a" relationship relate to inheritance? Give an example of such a relationship.
7.define and implement the overload constructors that support the following test function for a Date class. The data members for the Data class are:
Year - integer number
Month - integer number
Day - integer number
----int main()
{ Date d1() ; //d1 will take all default values
Date d2 (2011, 8, 2) ; //d2 will take all supplied values
Dates d3 (2011) ; //d3 will take supplied year, month and day will take default values
Date d4 (2011, 9) ; //d4 will take supplied year and month, day will take default value
Date d5 = d2; // d5 will take the same value as d2
// the rest of the code
}
Understand the methods of dynamic routing protocols
: Recently, two new interns have joined your network team. They do not understand the methods of dynamic routing protocols and have asked for your help.
|
Returns the total charges for an oil change and lube job
: Returns the total charges for an oil change and/or lube job, if any. FlushCharges: returns the total charges for a radiator flush and/or transmission flush, if any.
|
Create a program to implement a simplified gradebook
: In this assignment, you will implement a simplified gradebook. Your application should: Ask for a student's name. Ask for how many letter grades will be inputted.
|
First write a set of instructions
: Problem: First write a set of instructions (algorithm) that can be used to determine whether a year is a leap year. The instruction must be very clear and simple. . To check that the algorithm works correctly, you will code it INDIVIDUALLY as an a..
|
Discuss inheritance from class bicycle from other closely
: Show a class hierarchy in which the class bicycle inherits from other classes, which, in turn, can aslo be inherited from yet other classes; Discuss inheritance from class bicycle from other closely related derived classes.
|
Create your own java class that includes three data fields
: Design your own Java Class that includes at least 3 data fields, 2 constructors and 4 methods. When designing your class, pick an object that you are familiar with and make it your own, realistic, yet simple design with reasonable data fields and ..
|
Describe the key activities that the cio should be engaged
: List three positive and three negative impacts of social networking. In your opinion, determine whether the positive impacts outweigh the negative impacts for a company determined to increase company awareness. Describe the role of the CIO in rela..
|
Calculate the ratios along with the formula
: Calculate the ratios along with the formula.- Under each calculation explain what the ratios indicate about the company's financial condition.
|
Write a java application to store pairs of unique colors
: Write a Java application that effectively uses Java collections to store pairs of unique colors and their unique hexadecimal values. For example, "Red" -> "FF0000". Store at least 8 and up to 20 of these pairs.
|