Create an interface named isellable

Assignment Help Basic Computer Science
Reference no: EM13784123

C# Salesperson Demo Description

Description

Write a program named SalespersonDemo that instantiates objects using classes named RealEstateSalesperson and GirlScout. Demonstrate that each object can use a SalesSpeech() method appropriately. Also, use a MakeSale() method two or three times with each object and display the final contents of each object's data fields. First, create an abstract class named Salesperson. Fields include first and last names; the Salesperson constructor requires both these values. Include properties for the fields. Include a method that returns a string that holds the Salesperson's full name - the first and last names separated by a space. Then perform the following tasks:

Create two child classes of Salesperson: RealEstateSalesperson and GirlScout. The RealEstateSalesperson class contains fields for total value sold in dollars and total commission earned (both of which are initialized to 0), and a commission rate field required by the class constructor. The GirlScout class includes a field to hold the number of boxes of cookies sold, which is initialized to 0. Include properties for every field.

Create an interface named ISellable that contains two methods: SalesSpeech() and MakeSale(). In each RealEstateSalesperson and GirlScout class, implement SalesSpeech() to display an appropriate one- or two-sentence sales speech that the objects of the class could use.

In the RealEstateSalesperson class, implement the MaketSale() method to accept an integer dollar value for a house, add the value to the RealEstateSalesperson's total value sold, and compute the total commission earned. In the GirlScout class, implement the MakeSale() method to accept an integer representing the number of boxes of cookies sold and add it to the total field.

Reference no: EM13784123

Questions Cloud

Briefly define the various types of investigations : Briefly define the various types of investigations conducted by security and protective services and the statues that govern the conduct of investigative agents
Similarities and differences between the public relations : How is your selected organization adapting to the social media sites and other venues in the 21st century?
What policy will you recommend to your chief executive : What policy will you recommend to your chief executive (police), your warden (corrections), your commissioner (state police), your sheriff, and/or any executive role with which you must deal?
Celebrity quality healthcare : You are developing a strategic plan for your healthcare institution. A one-time Olympic champion from your hometown was recently diagnosed with a life threatening illness. You ask if the champion will share his story with the community and encoura..
Create an interface named isellable : Create an interface named ISellable that contains two methods: SalesSpeech() and MakeSale(). In each RealEstateSalesperson and GirlScout class, implement SalesSpeech() to display an appropriate one- or two-sentence sales speech th..
Prepare paper rebutting the justices concerns : Write a 700 - 1,050-word paper rebutting the justice's concerns about the competencies of human service workers. Provide quality supporting sources to illustrate the value that human service workers provide the criminal justice system
Questions about the religions : Now consider what you learned from the in-class discussions. Use this information to answer the following questions about the religions that you selected. Did each start out as a sect or a church? How does each compare to the Dionysian and Apollon..
Define the four types of training objectives : Define the four types of training objectives, and give an example of each. Your examples must include the objective's desired outcome, conditions, and standards.
Write a paper about criminal justice administration : Write a paper about criminal justice administration. In essence, you will be asked to demonstrate critical thinking about controversial issues in criminal justice administration.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd