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

  Import the data into matlab and name the array ace_data

Parameter is related to the energy of the storm, since kinetic energy is proportional to velocity squared. However, it does not take into account the size of the storm, which would be necessary for a true total energy estimate.

  Compare two sound wave in matlab

Compare two sound wave in matlab as on speech to text processing and open as notepad, calculator,C:,D: and many other on speaking

  Kerfuffleboard is a game very much like shuffleboard

Kerfuffleboard is a game very much like Shuffleboard. Players take turns shooting disks at a trianglular scoring area. While the scoring areas are the same in shuffleboard and kerfuffleboard, a disk's contribution to a player's score will be calcu..

  Coding(using for and while loop)

coding(using for and while loop)

  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.

  Write a user defined function

Write a user defined function FindFrequency which inputs are a time and a wave elevation vector and output the approximated wave frequency (fappr=FindFrequency(t,eta)).

  It turns out that since you''ve become experts

It turns out that since you've become experts on rating clothing, Acme Clothing Company has hired you to rate their clothes. Clothes are now represented as structures instead of vectors with the fields (all of which are numbers between 0 and 5): C..

  Write matlab scripts

Write MATLAB scripts for to accept two numbers from the user; Display all prime numbers between these two numbers.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Plot the pressure surface versus latitude and longitude

Plot the pressure surface versus latitude and longitude as a surface plot

  Let''s combine everything together

Let's combine everything together! In this question, you will be asked to combine scaling and translations. Write a function named "problem5" that accepts a single input and scales the image by 0.5 and shifts it up by 7 units. The input variable h..

  Fit the exponential function to the relaxation data

Fit the exponential function to the relaxation data and report the filename as well as the A, tau and B values and run all 3 functions in sequence to analyze ALL data

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