Answer:
Vehicle Dynamics for use with MATLAB/Simulink (VDMS) is a lumped-parameter, 15 degrees-of-freedom vehicle simulation program that reads input files containing chassis, suspension kinematics and compliances, tire, driveline, and aerodynamic inputs.
Explanation:
hope it helps you
Explanation:
1. Circumference of the handle (where the effort is applied) is pi times diameter.
C = πd
C = 1.5π inches
C ≈ 4.71 inches
2. Mechanical advantage is the ratio of distance in over distance out.
MA = din / dout
MA = 1.5 / 0.25
MA = 6
3. Mechanical advantage is the ratio of force out over force in.
MA = Fout / Fin
6 = Fout / 10 lb
Fout = 60 lb
Answer:
(b) kJ/kg
Explanation:
The ratio of amount of energy required to change the temperature of the substance by certain magnitude and this magnitude of temperature change is known as heat capacity of the substance.
The expression for Heat capacity is:
C=E/ΔT
Where,
C is the Heat capacity
E is the energy absorbed/released
ΔT is the change in temperature
<u>The SI unit of heat capacity is J/K.</u>
(a) Tons represents the unit of mass (1000 kg)
(c) kW represents the unit of power (1000 W)
(d) Btu represents the unit of heat (1055 J)
<u>The units from the options that can be a unit of heat capacity is (b) kJ/kg.</u>
Answer:
1. Oil
2. Grease
3. Penetrating Lubricants
4. Dry Lubricants
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).