For these situations, just design the h files you need to implement the classes you’d need.
Question
For these situations, just design the h files you need to implement the classes you’d need. No code. Just explain what each variable and method do to show that it would solve the given problem. You can add information and assumptions as long as they do not interfere with the features they actually asked for. Since you are not writing code, you don’t need to know “array”, “list”, or “map”. You can use English to say when you want a lot of something, or you can look up those three words to see if they help.
class Lamp {
One lampshade // Then define lampshade
A few lightbulbs // Then define lightbulb
};
1) The school financial aid department needs new software. The government gives out money every year under a few different names (Perkins, Measure C, maybe others) and the school needs to track it all for every student. Main wants to find out the total aid a student has gotten. The government will want its money back if any student got an F or if the student dropped in the first two weeks.
2) The local diner is opening a second location and needs new software. All of their current software assumed there was only one location. Now deliveries and inventory depend on which of the two sites you are referring to. The owner is willing to give the new location a try for a year but will then want to know the profit for each site.
3) I want a new Canvas program because it aggravates me. I teach a lot of classes with a lot of students over a lot of years with a lot of homework. You know what homework entails.
Summary
In the given question we have a different situation. For which we have to write files that we will need to implement the classes. We have a total of 3 situations.
Explanation
In the first situation, we have a school financial aid department. Where government gives money every year under a few different names. So school needs to track it all for every student. And the government will want its money back if any student got an F or if the student dropped in the first two weeks.
//class Children to check for all student class Children { //data members StudentID //keep the record of student ID StudentName // student Name List of scholarships //list of scholarships available to a child Money //keep track of the total amount result //result of student eave//variable to keep track when a student leave //member functions //function to set details of student setChildren() //function to keep record of scholarships to the student AvaiScholarshilpl() //function to return the amount of total scholarships received TotalMoney() //returns Grade of student and if he drops out getResult() }; //main method int main() { studentArray //an array of students //method to set information will be called //method to set Scholarship called //if getResult returns true, amount will be returned getResult() //for each student }
In the second situation, we have to develop new software. So local diner will add his second location. So that new deliveries will show both the location. And customers can choose one of them. Also, the owner wants to try for a year but will then want to know the profit for each site.
//class to hold information of the sites class Location { public: //data members Address //location of the site //Name of the site Name //delivery number of a site SiteNo //stock in the inventory Inventory //Profit made in the inventory MaxIncome }; //class Software to keep track of Sites class Software { //two sites Sites s1,s2; //methods //function to setup the information of one site SetInformation() //function to receive order //it takes the name of the site as parameter and //updates the given data in profit, inventory and DeliveryNo PlaceOrder() //returns the profit GetMaxIncome() //returns the inventory details GetInventory() }; //main function int main() { Software_object //performs the operations for each site at each software }
In the third situation, there is a new Canvas program. So we need to create classes with a lot of students.
//class student to keep record of the student class Children { //data members StudentID //unique ID of student StudentName //name of the student Result //marks of the student Subject //list of subjects taken by the student //member functions //function to set the information of student setInformation() //function to get marks of the student getResult() //function to display student Record ChildrenRecord() }; //class Homework to keep record of the student class Homework { //data members Date //on which homework was assigned Class //class code on which homework is assigned Result //marks assigned for the homework //methods //function to set details o the homework setHomeWork() //function to show Homework details ShowHomeWork() }; //class Classes to keep record to all the classes { //data members StudentList //list of students in the class Presenty//presenty in the class Date //date on which the class held Homework //homework given //member functions //set details of the student setList() //calculate Presenty Presenty() //sethomework //assignmarks to Childrens };
Also read, Display a proof for the following theorems