If a class represents an amount of money in US currency like

If a class represents an amount of money (in US currency like $9.99). then the amount (like $9.99) could reasonably be stored in Note. Only focus on accomplishing the objective in the statement all of them a member variable of type double a string of characters (like \"9.99\") two member variables of type int If a class represents a date (such as July 4. 1776). then the date could NOT be reasonably stored m Note. Focus only on how to accomplish what is in the statement a member variable of type double a string of characters (like \"July 4, 1776\") three member variables of type int a string tor the month and two ml variables

Solution

9 ) 9.99
Two Integer is fine I can take int x =9 , y = 99;
Double is also fine double x = 9.99;
String x = \"9.99\"

So Answer is all of them [Option a]
=======================================================================================
July 4, 1776 [Question is which canNOT Hold]
10)

1. String x = July 4, 1776 (String can hold)
2. String x = \"July \" , int y = 4 , int z = 1776; (One String and 2 Ints can hold )
3. int x = 7 , int y = 4 , int z = 1776 [ Three Integer can hold, 7 will represent July month]


Option a] A member variable of type Double

It cannot store this date So thats the Answer
=======================================================================================

Thanks, Let me know if there is any concern.

 If a class represents an amount of money (in US currency like $9.99). then the amount (like $9.99) could reasonably be stored in Note. Only focus on accomplish

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site