Object Oriented Analysis And Design Homework Help |
Object Oriented Analysis And Design Assignment Help
Boost your journey with 24/7 access to skilled experts, offering unmatched object oriented analysis and design homework help
Frequently Asked Questions
Q. 1) You own a bookstore and need an efficient way to manage the inventory. To address this, you decide to create a program with a Bookstore class that defines the key components of your system. This class should include fields such as ISBN Number, Title, Author, Genre, Quantity in Stock, Cost Price, and Retail Price. The class should also provide methods to add or update book details, retrieve information based on ISBN, calculate the profit margin for a book, and display the entire inventory. Alongside this, you will write a demo program to demonstrate functionalities such as adding multiple books, updating stock, calculating profit margins, and viewing inventory details. This approach ensures streamlined inventory management and serves as a foundational framework for further enhancements like sales tracking and analytics.
Structural programming is associated with the procedural programming paradigm, which focuses on sequence, selection, and iteration to control program flow.
Q. 2) You manage a vehicle rental business and need a program to calculate rental costs and track inventory. Create a Vehicle class that includes fields for vehicle type, registration number, rental price per day, and availability status. Write a program to calculate total rental costs based on the number of days rented and update vehicle availability.
In MATLAB, a callable unit is called a Function. Functions allow modular programming, taking inputs and returning outputs, and are defined in .m files.
Q. 3) Develop a program to help a local library manage its books. Create a Book class with fields for title, author, ISBN, genre, and availability. Include methods to check in/out books, search by ISBN, and display available books. Write a demo program to test these features.
Solution: Implement a Bookstore class with fields for ISBN, title, author, genre, quantity, cost price, and retail price. Methods include adding/updating books, retrieving book info, calculating profit margins, and displaying inventory.
Q. 4) Write a program for a restaurant to manage its menu and calculate bills. Create a MenuItem class with fields for item name, category (e.g., starter, main course), price, and availability. Include methods to add items to an order, calculate the total bill, and display ordered items.
Solution: Create a Vehicle class with fields like type, registration number, rental price/day, and availability. Methods include calculating rental costs and updating vehicle status.
Q. 5) You’re designing software for a hotel. Create a Room class to manage bookings. Include fields for room number, type (e.g., single, double), rate per night, and availability. Write methods to book a room, calculate the cost for a stay, and display available rooms.
Solution: Design a Book class with fields for title, author, ISBN, genre, and availability. Implement methods for check-in/out, searching by ISBN, and displaying available books.
Q. 6) Write a program for a grocery store to manage its stock. Create a GroceryItem class with fields for item name, category, price, quantity in stock, and expiry date. Include methods to update stock, calculate total value of inventory, and display items nearing expiration.
Solution: Develop a MenuItem class with fields like item name, category, price, and availability. Methods include adding items to an order, calculating total bills, and displaying ordered items.
Q. 7) Create a program for a taxi service to calculate fares. Write a Taxi class with fields for taxi ID, driver name, base fare, rate per kilometer, and availability. Include methods to calculate fares based on distance and update availability after trips.
Solution: Use a Room class with fields for room number, type, rate, and availability. Include methods for booking rooms, calculating stay costs, and displaying available rooms.
Q. 8) Design a program for a fitness tracker app. Create a Workout Session class to store session details such as user name, workout type (e.g., running, cycling), duration, and calories burned. Write methods to log sessions, calculate weekly totals, and display workout history.
Solution: Implement a GroceryItem class with fields like name, category, price, quantity, and expiry date. Methods include updating stock, calculating inventory value, and displaying expiring items.
Q. 9) Develop a program for a movie theater to manage bookings. Create a MovieShow class with fields for movie name, show time, ticket price, and available seats. Include methods to book tickets, calculate total revenue for a show, and display show details.
.Solution: Create a Taxi class with fields for taxi ID, driver name, base fare, rate/km, and availability. Methods calculate fares and update status after trips.
Q. 10) Write a program for a pet grooming service. Create a PetGrooming class to store customer name, pet type, service type (e.g., haircut, nail trimming), and cost. Include methods to schedule appointments, calculate total earnings, and display scheduled services.
Solution: Develop a WorkoutSession class with fields like user name, workout type, duration, and calories burned. Methods log sessions, calculate weekly totals, and display history.
Q. 11) Create a program for a camping gear rental shop. Write a CampingGear class with fields for gear type, rental rate per day, quantity available, and condition. Include methods to rent gear, calculate rental costs, and track available inventory
Solution: Use a MovieShow class with fields like movie name, show time, ticket price, and available seats. Methods include booking tickets, calculating revenue, and displaying show details.
Q. 12) Construct a complete Java program, a UNIMY EXAMINATION SYSTEM for Year 1 Bachelor Computer Science programme to register subjects based on which semester (from 1 until 3) for each student and your system can acquire the user to insert the marks for each course that they have registered. Which means your system may have two buttons one is for Registration and another one for Marks. Your system also be able to calculate the GPA for each student and display the results obtained for each student in the interface itself. You must have a button to print out the overall result in slip as well. Firstly, your code will acquire the name of the student, their ID number (starts with B and restricted to 8 digits, e.g. B01023023) and which semester are they enrolled. Then user need to register the subjects for each student based on the subject list given below for each semester. Your system will only display the courses offered for the particular semester of the student. They are allowed to register minimum 4 or maximum 6 courses for each semester. Once done key in the marks obtained for each student for all the courses they have registered. Your code will display the marks, grade and status (Pass for more than 40 marks or Fail below 40) obtained for each module. GPA will be calculated for the semester and will be displayed in your result slip. Display the status of the student based on their GPA either DEAN'S LIST (more than 3.50), PASS (more than 2.00) or PROBATION (less than 2.00). SEMESTER COURSE CODE 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 BCS1113 BCS1124 BCS1133 BCS1144 BCS1154 BCS1163 BCS1213 BCS1224 BCS1233 BCS1244 BCS1254 BCS1263 BCS1313 BCS1324 BCS1334 BCS1344 BCS1353 BCS1363 85-100 80-84 75-79 70-74 65-69 60-64 55-59 50-54 45-49 MARKS GRADE A 40-44 <40 Computing Maths Programming Technique Computer Organization & Architecture System Development Data Communication & Network Public Speaking Statistics & Probability Database Software Engineering Object-Oriented Programming Computer Science Theory Human Computer Interaction Data Structures & Algorithms Operating Systems Software Requirement Engineering Mobile Software Engineering Software Project Management Third Language COURSE NAMES A- B+ B B- C+ с C- D+ D F POINTS 4.00 3.67 3.33 3.00 2.67 2.33 2.00 1.67 1.33 1.00 0.00
Solution: Implement a PetGrooming class with fields for customer name, pet type, service type, and cost. Methods schedule appointments, calculate total earnings, and display scheduled services.
Q. 13) Structural programming is mainly associated with which programming paradigm?
Solution: Develop a CampingGear class with fields like gear type, rental rate, quantity, and condition. Methods include renting gear, calculating rental costs, and tracking inventory.
Q. 14) In Matlab what is a callable unit called? Function Subroutine Sub-program Procedure Control Statement
Solution: Implement classes for Student (fields: name, ID, semester) and Subject (fields: subject code, name, marks, grade, status). Functionalities: Registration of 4-6 subjects based on semester. Marks input, grade/status calculation. GPA computation and display. Print student results with GPA status (Dean's List, Pass, Probation).
Popular Subjects for Object Oriented Analysis And Design
Boost your journey with 24/7 access to skilled experts, offering unmatched object oriented analysis and design homework help