Questions
Using C++ If you have 2 plants (A and B) with the hight of plant A...

Using C++

If you have 2 plants (A and B) with the hight of plant A is less than the hight of plant B. However, the hight of plant A is growing faster than the hight of plant B (the hight is measured in centimetres and the hight growth rate is matured daily). Write a program that prompts the user to enter the hight and the hight growth rate of each plant. The program should check that the hight of plant A is less than the hight of plant B and that the growth rate of plant A is higher than the growth rate of plant B and it should not work otherwise. The program outputs after how many days the hight of plant A will be greater than or equal to the hight of plant B, and the hight of both plants at that time.

A sample input and output is as follows:

First Run:

Enter the hight of plan A (in centimetres): 26

Enter the hight growth rate of plant A: 0.04 Enter the hight of plant B: 25

Enter the hight growth rate of plant B: 0.02

Plant A hight should be less than plant B hight and plant A growth rate should be higher than plant B growth rate.

Second Run:

Enter the hight of plan A (in centimetres): 22

Enter the hight growth rate of plant A: 0.04

Enter the hight of plant B: 25

Enter the hight growth rate of plant B: 0.02

The hight of plant A will be greater than or equal to the hight of plant B after 7 days.

Plant A hight will become 28.9505

Plant B hight will become 28.7171

In: Computer Science

Justify the statement “Spam detection is perhaps the classic example of pattern recognition”.

Justify the statement “Spam detection is perhaps the classic example of pattern recognition”.

In: Computer Science

Question1: Define a class Human that contains: - The data fields "first name" and "last name"...

Question1: Define a class Human that contains: - The data fields "first name" and "last name" - A constructor that sets the first and last name to the instance variables. Create also a no-argument constructor - A getName() method which prints the first and last name Define the class Student which inherits Human and contains: - Private data field "mark" of type integer and a constructor which calls the superclass constructor Define the class Worker which inherits Human and contains: - Private date fields "wage" and "hours worked", and a constructor which calls the superclass constructor - A setWageInfo() method which sets the wage information to the instance variables - A calculateWage() method which calculates a worker’s salary based on wage and hours worked Write a program called HumanTest that instantiates two Human objects (one using the noargument constructor and another using the constructor with parameters). Call the method getName(). Create a Student object which calls the getName() method. Create a Worker object which calls the methods getName(), setWageInfo(), and claculateWage().

In: Computer Science

16. Explain the concept of Globalization Strategy and provide real examples. 17. Explain the concept of...

16. Explain the concept of Globalization Strategy and provide real examples.

17. Explain the concept of Service Technology and provide examples.

18. Explain the concept of Virtual Network Structure and provide examples.

19. Explain the difference between the concepts of Business Management and Technology Management. Provide examples.

20. Concepts such as ‘civic responsibility,’ ‘social responsibility;’ what do they have in common? Provide examples.

In: Operations Management

Write a introduction or conclusion talking about the importance of communication in social work practice in...

Write a introduction or conclusion talking about the importance of communication in social work practice in your own word. 5-6 sentence

In: Psychology

Prepare an ONE Page Reflection on Perceiving Depth and Size

Prepare an ONE Page Reflection on Perceiving Depth and Size

In: Psychology

Consider the different grief models and Bonanno's book, what are some things you can do/think or...

Consider the different grief models and Bonanno's book, what are some things you can do/think or not do/think that will improve your chances of having a resilient response to the loss.

In: Psychology

argument for and against why viruses are alive

argument for and against why viruses are alive

In: Biology

Paul plays video games only with his young daughter and never alone. For this reason, he...

Paul plays video games only with his young daughter and never alone. For this reason, he always buys exactly two controllers with each purchase of a new gaming console. Otherwise he does not get any utility from owning consoles or controllers.

f) Find the Total, Income and Substitution effect on consoles, associated with the price decrease in consoles. Provide the economic interpretation behind your results. g) Find the Total, Income and Substitution effect on consoles, associated with the price decrease in consoles. Provide the economic interpretation of your results. h) Find the Total, Income and Substitution effect on controllers, associated with the price decrease in consoles. Provide the economic interpretation of your results. i) Verify that the Slutsky equation holds for both goods.

