a) Write a method PopulationTotal that accepts 2 positive values, namely the current
population and the growth rate . The method determines and returns the total population based on the current
population and growth rate.
b) Write a method Over180Million that accepts a positive value representing the population. The method determines whether the population is over 180 million people, and returns
a value of true if this is so, otherwise returns a value of false.
c) Write a program that requests the user for a year (you can assume the year will always be at
least 2000), the population of Brazil in that year and the annual
population growth rate (always as a real number in the range 0 – 1), and then uses the two
methods written above to determine and display the year in which Brazil’s population first
exceeded/exceeds 180 million people. The program must also display Brazil’s total population
in this year.
a) Write a method GetOneStudent that asks a student for both of his/her WRAV101 and
WRSC111 marks (each as a real number). The method must return both of these marks. The
method must ensure that each of the marks is in the range 0 to 100.
b) Write a method CanContinue that takes as input two marks, one for WRAV101 and one for
WRSC111. Each of these marks is in the range 0 to 100. The method must return the value
true if both of these marks are at least 50, otherwise the method must return the value false.
c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one
for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with
the second semester modules (use CanContinue above), an appropriate message and the
average mark for the two modules is displayed, otherwise the student is informed that he may
not continue.
When a particle is located a distance x meter from the origin, a force F( x )(newton) acts on it. Given F'(x) = 16.3.arctan(x - 8.5), F(8.5)=0. How much work is done in moving it from x=0 to x=8.5.
.
In basic solution, hypochlorite ions, oxidize chromite ions, to chromate ions, and are reduced to chloride ions. Write the balanced net ionic equation for this reaction.
Write a program to overload operators in the same program by writing suitable operator member functions for following set of expressions:
O5= (O1/O2) *(O3+O4)
[Here O1,O2,O3,O4 and O5 are objects of a class “overloading”, and this class is having one integer data member]
"x+\\sqrt{12-\\sqrt{x}}=12"
Solve this equation for x.
Please provide the full steps.
The weights of a large number of miniature poodle are approximately normally distributed with a mean of 8 kilograms and a standard deviation of 0.9 kilograms. If measurements are recorded to the nearest tenth of a kilogram, find the fraction of these poodle
Write a program to overload operators in the same program by writing suitable operator member functions for the following set of expressions:
O5=(O1/O2)*(O3+O4)
(Here O1,O2,O3,O4 and O5 are objects of a class overloading and this class is having one integer data member
A real estate agent wishes to determine whether tax assesso s and real estate appraisers agree on the values of homes. A random sample of the two g oups appraised 10 homes. Is there a significant difference in the values of the homes for each group? Let a = 0.05. Assume the data are from normally distributed populations.
Reference Points
x
s
n
Starting Salaries
Real Estate Appraisers
php 83 256
php 3256
10
Tax Assessors
php 88 354
php 2341
10
Sketch the region enclosed by the given curves. Decide whether to integrate with respect to x or y. Then find the area of the region.
2y = 4sqrt(x), y=5 and 2x + 2y =6.