Thank you so much for the help guys Create each class in a separate file Combine
ID: 3541078 • Letter: T
Question
Thank you so much for the help guys
Create each class in a separate file
Combine multiple classes in a same file to allow easy access
Using one file to combine all the code to allow easy access
None of the above
int SetNumberOfLegs() { return legs;}
void SetNumberOfLegs (int legs) {this.legs = legs;}
void SetNumberOfLegs (int legs) {return legs;}
void SetNumberOfLegs () {return legs;}
public abstract void CookIngredients() {}
public void CookIngredients() {}
public abstract void CookIngredients();
public abstract CookIngredients();
2
6
3
4
---------------------------Essay Questions---------------------------
5. (TCO 8) Your company has just hired you to increase programmer productivity. You review existing program code and notice that no specific naming convention has been followed. What would you say to explain the best practices regarding naming conventions for class names? (Points : 18)
6. (TCO 2) Does Encapsulation imply Data/Information Hiding in object-oriented programming? Why or why not? (Points : 18)
7. (TCO 2) Given the following program description,
- identify the required classes/objects necessary to achieve the program requirements;
- briefly describe any relationships that might exist between your classes; and
- briefly describe the overall hierarchy of your proposed classes.
Program Description - You have been asked to create a program designed to take coffee orders in a coffee shop. The program must be able to take an order, assign a unique ID to the order, add any number of drinks to the order and calculate the total bill. (Points : 18)
13. (TCO 7) Briefly describe what an Interface is and how it can be used in an object-oriented program. Provide example pseudocode showing how an IPerson Interface might be constructed. (Points : 18)
1. (TCO 9) Which of the following allow a programmer to reduce the complexity of an object-oriented program? (Points : 5)Explanation / Answer
7. (TCO 2) Given the following program description,
- identify the required classes/objects necessary to achieve the program requirements;
- briefly describe any relationships that might exist between your classes; and
- briefly describe the overall hierarchy of your proposed classes.
Program Description - You have been asked to create a program designed to take coffee orders in a coffee shop. The program must be able to take an order, assign a unique ID to the order, add any number of drinks to the order and calculate the total bill. (Points : 18)
Class Student {
int id; //indicates database id
string name;
long uniqId;
int departmentId;
string address;
Date enrolledOn;
String course;
....other details
}
Class Department {
int depIUniqId; //department uniq Id
string depName;
List<Students> students; //this will be loaded dynamically whenever required
.... other details like HOD, lectrures, subjects,courses each department offers
}
Relation b/w Department and Student Classes
A student must belong to a department. so its represented by departmentId in Student class. We can students based on department.
Main Class which manages the enrollments
class EnrollementManager {
void enrolNewStudent(Student student);
void updateStudent(Student student);
void deleteStudent(Student student);
void updateDepartment(departId, newStudents);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.