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
Discuss the characteristics of relations that make them different from ordinary tables and files
zmey [24]

<span>Ordering of tuples in a Relation : </span>The tuples are not considered to be in order, even though they appear to be in the tabular form. The Ordering of attributes in a relation schema R and of values within each tuples - We consider the attributes in R(A1, A2, .., An) and the values in t=<v1, v2, .., vn> to be in order. Values in a tuple :  All values are considered to be indivisible (atomic). A special null value is used to represent values that are unknown or not applicable to certain tuples.

5 0
3 years ago
Which segment is most likely set at 1.0 spacing
PilotLPTM [1.2K]
The correct answer is B.
4 0
3 years ago
MAN on metropolitan area network is a network spanning a large distances of a few kilometre like a city true or false​
ser-zykov [4K]

Answer:

True

Explanation:

It is True

8 0
3 years ago
Adding effects that move your text or pictures in your presentation is called:
iVinArrow [24]
The answer should be it’s a transitionl
7 0
3 years ago
What do you think is the most fascinating aspect of the internet?
timofeeve [1]
I think the most fascinating aspect of the internet is the information it produces. You can access information on different topics from the comfort of your own home, office or anywhere else. Think of a world without the internet. A world without the internet will loose a lot of it's people daily. The reason is because, imagine if there is a tsunami coming. Because there is no internet, many people will not know the weather forecast. The only people that will hear about the tsunami are those that work with satellite networks. So then, what will happen? A country can have it's people wiped out, and have only satellite network workers  left. What if there are only two satellite network workers and they can't have kids. So that country will be wiped out because of the fact that they didn't have access to information. Hope i helped. 
7 0
3 years ago
Other questions:
  • Write one line of code to print animals, an array of Animal objects.
    14·1 answer
  • Explain why the control bus is not a bus.
    7·1 answer
  • Which sns gets its names from one of its unique features
    15·1 answer
  • Describe markings on a road that indicate that it is safe to pass.
    10·1 answer
  • Brainliest for whoever adds me on snap<br> gianavaughn007
    15·2 answers
  • How does leadership play a role in IT management? How does leadership need to be aligned to the company’s goals for IT managemen
    9·1 answer
  • 4) Short answer questions<br>c) What is Cyber Law?​
    7·1 answer
  • So this is what i use to code and all of that
    10·1 answer
  • Explain the working principle of computer with suitable diagram​
    15·1 answer
  • What the difference between an operating system drive and a storage drive?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!