Write a class named Person with data attributes for a persons name, address, and telephone number. Next,
Question:
Write a class named Person with data attributes for a person’s name, address, and telephone number. Next, write a class named Customer that is a subclass of the Person class. The Customer class should have a data attribute for a customer number, and a Boolean data attribute indicating whether the customer wishes to be on a mailing list. Demonstrate an instance of the Customer class in a simple program.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (QA)
class Person def initself name address phonenumber selfname name ...View the full answer
Answered By
Somshukla Chakraborty
I have a teaching experience of more than 4 years by now in diverse subjects like History,Geography,Political Science,Sociology,Business Enterprise,Economics,Environmental Management etc.I teach students from classes 9-12 and undergraduate students.I boards I handle are IB,IGCSE, state boards,ICSE, CBSE.I am passionate about teaching.Full satisfaction of the students is my main goal.
I have completed my graduation and master's in history from Jadavpur University Kolkata,India in 2012 and I have completed my B.Ed from the same University in 2013. I have taught in a reputed school of Kolkata (subjects-History,Geography,Civics,Political Science) from 2014-2016.I worked as a guest lecturer of history in a college of Kolkata for 2 years teaching students of 1st ,2nd and 3rd year. I taught Ancient and Modern Indian history there.I have taught in another school in Mohali,Punjab teaching students from classes 9-12.Presently I am working as an online tutor with concept tutors,Bangalore,India(Carve Niche Pvt.Ltd.) for the last 1year and also have been appointed as an online history tutor by Course Hero(California,U.S) and Vidyalai.com(Chennai,India).
4.00+
2+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Design a class named Person with fields for holding a persons name, address, and telephone number. Write one or more constructors and the appropriate mutator and accessor methods for the classs...
-
Draw an ERD for each of the following situations. (If you believe that you need to make additional assumptions, clearly state them for each situation.) Draw the same situation using the tool you have...
-
Suppose the city of Metropolis is experiencing a movement of its population to the suburbs. Each year 25% of the people that live in the city move to the suburbs, while only 5% of the people that...
-
What would the circular flow diagram look like in an economy with no government? Draw one for yourself.
-
A. Formulate your own! Formulate your own claims of fact, policy, and value based on this topic "Resolving Conflicts". Use the organizer to present your claims. TOPIC: RESOLVING CONFLICTS CLAIM OF...
-
Astro Company has found that total factory overhead is usually about 60% of direct labor cost. The business manufactures one product that is processed in three different manufacturing departments: A,...
-
A city acquired general capital assets as follows: 1. It purchased new construction equipment. List price was $400,000, but the city was granted a 10 percent government discount. The city also...
-
Students will follow all steps from task 2A and answer the following questions from that activity. 1. Who collected this data? The data was collected by National Aeronautics and Space Administration....
-
Look at the following code, which is the first line of a class definition. What is the name of the superclass? What is the name of the subclass? class Canary(Bird):
-
Look at the following class definition: class Bird: def _ _init_ _(self, bird_type): self._ _bird_type = bird_type Write the code for a class named Duck that is a subclass of the Bird class. The Duck...
-
Solve Problem 37 for the load as shown in Figure 4.37. A F(t) 0 Figure 4.37: Simplified representation of a shock loading.
-
Big Dom's pawn shop charges an interest rate of 26 percent per month on loans to its customers. like all lenders, big Dom must report an APR to consumers. a. what rate should the shop report b. what...
-
Write the "for-each" loop for the given "for" loop of 2 given arrays - int array 'marks and String array 'fruits' int marks] (100,80,70,60,50); for(int i=0; i
-
On 3/1/2020, Taft Corporation issues 17-year bonds, dated 1/1/2020, with a par value of $300,000. These bonds have an interest rate of 5%, and pay interest semiannually on June 30th and December...
-
On January 1, 2021, Sole Man Shoe Repair Corporation issued 16,000 of its 9%, $1,000 bonds at 97. Interest is payable semiannually on June 30 and December 31. The bonds mature on December 31, 2030....
-
The electric aluminum wire with a diameter of 0 . 5 mm is covered with vinyl plastic with a thickness of 1 . 5 mm . A current with a strength of 6 A flows through the wire. The temperature of the...
-
A large company buys thousands of light bulbs every year. The company is currently considering four brands of light bulbs to choose from. Before the company decides which light bulbs to buy, it wants...
-
Use the following data to answer the next two (2) questions: Product 1 Product 2 Product 3 Direct Material Cost $25,000 $30,000 $35,000 Direct Labor Cost $30,000 $40,000 $50,000 Direct Labor Hours...
-
A program has the following declaration: Double[] values; Write code that asks the user for the size of the array and then creates an array of the specified size, referenced by the values variable.
-
Write a program with an array that is initialized with test data. Use any primitive data type of your choice. The program should also have the following methods: GetTotal. This method should accept...
-
Write code that creates an ArrayList that can hold String objects. Add the names of three cars to the ArrayList, and then display the contents of the ArrayList.
-
The receipt of payment for an account receivable: affects assets and equity affects assets and liabilities affects only the asset side of the accounting equation has no effect on the accounting...
-
Dan got a 1 0 year Fixed Rate Mortgage for $ 1 0 0 , 0 0 0 . The loan has constant annual payments and an annual interest rate of 5 % . There are no closing costs. Suppose Dan prepays the loan in...
-
1) Why could quantum computing be a very important tool in supply chain management (what can it do that traditional computing can't)? 2) Give 1 or 2 examples of some current issues in supply chain...
Study smarter with the SolutionInn App