Task:
Write a program that creates a class Apple and a tester to make
sure the Apple class is crisp
and delicious.
Instructions:
First create a class called Apple
The class Apple DOES NOT HAVE a main method
Some of the attributes of Apple are
o Type: A string that describes the apple. It may only be of the
following types:
Red Delicious
Golden Delicious
Gala
Granny Smith
o Weight: A decimal value representing the apple’s weight in
kilograms. The
weight must be between 0kg and 2kg
o Price: The price per apple. This must be a nonnegative decimal
value.
Create the Default Constructor – sets everything to default
values and has no
parameters.
Create Accessors and Mutators for each instance variable
o MAKE SURE THE MUTATORS CHECK FOR VALID VALUES!
Create the following Methods
o toString() : Displays the values of the instance variables on the
console.
Finally create a class called AppleTester
This class DOES HAVE a main method
Create at least 3 different types of apples
Test if the accessors, mutators, and other methods work as
intended.
Sample Output:
Welcome to the apple tester!!!
Creating the first apple!
Default values of the first apple object:
Type: Gala
Weight: 0.5 kg
Price: $0.88
Creating the second apple object!
Enter the type of the second apple object:
Granny Smith
Enter the weight of the second apple object:
0.7
Enter the price of the second apple object:
1.45
Values of the second apple object:
Type: Granny Smith
Weight: 0.7 kg
Price: $1.45
Creating the third apple object!
Enter the type of the third apple object:
Banana
Invalid value for type!
Enter the weight of the third apple object:
3.5
Invalid value for weight!
Enter the price of the third apple object:
2.22
Invalid value for price!
Printing the third apple’s values which should have not changed
from the default values
Retrieving the third apple object's type: Gala
Retrieving the third apple object's weight:0.5 kg
Retrieving the third apple object's price:$0.88
Note: may you copy and paste the code once you are done, thanks,
also may you complete it within 4 hours please.
Immediate upvote.
In: Computer Science
CASE STUDY 3
Marvis is a 29-year-old G1 P0 in labor at 40 weeks of gestation. She was admitted at 0200 with a history of contractions since 2200 the night before. On admission she denied spontaneous rupture of membranes or vaginal bleeding. She felt good fetal movement. Her vital signs and the fetal heart rate were normal. Her contractions were every 6 minutes and lasting 30 seconds. Her cervical examination was 2 cm/70%/−2 vertex. It is now 0600 and she has been reexamined. Her cervical examination is now 3 cm/90%/−2 vertex. Her contractions are now every 4 to 5 minutes lasting 60 seconds. She states they are still mild. Marvis has stated that she wants a natural unmedicated birth.
In what stage of labor is Marvis?
Marvis expresses disappointment in her progress. What can the nurse do to help her at this point in labor?
It is now 1000 and Marvis states the contractions have become
much stronger. She now needs to use breathing techniques to cope
with the contractions. She declines pain medication. Her cervical
examination is now 5/100/0.
What stage of labor is Marvis in at this time?
What nursing care is indicated at this phase of labor?
Marvis is now perspiring profusely and shaky. She feels she can't cope any longer. She pushes away her husband as he tries to rub her back. An increased amount of bloody show is present. She also reports a gush of fluid. Even without a cervical examination, what phase of labor is Marvis most likely in?
In: Nursing
|
Price Today, A |
Price Today, B | State Tomorrow | Probability | Price Tomorrow, A | Price Tomorrow, B |
| 30 | 20 | Good | 0.5 | 60 | 40 |
| Bad | 0.5 | 15 | 5 |
1a). Given the following information, calculate the correlation coefficient between the returns on
stocks A and B
a. 0
b. 0.25
c. 0.5
d. 0.75
e. 1
1b). Calculate expected return and standard deviation of the portfolio that is allocated 40% to A, 60% to B.
In: Finance
1. On January 1, 2020, North Country Co issued 10-year, 7 percent bonds with a face value of $1 million. The market rate for bonds of this class at the time of issue was 8%. Interest is payable annually, with the first payment due on December 31, 2020.
a. Compute the issue price of the bonds.
b. Show the journal entry to record the issuance of the bonds on January 1.
c. Show the journal entry to record the first interest payment.
In: Accounting
History/ Information Past medical history: Patient is apparently healthy woman who has been married for two years. She denies surgery or previous health problems except for occasional episodes of asthma that resolve with albuterol inhaler as needed. Her last inhaler use was 2 weeks ago. She denies smoking, recreational drug use or alcohol use. No known drug allergies. Familiar history: Mother: hypertension at age 40; hysterectomy at age 42 and diabetes at age 45 Father: myocardial infarction at age 58 Labor and Delivery This patient is a 35-year-old female gravida 1, para 0. She is 37 weeks and pregnant with twins. Her blood type is A negative. She has a history of occasional episodes of asthma and has used the inhaler three times this pregnancy. The patient was diagnosed with preeclampsia at 30 weeks gestation and is scheduled for an augmentation of labor. The patient had blood pressure reading reaching 150/95 and a trace urine protein noted. A urinary catheter was inserted following the epidural anesthesia and removed prior to the second stage of labor. The patient delivered twins (Twin A-boy and Twin B- girl) vaginally after 16 hours of labor, both cephalic presentations. Twin A weighed 7 pounds 3 ounces and Twin B weighed 7 pounds 6 ounces. She had an episiotomy with a third degree extension that was repaired. No other lacerations were indicated on the delivery record. Estimated blood loss was 700ml. There was unusual bleeding or blood clots noted upon fundal massage. Postpartum Assessment After 2 hours the patient was transferred to the postpartum unit with husband and twins at bedside. The patient is oriented to the room and a new perineal pad is applied to the patient during the initial assessment. After one hour the patient press the call light and states she feels blood dripping down her leg. Upon assessment you note a boggy uterus deviated to the right side, her pad is saturated, and there is a constant flow of blood. You perform a fundal massage and the uterus is firm after 2 minutes. You apply a new pad and inform the patient that you will return in 15 minutes. After 15 minutes you return to the patient room to assess her bleeding. The pad is saturated again, fundus is boggy, abdomen is distended and you notice blood clots. The palms of her hands are sweaty , she’s complaining of abdomen pain and feeling dehydrated. The patient and the husband are concern about her condition. Questions: 1. What is your plan of action of this patient? 2. How would you explain this situation to the patient and her husband? 3. Would you consider calling the physician and why? 4. Would orders do you anticipate the physician to order and why? 5. What would be the primary nursing diagnosis?
In: Nursing
Required information
[The following information applies to the questions displayed below.]
Web Wizard, Inc., has provided information technology services for several years. For the first two months of the current year, the company has used the percentage of credit sales method to estimate bad debts. At the end of the first quarter, the company switched to the aging of accounts receivable method. The company entered into the following partial list of transactions during the first quarter.
| Number of Days Unpaid | ||||||||||||||||
| Customer | Total | 0–30 | 31–60 | 61–90 | Over 90 | |||||||||||
| Alabama Tourism | $ | 200 | $ | 100 | $ | 80 | $ | 20 | ||||||||
| Bayside Bungalows | 350 | $ | 350 | |||||||||||||
| Others (not shown to save space) | 16,000 | 6,300 | 7,900 | 1,000 | 800 | |||||||||||
| Xciting Xcursions | 400 | 400 | ||||||||||||||
| Total Accounts Receivable | $ | 16,950 | $ | 6,800 | $ | 7,980 | $ | 1,020 | $ | 1,150 | ||||||
| Estimated Uncollectible (%) | 3 | % | 15 | % | 20 | % | 40 | % | ||||||||
Required:
For items (a)–(j), analyze the transaction to determine effects on specific financial statement accounts and the overall accounting equation. (Enter any decreases to Assets, Liabilities, or Stockholders Equity with a minus sign. Do not round intermediate calculations.)
In: Accounting
Muscles are controlled by the nervous system. Muscles also send
information back to the nervous system.
i. Describe one piece of information that muscles send back to the
nervous system and a specialized receptor cell that detects and
conveys that information. (1 point)
Many songbirds are sexually dimorphic: only male songbirds sing.
The brains of male and female songbirds are different, too: the
motor cortex of males is twice as big as the motor cortex in
females. However, if you inject a female songbird with testosterone
when she is young she will learn to sing and her motor cortex will
be bigger, but not if you wait to inject her with testosterone
until she is an adult. This process is called
masculinization.
ii. What stage of development do you think is particularly
important for the masculinization of the female songbird’s motor
cortex and why? (2 point)
Each songbird can produce 100 unique notes, which are simple
movements akin to a monkey pointing its finger to a point in space.
A bird creates a song by picking 5 of these 100 notes and singing
them one after the other. Imagine that you’re a scientist recording
from all 1000 neurons in a songbird’s motor cortex.
iii. How many unique notes do you think a single neuron in the
motor cortex would typically be active during? (1 point)
You want to decode what note a bird is singing by observing the
activity of 1000 motor cortex neurons. During the first phase, you
are allowed to observe the activity of all 1000 neurons as the bird
sings each of its 100 notes a few times. In the second phase, the
bird is placed in a sound proof room and he will sing 1 note.
iv. Why is the first phase important? (2 point)
v. How will you use what you learned during the first phase to know
what note the bird is singing in the second phase? (1 point)
In: Biology
Web Wizard, Inc., has provided information technology services for several years. For the first two months of the current year, the company has used the percentage of credit sales method to estimate bad debts. At the end of the first quarter, the company switched to the aging of accounts receivable method. The company entered into the following partial list of transactions during the first quarter.
| Number of Days Unpaid | ||||||||||||||||
| Customer | Total | 0–30 | 31–60 | 61–90 | Over 90 | |||||||||||
| Alabama Tourism | $ | 200 | $ | 100 | $ | 80 | $ | 20 | ||||||||
| Bayside Bungalows | 400 | $ | 400 | |||||||||||||
| Others (not shown to save space) | 17,000 | 6,800 | 8,400 | 1,000 | 800 | |||||||||||
| Xciting Xcursions | 400 | 400 | ||||||||||||||
| Total Accounts Receivable | $ | 18,000 | $ | 7,300 | $ | 8,480 | $ | 1,020 | $ | 1,200 | ||||||
| Estimated Uncollectible (%) | 2 | % | 10 | % | 20 | % | 40 | % | ||||||||
Required:
For items (a)–(j), analyze the transaction to determine effects on specific financial statement accounts and the overall accounting equation. (Enter any decreases to Assets, Liabilities, or Stockholders Equity with a minus sign. Do not round intermediate calculations.)
In: Accounting
Required information
[The following information applies to the questions displayed below.]
Web Wizard, Inc., has provided information technology services for several years. For the first two months of the current year, the company has used the percentage of credit sales method to estimate bad debts. At the end of the first quarter, the company switched to the aging of accounts receivable method. The company entered into the following partial list of transactions during the first quarter.
| Number of Days Unpaid | ||||||||||||||||
| Customer | Total | 0–30 | 31–60 | 61–90 | Over 90 | |||||||||||
| Alabama Tourism | $ | 200 | $ | 100 | $ | 80 | $ | 20 | ||||||||
| Bayside Bungalows | 460 | $ | 460 | |||||||||||||
| Others (not shown to save space) | 18,200 | 7,400 | 9,000 | 1,000 | 800 | |||||||||||
| Xciting Xcursions | 400 | 400 | ||||||||||||||
| Total Accounts Receivable | $ | 19,260 | $ | 7,900 | $ | 9,080 | $ | 1,020 | $ | 1,260 | ||||||
| Estimated Uncollectible (%) | 2 | % | 15 | % | 20 | % | 40 | % | ||||||||
Required:
For items (a)–(j), analyze the transaction to determine effects on specific financial statement accounts and the overall accounting equation. (Enter any decreases to Assets, Liabilities, or Stockholders Equity with a minus sign. Do not round intermediate calculations.)
In: Accounting
Web Wizard, Inc., has provided information technology services for several years. For the first two months of the current year, the company has used the percentage of credit sales method to estimate bad debts. At the end of the first quarter, the company switched to the aging of accounts receivable method. The company entered into the following partial list of transactions during the first quarter.
| Number of Days Unpaid | ||||||||||||||||
| Customer | Total | 0–30 | 31–60 | 61–90 | Over 90 | |||||||||||
| Alabama Tourism | $ | 200 | $ | 100 | $ | 80 | $ | 20 | ||||||||
| Bayside Bungalows | 400 | $ | 400 | |||||||||||||
| Others (not shown to save space) | 17,000 | 6,800 | 8,400 | 1,000 | 800 | |||||||||||
| Xciting Xcursions | 400 | 400 | ||||||||||||||
| Total Accounts Receivable | $ | 18,000 | $ | 7,300 | $ | 8,480 | $ | 1,020 | $ | 1,200 | ||||||
| Estimated Uncollectible (%) | 2 | % | 10 | % | 20 | % | 40 | % | ||||||||
Required:
For items (a)–(j), analyze the transaction to determine effects on specific financial statement accounts and the overall accounting equation. (Enter any decreases to Assets, Liabilities, or Stockholders Equity with a minus sign. Do not round intermediate calculations.)
In: Accounting