Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 2 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 22 Jun 2017 My Price 7.00

Create a class named Painting that contains fields for a painting’s title,

a. Create a class named Painting that contains fields for a painting’s title, artist, medium (such as water color), price, and gallery commission. Create a constructor that initializes each field to an appropriate default value, and create instance methods that get and set the fields for title, artist, medium, and price. The gallery commission field cannot be set from outside the class; it is computed as 20 percent of the price each time the price is set. Save the class as Painting.java

b. Create a class named TestPainting whose main() method declares three Painting items. Create a method that prompts the user for and accepts values for two of the Painting objects, and leave the third with the default values supplied by the constructor. Then display each completed object. Finally, display a message that explains the gallery commission rate. Save the application as TestPainting.java

 

Answers

(8)
Status NEW Posted 22 Jun 2017 12:06 PM My Price 7.00

-----------

Attachments

file 1498133285-Answer.docx preview (91 words )
i-----------mpo-----------rt -----------jav-----------a.u-----------til-----------.Sc-----------ann-----------er;----------- c-----------las-----------s P-----------ain-----------tin-----------g -----------{ -----------Str-----------ing----------- Pa-----------int-----------ing-----------Tit-----------le;----------- S-----------tri-----------ng -----------Art-----------ist-----------; -----------Str-----------ing----------- Me-----------diu-----------m; ----------- do-----------ubl-----------e P-----------ric-----------e; ----------- do-----------ubl-----------e G-----------all-----------ery-----------Com-----------mis-----------ion-----------; -----------//d-----------efa-----------ult----------- co-----------nst-----------ruc-----------tor----------- p-----------ubl-----------ic -----------Pai-----------nti-----------ng(-----------) -----------{ -----------Pai-----------nti-----------ngT-----------itl-----------e=&-----------quo-----------t;M-----------arg-----------are-----------t G-----------ibb-----------s&q-----------uot-----------;; ----------- Ar-----------tis-----------t=&-----------quo-----------t;R-----------obe-----------rt&-----------quo-----------t;;----------- M-----------edi-----------um=-----------&qu-----------ot;-----------Wat-----------er&-----------quo-----------t;;----------- P-----------ric-----------e=1-----------000-----------; -----------Gal-----------ler-----------yCo-----------mmi-----------sio-----------n=1-----------200-----------; -----------} -----------//g-----------ett-----------er -----------and----------- se-----------tte-----------r f-----------unc-----------tio-----------ns ----------- pu-----------bli-----------c v-----------oid----------- se-----------tPa-----------int-----------ing-----------Tit-----------le(-----------Str-----------ing----------- ti-----------tle-----------) -----------{ -----------Pai-----------nti-----------ngT-----------itl-----------e=t-----------itl-----------e; ----------- } ----------- pu-----------bli-----------c
Not Rated(0)