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

  Biologically inspired method

Biological ly Inspired Methods + Ma tlab Assignmen t,  Define a problem of your choice which can be tackled by Biologically Inspired Methods. The problem must satisfy the following requirements

  Vb and matlab to calculate the cumulative days

Create a function TotalDaysMonth(intYear, intMonth, strIndOrCum) in both VB and Matlab to calculate the cumulative days or number of days in a given month, depending on inputs, by employing array vector in VB or a vector matrix in Matlab.

  Compute and flote 4 average temperature profiles

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Matlab – discrete time simulation

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

  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.

  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..

  Determine the inputs, outputs, relevant formulas

determine the inputs, outputs, relevant formulas

  Stepper motor driven xy table

Stepper Motor Driven XY Table - Use Matlab and Labjack to acquire digital inputs from limit switches and use Matlab to analyze acquired data

  Compare with the true value

compare with the true value of 6.737947 x 10 -3  . Use 20 terms to evaluate each series and compute true and approximate relative errors as terms are added.

  F data into matlab using only the textread function?

load the following type of data into mathlab using ONLY the textread funcion? Need to import it and plot it using boxplot.

  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

  Computes the stiffness matrix for one bilinear element with

write Matlab code that computes the stiffness matrix for one bilinear element with 4 nodes

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