Given the following inheritance Diagram structure: Fruit: Apple and Orange, Apple: GoldenDelicious and MacIntosh Create a...

Given the following inheritance Diagram structure: Fruit: Apple and Orange, Apple: GoldenDelicious and MacIntosh Create a C++ Program that simulate the inheritance structure above. Fruit class should have at least two attributes name and color, getters and setters in addition to a method display() just to display the fruit details. Define the classes Apple, Orange, GoldenDelicious and MacIntosh All of which you can choose the attributes, constructors and methods of your choice, but all should have a redefinition of the method display() In the main create different objects of different classes, assign names and colors and demonstrate the dynamic binding call of the method display using (Polymorphism) GoldenDelicious MacIntosh Fruit Apple Orange

In: Computer Science

prepare statement of cash flow: Sales revenue $454,707 Sales discount $56,240 Sales return and allowance $5,687...

prepare statement of cash flow: Sales revenue $454,707 Sales discount $56,240 Sales return and allowance $5,687 Beginning inventory $251,890 Purchases $511,692 Ending inventory $628,122 Operating expenses, including depreciation of $46,500 $58,910 Income tax expense $27,280 Interest expense $4,730 Loss on disposal of plant assets $7,500

Additional data:
1.  New equipment costing $85,000 was purchased for cash during the year
2.  Old equipment having an original cost of $57,000 was sold for $1,500 cash
3.  Bonds matured and were paid off at face value for cash
4.  A cash dividend of $40,350 was declared and paid during the year

In: Accounting

20 Simple Ways to Improve Capitalism for the Better with international example

20 Simple Ways to Improve Capitalism for the Better with international example

In: Economics

Execute SQL queries to get the countries in which the population has fallen from one year...

Execute SQL queries to get the countries in which the population has fallen from one year to the next, and the years in which it has occurred. Dump the output in the following format:

| country | year |  population | year | population |

| 1 | 2005 | 82500849 | 2006 | 82437995 |

| 1   | 2006 | 82437995 | 2007 |   82314906 |

(...)

And so on.

These are the SQL files:

Tables: pastebin.com/xw0j1NAM

Data: pastebin.com/hnpFT3QR

In: Computer Science

What is the new volume if 15.50 L of neon at 25.0 degree C is heated...

What is the new volume if 15.50 L of neon at 25.0 degree C is heated to 100.0 degree C?

Show how a buffer made from formic acid (HCHO2) and formate ion (CHO2-) can neutralize added acid and added base?

In: Chemistry

Exercise 12.4: Use a browser's developer tools to view the DOM tree of the document in...

  1. Exercise 12.4: Use a browser's developer tools to view the DOM tree of the document in Fig. 12.4. Look at the document tree of your favorite website. Explore the information these tools give you in the right panel(s) about an element when you click it.

    Please use the Chrome browser:

    1. Start with the documentation for Chrome Developer Tools: https://developers.google.com/web/tools/chrome-devtools/ (Links to an external site.)Links to an external site.
    2. CodeSchool has a free course on Chrome DevTools at https://www.codeschool.com/courses/discover-devtools (Links to an external site.)Links to an external site.

Write a paragraph or two about what you learned about using the Chrome developer tools.

  1. Implement a web page that performs tip calculations. At a minimum, you will need an input element each for the original cost and for the tip rate, a button to trigger calculations, and an element for displaying the result. Use the DOM to access the elements in the web page. Do not use the prompt, alert, or document.writeln methods.

In: Computer Science

Case Study about Carbohydrate -Related Medical Problem (Diabetes Mellitus) Patient History: RX, a 6-year-old girl in...

Case Study about Carbohydrate -Related Medical Problem (Diabetes Mellitus)
Patient History: RX, a 6-year-old girl in previously good health, has noticed that, in the past
month, she is increasingly thirsty. She gets up several times a night to urinate, and finds herself
gulping down large amount of water. At the dinner table, she seems to be eating twice as much
as she used to, yet she has lost 4 kilograms in the past month. In the past three days, she has
become nauseated, vomiting on three occasions, prompting a visit to her pediatrician.
Laboratory Results:
 Fasting blood glucose level = 445 mg/dl
 blood pH level = 7.23
 Hb A1C = 9.5%
 C-Peptide Test = 0.4 ng/ml
 urine = tested positive for glucose and for acetone / acetoacetate/ beta hydroxybutyric