In: Economics

ou have announced the release of a new technology within your company that will be implemented...

ou have announced the release of a new technology within your company that will be implemented 30 days after the announcement.
You have heard employees are concerned about the complexity of the new tool. What steps do you take to minimize the anxiety and stress they are feeling?

In: Operations Management

Question 2: Design a class named Square that contains data fields side and surfaceArea, and a...

Question 2: Design a class named Square that contains data fields side and surfaceArea, and a method called getSurfaceArea(). Create a child class named Cube. Cube contains a getCubeSurfaceArea() method that calculates the cube surface area. Write a program called DemoSquare that instantiates a Square object and a Cube object and displays the surface areas of the objects. Use the methods created to set the value of the side, and return the surface area. Hint: square area= side*side, Cube surface area= 6 × side2

In: Computer Science

Explain similarities and differences between assurance and security in a Supply Chain. Explain the distinction between...

  1. Explain similarities and differences between assurance and security in a Supply Chain.
  1. Explain the distinction between accounting principles and auditing standards.
  1. Explain the distinction between the Generally Accepted Accounting Principles and the International Financial Reporting Standards.
  1. Explain the Commerce Clause of the U.S.A. Constitution and the importance to business activities.

In: Operations Management

please make sure you do all questions and you have the right answers. 1- A parallel-plate...

please make sure you do all questions and you have the right answers.

1- A parallel-plate capacitor is connected to a battery. The space between the two plates is empty. If the separation between the capacitor plates is tripled while the capacitor remains connected to the battery, what is the ratio of the final stored energy to the initial stored energy?
.....

-------------------------------

2- Design a 0.4 µF parallel-plate capacitor with air between the plates that can be charged to a maximum potential difference of 1160 V.

(a) What is the minimum possible separation between the plates?
..... mm

(b) What minimum area must the plates of the capacitor have?
...... m2

In: Physics

why it is important to understand the legal and regulatory implications associated with the health care...

why it is important to understand the legal and regulatory implications associated with the health care system (health care delivery and health insurance)?

In: Operations Management

Design an algorithm that minimises Ccmp, the number of comparisons of two books’ labels in the...

Design an algorithm that minimises Ccmp, the number of comparisons of two books’ labels in the alphabetical order, and Cmov, the number of book movements (one movement is counted whenever a book is moved from one location to another) in the worst case. Suppose there arenbooks on the main shelf, which haveal ready been sorted in an ascending alphabetical order. The m newly arrived books are carried into the library on a portable shelf.

a) Scenario 1: The newly arrived books have also been sorted in an ascending alphabetical order and you are allowed to use a temporary shelf of an infinite capacity. Design an algorithm (description + pseudo code) for the robot to arrange the new books onto themain shelf using Ccmp=Θ(n+m) label comparisons and Cmov=Θ(n+m) book movements in the worst case. Explain why your algorithm has the stated worst case complexity (ignoring the constant and choosing the dominant term in your analysis).

Algorithm ArrangingBooksScenario1(A,B,C,n,m)

//A,B, and C represent the arrays of book labels for the main, the portable, and the temporary shelves

//COMPLETE WITH YOUR PSEUDO CODE HERE

b) Scenario 2: There is no temporary shelf to use in the library and the number of newly arrived books,m, is a small constant compared ton, for instance,m=10. Design an algorithm (description + pseudo code) for the robot to arrange the new books onto the main shelf using Ccmp=Θ(log(n)) label comparisonsin the worst case. What is the number of book movements Cmov incurred in the worst-case of your algorithm and why?

Algorithm ArrangingBooksScenario2(A,B,n,m)

// A and B represent the arrays of book labels for the main and the portable shelves

//COMPLETE WITH YOUR PSEUDO CODE HERE

P/s: I have already posted this question, but haven't received a useful idea for it. So, please help me with a useful idea and more detailed pseudocode.

In: Computer Science