3. Develop a class Customer which contains data member: customerName, phone, balance, simType, and internetBalance. Implement...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. Develop a class Customer which contains data member: customerName, phone, balance, simType, and internetBalance. Implement necessary methods to set the value of each variables. Now design another class called offer that contains a function calculateOffer () which takes an object of class customer as a parameter and provides offer to the customer depending on the following criteria: i. If the customer is Robi user add 50MB to his internetBalance ii. If the customer is Airtel user provides 10% cash on his balance 3. Develop a class Customer which contains data member: customerName, phone, balance, simType, and internetBalance. Implement necessary methods to set the value of each variables. Now design another class called offer that contains a function calculateOffer () which takes an object of class customer as a parameter and provides offer to the customer depending on the following criteria: i. If the customer is Robi user add 50MB to his internetBalance ii. If the customer is Airtel user provides 10% cash on his balance
Expert Answer:
Answer rating: 100% (QA)
Based on the question provided you are asked to develop two classes in a programming language which is not specified but Ill assume youre using a lang... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Which model can be selected if user is involved in all the phases of Software Development Life Cycle?Prototyping Model a OWaterfall Model b OSpiral model cORapid Application Development Model . . d...
-
What is the evidence for the statement that white light is a composite of all the colors of the spectrum?
-
JOSEPH: My friend Jarvis, who plays for the NFL, told me that he has never taken any performance-enhancing drugs. STEPHEN: That cant be true. I know Jarvis too, and he told me that he has taken...
-
Describe various types of gear trains.
-
Dog Up! Franks is looking at a new sausage system with an installed cost of $540,000. This cost will be depreciated straight-line to zero over the project's five-year life, at the end of which the...
-
What are the pros and cons of recruitment and selection in an Internet context? Provide examples of your personal experiences with online recruitment and selection. Do you agree or disagree with...
-
An analysis of transactions for Foley & Co. was presented in E18. Assume that August is the companys first month of business. In E18, An analysis of the transactions made by Foley & Co., a certified...
-
Derive a complexity function for the following algorithms: 1. 2. 3. def doNothing (someList): return false def doSomething (someList): if len (some List) return 0 == 0: else if len (list return 1...
-
Roman Corporation manufactures a product available in a deluxe model and a regular model. The company has manufactured the regular model for years. The deluxe model was introduced several years ago...
-
Solve the given differential equation. *3+ (x4 +6)=0 ... y= 0 (Use integers or fractions for any numbers in the expression. Use C as the arbitrary real constant.)
-
What are the key components of a persuasive executive summary within a proposal, and how can rhetorical devices and persuasive language be strategically employed to captivate the attention of...
-
What methodologies can be employed to optimize the coherence and conciseness of a comprehensive report, ensuring its efficacy in conveying multifaceted information to diverse stakeholders ?
-
Perry Bell paid $6,438 of state and local property and income tax this year. Assume the taxable year is 2023.\ \ Required:\ Compute the after-tax cost of these payments assuming Perry doesnt itemize...
-
Prove that the number 12345678903 cannot be written as the sum of two squares_ [Hint: Consider three cases, based on the parity of the two numbers whose squares might add up 12345678903.]
-
What are three disadvantages of using the direct write-off method?
-
The structure that allows you to write one set of instructions that operates on multiple, separate sets of data is the _______________. a. Sequence b. Loop c. Selection d. Case
-
Which of the following must always be false? a. e > 12 AND e < 15 b. e = 10 OR e = 20 c. e > 12 OR f > 12 d. e > 10 AND e < 7
-
Your downloadable files for Chapter 1 include a file named DEBUG01-04.jpg that contains a flowchart that contains syntax and/or logical errors. Examine the flowchart and then find and correct all the...
-
Refer to the Alexia Corporation data in Short Exercise 13-17. Assume the market price of Alexia Corporations common stock is \($16.00\) per share. Compute Alexia Corporations price/earnings ratio....
-
The details in Figure 16.9 relate to D Co. Using that information and appropriate ratios, prepare a financial report on the company. The opening inventory value figures were :135,000 20X1 actual and...
-
A loan is made to a company of $20,000, which is equal to :10,000 at the date of the loan during year 1. The loan is legally denominated in dollars. At the end of year 1, the loan is translated as...
Study smarter with the SolutionInn App