acid
Based on the given case, answer the following guide questions:
1. What is the relationship between Diabetes and Carbohydrates? How are carbohydrates
contributing to the patient’s diagnosis of high blood glucose level?
2. Compare and contrast the two main types of Carbohydrates. Which among the two types
can cause the biggest jump in your blood sugar and why?3. Diabetes is a metabolic disease that impacts the body’s production and/or utilization of
insulin. In Type 1 diabetes the body fails to produce insulin; whereas in Type 2 diabetes
the body produces insulin (and sometimes excessive amounts of it) but for a variety of
reasons the insulin does not function as it should. Now, give two reasons and explain why
insulin is beneficial especially for diabetic patients.
4. Explain why her blood-glucose level is elevated?
5. Why is her blood pH level decreased?
6. RX has a fruity odor to her breath. Explain why.
7. Explain why RX is urinating so frequently.
8. How is RX's condition like that of starvation? Address the role of glucagon in your
answer.
9. Based on your answer in no. 2, what foods will be highly recommended to the patient?
Explain.
10. Do you believe that you can adjust your diabetes drugs to ‘Cover’ whatever you eat?
Why?

In: Nursing

C++ You should have one main function + 4 other functions for your submission for this...

C++ You should have one main function + 4 other functions for your submission for this lab. you have no need for extra functions beyond that, and you should not have less. You may use any pre existing functions already defined in class or a previous lab.

-Write a function storeTotal(,) that takes two arguments of type double, and has a return type of type Boolean. This function will take the number 256 and divide it by the second parameter, and add the result to the first parameter. It will return true afterwards.

-You should be making mindful decisions of which parameters should be call by value and which should be call by reference.

-If dividing by the second parameter would result in a run time error, the program does not do the calculation, and instead returns false.

-Ask the user to input two numbers, one at a time, discarding excess input each time.

-The program should keep looping until the user enters valid input.

-Once the user enters input, call function storeTotal appropriately.

-Whether storeTotal runs successfully (returns true) or not (returns false), display an appropriate message.

-Output the results of the variable that is cumulating value. This number is ALWAYS displayed in scientific notation, accurate to 3 decimal places

Repeat this 2 times.

Sample Output

How much do you already have? A

Invalid Input!

How much do you already have? Bck

Invalid Input!

How much do you already have? 42.4

What is the split factor? ,!

Invalid Input!

What is the split factor? 3.5

You now have 1.155e+002

How much do you already have? 35.6

What is the split factor? 0

That didn't go well, you still have 3.560e+001

*Explanation* 256/3.5 and then added to 42.4 gives 115.54, which, in scientific notation, gives the output above.

*Note* How scientific notation is displayed can vary from compiler to compiler, as long as you are getting it done through proper knowledge of C++ then the output does not need to look exactly the same.

In: Computer Science

A sealed vertical cylinder of radius R and height h = 0.616 m is initially filled...

A sealed vertical cylinder of radius R and height h = 0.616 m is initially filled halfway with water, and the upper half is filled with air. The air is initially at standard atmospheric pressure, p0 = 1.01·105 Pa. A small valve at the bottom of the cylinder is opened, and water flows out of the cylinder until the reduced pressure of the air in the upper part of the cylinder prevents any further water from escaping. By what distance is the depth of the water lowered? (Assume that the temperature of water and air do not change and that no air leaks into the cylinder.)

In: Physics

In an attempt to reduce the extraordinarily long travel times for voyaging to distant stars, some...

In an attempt to reduce the extraordinarily long travel times for voyaging to distant stars, some people have suggested traveling at close to the speed of light. Suppose you wish to visit the red giant star Betelgeuse, which is 430 ly l y away, and that you want your 20,000 kg k g rocket to move so fast that you age only 38 years during the round trip.


How fast must the rocket travel relative to earth?


How much energy is needed to accelerate the rocket to this speed?


How many times larger is this energy than the total energy used by the United States in the year 2000, which was roughly 1.0×1020J1.0×1020J?

In: Other

On January 2, 2013, Illinois Corporation issued 200,000 new shares of its $5 par value common...

On January 2, 2013, Illinois Corporation issued 200,000 new shares of its $5 par value common stock valued at $19 a share for all of North Dakota Company's outstanding common shares. The fair value and book value of North Dakota's identifiable assets and liabilities were the same. Summarized balance sheet information for both companies just before the acquisition on January 2, 2013 is as follows: Illionois North Dakota

Cash $150,000 $240,000

Inventories 320,000 800,000

Other current assets 500,000 1,000,000

Land 350,000 500,000

Property, plant & equipment 4,000,000 3,000,000

Total Assets $5,320,000 $5,540,000

Accounts payable $1,000,000 $600,000

Notes payable 1,300,000 1,320,000

Common stock, $5 par 2,000,000 1,000,000

Additional paid-in capital 1,000,000 200,000

Retained earnings 20,000 2,420,000

