Look at the following description of a problem domain:
The bank offers the following types of accounts to its customers: savings accounts, checking accounts, and money market accounts. Customers are allowed to deposit money into an account (thereby increasing its balance), withdraw money from an account (thereby decreasing its balance), and earn interest on the account. Each account has an interest rate.
Assume that you are writing an application that will calculate the amount of interest earned for a bank account.
A) Identify the potential classes in this problem domain.
B) Refine the list to include only the necessary class or classes for this problem.
C) Identify the responsibilities of the class or classes.
Want to see the full answer?
Check out a sample textbook solutionChapter 7 Solutions
Starting Out With C++: Early Objects (10th Edition)
Additional Engineering Textbook Solutions
Problem Solving with C++ (9th Edition)
Experiencing MIS
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out with Python (3rd Edition)
Database Concepts (7th Edition)
- C# Language(WinForm Application) In this exercise, you complete an application that determines whether a person qualifies for a loan. To qualify for the loan, the person must earn a salary of at least $40,000 and must have been employed at his or her current job for at least 2 years.arrow_forwardE-commerce ApplicationTakealot is an e-commerce company with a website that offers products to buy. During stock taking, the company records the following properties for each product:• Product ID in the format 10#, where # represents any numeric value• Product Name e.g. iPhone 12• Product Type e.g. mobile phone• Product Manufacturer e.g. Apple• Product Price e.g. R24000You have been hired as the Java developer for Takealot and have been provided with a text file called Products containing five products sold on the Takealot website. Below is sample data from the text file:101, Apple iphone 12, Mobile phone, Apple, 24000.00102, Dell laptop, Electronics, Dell, 18999,99103, Samsung 9kg Washing Machine, Electronic, Samsung, 7000.99104, Wireless Keyboard, Electronic, Microsoft, 101.99105, LG 65-inch TV, Electronic, LG, 14999,99 Develop a Java program for Takealot in any IDE of your choice using the information provided in the scenario above. The program must consist of a class called Product…arrow_forwardFinancial Assistance Application Create the Financial Assistance Application. A non-governmental organization needs your application to calculate the amount of financial assistance for needy families. The formula is as follows: • If the annual household income is between $30,000 and $40,000 and the house- hold has at least three children, the amount is $1,000 per child. • If the annual household income is between $20,000 and $30,000 and the house- hold has at least two children, the amount is $1,500 per child. • If the annual household income is less than $20,000, the amount is $2,000 per child. Implement a function for this computation. The program asks for the household income and number of children for each applicant, printing the amount returned by your function. Use -1 as a sentinel value for the input. The program output should be formatted as shown in the Sample Run. Note: You must use at least one function in your code.arrow_forward
- Restaurant: Point-of-Sales System Create a software application that can be used for a Restaurant using C language. The expected minimum functionality are as follows: Menu Display It must display at least 10 choices with their corresponding prices On your menu, at least one of the categories/choice should have customization/add-on. You should have at least 3 customization/add-on (e.g. In Starbucks, you can have extra espresso shot). Taking Orders As a customer, I want to select which of the choices I want to order As a customer, everytime I specify select my choice, I want to specify the quantity of my selected choice. After I finished my order, it should ask, "Anything Else?". Afterwards, as a customer, I should be to enter my succeeding choice. In order to stop taking order, the exit should be part of the menu. As a customer, I would only select that choice to exit If the customer selects a choice qualified for customization, after specifying the quantity, I should be asked,…arrow_forwardCMPG 122 User Interface Programming Prak 10 Chapter 6: Modularizing Your Code with Methods 1. Charges in a Luxury Resort (Nr 6, Page 410) Create an application that calculates the total cost of a hotel stay. The daily accommodation charge is $550. The hotel also provides other services like restaurant and bar, spa, car rental, and medication and rehabilitation. The application should accept the following input: E The number of days spent in the hotel E The restaurant charges including VAT É The amount accrued from spa and health treatments E The amount accrued in car rental E The amount accrued in medical and rehabilitation services Create and use the following value-returning methods in the application: A CalcStayCharges () - Calculates and returns the base charges for the hotel stay. This is computed as $450 times the number of days in the hotel. e CalcMiscCharges () - Calculates and returns the total of the food bill, spa charges, car rental, and medication and rehabilitation…arrow_forwardRetail Price Calculator Create an application that lets the user enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is $5.00 and its markup percentage is 100 percent, then the item’s retail price is $10.00. • If an item’s wholesale cost is $5.00 and its markup percentage is 50 percent, then the item’s retail price is $7.50. The program should have a method named CalculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item.arrow_forward
- C# programming question. This task will be a car dealership where you’ll help the user find the car(s) they want. This program should keep going until the user either decides to not continue with the purchase, or the purchase is complete, and no more order is being processed. You will need 3 structs to store: • client information • order information • used_car information Each struct would have the following fields: struct used_car { int carID; char brand[length]; char make[length]; int year; int mileage; float price; }; struct order { int numCosigned; int carID; float pricePerPerson; }; struct client { char firstName[length]; char lastName[length]; bool isEmployed; int creditScore; }; I. global variables: • Create an array of struct used_car and add some cars in there. I put 4 cars. You can do as many as you want (at least 3). • Make sure to put the struct definition above the array creation, otherwise, it won’t work. o This is similar to you trying to call a function X that’s not…arrow_forwardProgramName: Chapter3StadinumSeatingProgram There are three seating categories at an athletic stadium. For a baseball game, Class A seats cost $15 each, Class B seats cost $12 each, and Class C seats cost $9 each. Create an application that allows the user to enter the number of tickets sold for each class. The application should be able to display the amount of income generated from each class of ticket sales and the total revenue generated. The application's form should resemble the one shown in below. X A Stadium Seating Revenue Generated Tickrts Sød Enter the rumber of tickets sold for coch dass of sects. Cass A Class B Cass A: lass C Caes B: Oless C Total Calculate Revenue Cear Ext Use the following sets of test data to determine if the application is calculating properly:arrow_forwardC# A(n) __ is a method that is automatically executed when an object is created. Question 3 options: instantiation header declaration constructorarrow_forward
- Design a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forwardDesign a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forwardAn object’s attributes indicate the tasks that the object can perform. True or False?arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT