Matlab program which will determine your vehicle fuel usage

Assignment Help MATLAB Programming
Reference no: EM13166250

Create a MATLAB program which will determine your vehicle fuel usage (MPG, miles/gallon) rating for a user defined number of trips ('for' repetition structure). Review the voiceover supplied for an example of the required input/output from this program. This includes max and min MPG ratings and the trips during which they occurred.

Write a MATLAB program which converts a user-entered temperature value into Celsius, Fahrenheit, Kelvin and Rankine values. The user must input temperature in either 'C' or 'F'. If the input temperature is less than zero Celsius, display the message 'freezing'; if above 40 C 'very hot'; if above 100 C 'boiling'; if below zero Kelvin or zero Rankine display 'impossible'. If the user does not enter either 'C' or 'F' with their temperature input the program should output a message indicating that Kelvin is assumed. This might involve the use of a 'logical' operator (and, or ,not; &,|,~) for exampl

if units~='C' & units ~= 'F'
        fprintf('you did not enter correct units, Kelvin assumed\n')
end

Revise your C-F-K-R temperature conversion program to allow an indeterminate number of repetitions (via 'while' structure. The user should be asked 'Do you wish to repeat this program'. ) In addition to the original program output, the program should determine and output the average temperature as well as the maximum and minimum temperatures converted

 

 

Reference no: EM13166250

Questions Cloud

What challenges think a computer forensic analyst : what challenges you think a computer forensic analyst and prosecutors would face when trying a case that involves digital evidence?
Define inherent risk and residual risk : To test this control, identify the population from which you should select a sample to test this control and for a given sample unit in this population, what would be an "error"?
State a lighter molecule will move faster : The average kinetic energy of the molecules in a gas sample depends only on the temperature, T. But given the same kinetic energies, a lighter molecule will move faster than a heavier molecule.
Biggest payoff of these social network style tools : .“The biggest payoff of these social network style tools may prove to be better performance by the boss.” State whether or not this statement justifies the time and cost of implementing these systems and provide a rationale.
Matlab program which will determine your vehicle fuel usage : Create a MATLAB program which will determine your vehicle fuel usage (MPG, miles/gallon) rating for a user defined number of trips ('for' repetition structure). Review the voiceover supplied for an example of the required input/output from this progr..
Explain what is the root mean square speed : If He(g) has an average kinetic energy of 4610 J/mol under certain conditions, what is the root mean square speed
Democratic-authoritarian-communist and capitalist : What major governmental changes do you see occurring in Mexico, Brazil, and Argentina, for instance? Were they democratic, authoritarian, communist, capitalist?
State equation of state to calculate the pressure : Use the van der Waals equation of state to calculate the pressure of 4.00 mol of NH3 at 455 K in a 5.90-L vessel.
Your main function will still prompt the user : Your main function will still prompt the user for the account number and service code. Based on the service code, main will ask for the correct number of minutes, then call your functions above as needed to finish the job. In addition you must.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Obtain the cross products using matlab cross function

Use MATLAB cross function to obtain the above cross products. Note that the accelerations are known functions of the derivatives of the three coordinates.

  Find the roots using matlab built-in functions roots & fzero

the following equation, what is the modified equation for a fixed-point iteration method. The roots of the function are x = -2.2020235, -0.4088152, and 1.11083871, how would you determine whether or not the method will converge on a root? If the tech..

  Considered to equal when the result of one array subtract

Two arrays are considered to be equal when the result of one array subtracted from the other is an array of zeros. In the script file, create the MATLAB commands to prove the following relationships (use arrays that you makeup yourself)

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

  Control design using matlab

Control Design using Matlab,  Please try and explain the characteristic of all the plots and graphs.   Import all the required data in word of simply write in the script itself.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Using matlab and for loops

Using MATLAB and for loops, provide an animation that follows the below steps: Start with a square at the origin with each side being 5 units long. Imagine someone kicked the box and animate it moving on a projectile motion trajectory. Hint: look at ..

  Design simple interface hardware

Evaluate the capability in selecting and configuring a microcontroller unit designing simple interface hardware and writing subroutines to operate those interfaces

  Matlab – discrete time simulation

MATLAB – Discrete time simulation, solve  Discrete time syetm problem,  DT kalman filter problem,  Steady state DT kalman filter problem

  Plot the lines using the inputted vector of x values and x

Write a function named solveSystem that has three inputs: two vectors consisting of coefficients [a b c] of two line equations of the form ax + by = c and a vector of x values.

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  Write a function named ''read_line''

Verify that your code works by saving some text into a file (created in notepad / textedit) and saving the file with extension '.txt'. You should attach the file (call it 'test.txt') with your code.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd