Implement a structure, Car. The structure has the following data member:
1. int petrolLevel – that indicates the liters of petrol in the car’s petrol tank. PetrolLevel for
this car can only be in the range 0 – 45 liters.
The structure has the following member functions:
1. void setPetrolLevel(int petrolLevelVal) – a setter for petrol level, cannot set value greater
than 45.
2. int getPetrolLevel() – a getter for petrolLevel
3. Car() – a default constructor
4. Car(int petrolLevelVal) – a parametrized constructor
5. bool MoveCar(int distanceKM) – a function that takes an integer as an argument and
moves the car to the argument value which is in Km. Provided the petrol tank has enough
fuel. Successful movement of the car returns true otherwise returns false. Moving for
each km causes the petrolLevel to go low by one.
6. void Refill() – a function that refills the car tank to the maximum value of petrolLevel
7. bool isEmpty() – a function that tells whether the Petrol tank is Empty or not
how could you make a 7.8% aqueous solution of glucose using 5.0g of glucose?
The graduate record exam is standardized test recquired to be admitted to many graduate schools in the United States. A high score in GRE makes admissions more likely. According th the educational testing service, the mean score for takers of GRE who do not have training courses is 555 with standard deviation of 139. Brain Philippine offers expensive GRE training courses, claiming their graduates score better than those who have not talen any training courses. To test the company's claim, a statisticiam randomly selected 30 graduates of BP and asked their GRE scores.
Suppose the desicion rule is “Reject Ho if the mean score of the sample d BP graduates is greater than 590 otherwise, accept Ho". Compute for the level of significance for this test. Also, find the risk of concluding that the BP graduates did not score better than 555 when in fact the mean score is 600. Use 95% confidence level.
1.State weather the following words are content/lexical words or grammatical/functional words:
a)Clean
b)Because
c)Student
d)In
e)Look
write a program to find if a given number is positive or negative in python
The first line will contain a message prompt to input the value of n.
The second line contains the sum of all odd numbers from 0 to n.
You are given the following data for the year 2016 of XYZ Co. Limited
Variable cost 600,000
Fixed cost 300000
Net profit 100,000
1000,000
Required, Find out:
a) Break-even point
b) P/V ratio
c) Margin of safety
d) Draw a break even chart showing contribution
An object of mass 4 kg is moved on a horizontal surface with a constant acceleration of 0.2m/s^2 , by a horizontal force of 6 Newtons. Find the friction force acting on the object and the coefficient of friction.
Internal energy of certain thermodynamic system is given by 𝑢 = 25 + 0.25𝑇 where T
is temperature in ℃. When the system execute a process, work done per degree
temperature change is given by 𝑑𝑊
𝑑𝑇
= 350√𝑇 N-m, find the heat transferred when the
temperature changes from 100℃ 𝑡𝑜 200℃.
Write a console application that uses at least five different method of math class. Provide a meaningful identifier of the variables are constant. Name the namespace as mathApp and it's class as mathProgram.