Total Liabilities & Equities $5,320,000 $5,540,000

Prepare a consolidated balance sheet for Illinois Corporation immediately after the business combination.

In: Accounting

/*instructions: please do not change the general structure of the code that I already have please...

/*instructions: please do not change the general structure of the code that I already have

please write it in C programming

Define the interface for a queue ADT and implement it in two ways: one with a dummy node (or nodes) and one without.
In addition to the two standard queue functions you’ll need a function to create/initialize an empty queue,
a function to free an existing queue (which may not be empty),
and a function to return the size (number of keys) in the queue.
All functions should be as efficient as possible, e.g., the complexity of enqueue and dequeue must be O(1).
An additional requirement is that the underlying data structure should not be a doubly-linked list.*/

#include <stdio.h>
#include <stdlib.h>

typedef struct node{
int num;
struct node *next;
}Node;

typedef struct{
Node* front
Node* rear;
int size;
}Queue;

//Define the interface for a queue ADT
Queque* initializeQueque()
{
  
}

Queque* insert(int item)
{
  
}

Queque* delete()
{
  
}

void printList(Node* Q)
{
  
}

//get the size of the queque at postion [-1]
//return the size (number of keys) in the queue.
int getsize(Node* Q)
{
  
}

int main()
{
int option,item;
Node* Queque;
  
while(1){
printf("1.Insert number to queque\n2.Delete number from queque\n3.Display numbers in queque\n4.Exit\nEnter a option:");
scanf("%d",&option);
  
switch(option){
case 1:
printf("Enter the number:");
scanf("%d",&item);
Queque=insert(item);
break;
case 2:
Queque=delete();
break;
case 3:
printList(Queque);
break;
case 4:
return 1;
default:
printf("\nWrong input!\n");
break;
}
}
}

In: Computer Science

111 m3/min of hydrogen measured at normal conditions and nitrogen at a 300% excess enter an...

111 m3/min of hydrogen measured at normal conditions and nitrogen at a 300% excess enter an isobaric reactor. The inlet gases at 490°C are reacted in the presence of a catalyst to synthesize ammonia. The process has an efficiency of 33%. The exhaust gases are cooled to -40°C to condense the ammonia. Assume that the Cp of the gas phase species can be used in the temperature range, and that Cp NH3 (l) = 0.071938 kJ/mol K. Calculate the overall heat flow of the system in kW.

In: Other

Modify the program so that, rather than printing data directly to the screen, it will read...

Modify the program so that, rather than printing data directly to the screen, it will read the data into an array of car structs and then print out the contents of the array.

#include "car.h"
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>

Car GetCar(ifstream& dataIn);

// Pre:  File dataIn has been opened.

// Post: The fields of car are read from file dataIn.

void WriteCar(ofstream& dataOut, Car car);

// Pre:  File dataOut has been opened.

// Post: The fields of car are written on file dataOut,

//       appropriately labeled.  

int main ()

{

  Car  car;

  ifstream dataIn;

  ofstream dataOut;

  dataIn.open("cars.dat");

  dataOut.open("cars.out");

  cout << fixed << showpoint;

  car = GetCar(dataIn);

  while (dataIn)

  {

    car.price = car.price * 1.10f;

    WriteCar(dataOut, car);

    car = GetCar(dataIn);

  }

  return 0;

}

//*****************************************************

Car GetCar(ifstream&  dataIn)

{

  Car car;

  dataIn >> car.customer;

  dataIn >> car.price  >> car.purchased.day        

         >> car.purchased.month  >> car.purchased.year;

  dataIn.ignore(2, '\n');

  return car;

}

                                                            

//*****************************************************

void  WriteCar(ofstream&  dataOut, Car  car)

{

  dataOut << "Customer: " << car.customer << endl

    << "Price:    " << car.price << endl

    << "Purchased:"  << car.purchased.day << "/"

    << car.purchased.month << "/"

    << car.purchased.year << endl;

}

.h file

#include <string>

struct PersonType {
    std::string firstname;
    std::string lastname;
};

struct Date
{
  int month;
  int day;
  int year;
};

struct Car
{
  float price;
  Date purchased;
  PersonType customer;
};

In: Computer Science

Two stationary positive point charges, charge 1 of magnitude 4.00nC and charge 2 of magnitude 1.70nC...

Two stationary positive point charges, charge 1 of magnitude 4.00nC and charge 2 of magnitude 1.70nC , are separated by a distance of 39.0cm . An electron is released from rest at the point midway between the two charges, and it moves along the line connecting the two charges.

What is the speed vfinal of the electron when it is 10.0cm from charge 1?

In: Physics