1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sergio039 [100]
3 years ago
10

. Create an abstract Dollar class with two integer attributes, both of which are non-public (Python programmers - it is understo

od that there is nothing private in Python but try to not access the attributes directly from outside the classes). The int attributes will represent whole part (or currency note value) and fractional part (or currency coin value) such that 100 fractional parts equals 1 whole part.
Computers and Technology
1 answer:
aksik [14]3 years ago
4 0

Answer:

Explanation:

The following code is written in Java. It creates the abstract dollar class that has two instance variables for the dollars and the coins that are passed as arguments. The test output can be seen in the picture attached below.

class Dollar {

   int dollars;

   double coin;

   private Dollar(int dollar, int coin) {

       this.dollars = dollar;

       this.coin = Double.valueOf(coin) / 100;

   }

   

}

You might be interested in
What I Can Do
Debora [2.8K]

Step 1.

Purchase Requlsition

Step 2.

Requisition Review

Step 3.

Solicibation process

Step 4.

C'valuation and process

Step 5.

Order Management

Step 6.

Involve approvals and disputes

Step 7.

Record Keeping

Explanation:

Hope it help

8 0
2 years ago
What is the primary difference among a domain model, an analysis model, and a design model for the same project?
Aleks04 [339]

Answer:

The design model is the description of the model to be implemented, the analysis model is the model that links the design and the system or domain model while the domain model is the entire software implementation.

Explanation:

The domain model is the conceptual aspect of software engineering that comprises operational and data features. The analysis model is the schematic description of the system that links the design model to the system domain. The design model is also known as the object model as it shows an abstract representation of the implementation. It helps to test the quality of the software been developed.

8 0
3 years ago
Mikaya works in the planning department
Sonja [21]

Answer:

I don't understand need more information mate.

Explanation:

5 0
3 years ago
Read 2 more answers
List the steps to create a new folder in windows
Oksanka [162]

Navigate to where you want to create the new folder, and click New Folder. Type the name of your folder, and press Enter. To save a document to the new folder, open the document, and click File > Save As, and then browse to the new folder, and click Save.

8 0
3 years ago
8. SQL, Oracle Report, and Visual Basic are all examples under the
Marat540 [252]
I am pretty sure the answer is the second gen
3 0
2 years ago
Other questions:
  • Why does the PC send out a broadcast ARP prior
    14·1 answer
  • The animation industry is solely reliant on 3-D modeling and 3-D virtualization to create the animated movies in the cinemas.
    9·2 answers
  • Filtering removes data from the spreadsheet. A. True B. False
    9·2 answers
  • T.J. wants to send a friend a file with a funny dancing cat. Which file format should T.J. use?
    13·2 answers
  • Holly has at most $828 to spend for moving from her old apartment. The moving company charges $80 per hour plus at rate of $300.
    9·1 answer
  • When you connect a device to your computer for the first time, Windows Media Player selects the ____ method that works best for
    15·2 answers
  • The gene form of a trait is called a(n) ​
    10·1 answer
  • What does XD mean? I keep seeing people say it and I dont know what it means
    6·2 answers
  • Select the correct answer.
    13·1 answer
  • You are the network administrator for a rapidly growing company with a 100BaseT network. Users have recently complained about sl
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!