Answer: Thats alright bro keep yo head up
:
Answer:
Harmful effect associated with extraction of Aluminum, Gold and Copper are:
During the melting of aluminium there is a released of per fluorocarbon are more harmful than carbon dioxide in the environment as they increased the level of green house gases and cause global warming. The process of transforming raw material into the aluminium are much energy intensive.
Gold mining industries destroyed land scopes and increased the amount of toxic level in the environment and they also dump there toxic waste in the natural water bodies, which increased the level of water pollution in the environment.
Copper mining causes the health problems like asthma and problem in respiratory system because of the inhalation of silica dust. It also increased the level of sulfur diode in the environment which cause acid rain and destroyed various trees and buildings in the nature.
Answer:
point B where has the largest Q value at section a–a
Explanation:
The missing diagram that is suppose to be attached to this question can be found in the attached file below.
So from the given information ;we are to determine the point that has the largest Q value at section a–a
In order to do that; we will work hand in hand with the image attached below.
From the image attached ; we will realize that there are 8 blocks aligned on top on another in the R.H.S of the image with the total of 12 in; meaning that each block contains 1.5 in each.
We also have block partitioned into different point segments . i,e A,B,C, D
For point A ;
Let Q be the moment of the Area A;
SO ;
where ;
For point B ;
Let Q be the moment of the Area B;
SO ;
where ;
For point C ;
Let Q be the moment of the Area C;
SO ;
where ;
For point D ;
Let Q be the moment of the Area D;
SO ;
since there is no area about point D
Area = 0
Thus; from the foregoing ; point B where has the largest Q value at section a–a
Answer:
- #include <iostream>
- #include <fstream>
- using namespace std;
- void getNameAndHoursParked(string &name, int &hour){
- cout<<"Enter employee name: ";
- cin>>name;
- cout<<"Enter parking hours: ";
- cin>>hour;
- }
- bool isVehicleNotAnRV(){
- int response;
- cout<<"Is vehicle an RV: (1) Yes (2) No: ";
- cin>>response;
-
- if(response == 1){
- return true;
- }else{
- return false;
- }
- }
- double getFinalCharge(int hour, bool rv){
- double charge;
-
- if(hour <=8){
- charge = 24;
- }
- else{
- hour = hour - 8;
- charge = 24 + hour * 3.25;
- }
-
- if(rv==true){
- charge += 10;
- }
-
- if(charge > 70 ){
- charge = 70;
- }
-
- return charge;
- }
- int main()
- {
- string employeeName;
- int hour;
- bool rv;
- double final_charge;
-
- getNameAndHoursParked(employeeName, hour);
- rv = isVehicleNotAnRV();
- final_charge = getFinalCharge(hour, rv);
-
- ofstream file;
- file.open ("charge-report.txt");
- file << "Customer name: " + employeeName + "\n";
- file << "Parking charge $"<< final_charge;
- file.close();
-
- return 0;
- }
Explanation:
Firstly, write the function getNameAndHoursParked to get employee name and number of parking hour. To enable pass by reference, the two parameters of this function are the reference variables (Line 6 - 11). These reference variables, name and hour, are associated with the variable employeeName and hour in the Main Program. Any values assigned to the two reference variables in the function will directly be set to employeeName and hour in the Main Program.
Next create a function isVehicleNotAnRV to enable user to input if a vehicle is a RV or not and return either true or false (Line 13 - 23).
Next create getFinalCharge function and create if else if statements to consider multiple parking hour options and apply the formula to calculate and return the total charge (Line 25 -45).
In the main program, declare all the required variables and call the functions to get all the required parking info (Line 49 - 56). Lastly output employee name and final charge to a file (Line 58 - 62).