Calculate the volume of a cylinder tank

Assignment Help Computer Engineering
Reference no: EM132109283

Project Guidelines

Write a MATLAB program that calculates the volume of a cylinder tank by receiving the radius, height, and time from the user and calculates the volume of a liquid using flow rate values that are to be contained within a text file (the flow rate values are provided at the bottom of the instruction page).

The program should then calculate with what flow rate values does the volume of the liquid exceed the volume of the tank. The program should then plot and display in a graph the flow rate values in ascending order vs the volume of the liquid (flow rate on x axis, volume on y axis) in a graph.

The program must calculate the min, max, and average flow rate and then output this to a new text file named "flowStat.txt".

The new file will contain the min, max, and average values of the flow rates provided as well as an indication of whether or not the volume of the liquid exceeded the volume of the tank.

The flow rate values written to the new file should be sorted vertically in ascending order. This indicator should be a message stating if an overflow will occur next to the corresponding flow rate.

Requirements

The program reads in data from the file "flowrate.txt"

The program processes the data using loops and if statements

The program contains at least three functions that represent the logic of the program

The program writes data to a file

The program displays data in a graphical format

*HINT*

Formulas:

pi = 3.14159

‘T' is the time in minutes obtained from the user

‘r' is the radius in meters obtained from the user

‘h' = the height in meters obtained from the user

‘F' is the flow rate variable obtained in the text file you will create

V_tank = pi * r2 * h

V_liq = F * t

"Flowrate.txt" Sample File

12.7

26.5

8.25

13.2

14.9

15.3

19.6

20.0

Reference no: EM132109283

Questions Cloud

Billions of shoppers worldwide : An online shopping tax punishes Aussie consumers and denies shoppers the same choice available to billions of shoppers worldwide.
Construct and execute insert sql statements : Construct and execute INSERT SQL statements to add the sample data in the following tables to the Customer and Address tables.
Describe your findings in your eportfolio : Assignment - Paperback Zone - ITECH1100 Understanding the Digital Revolution - Andres and Benjamin want to improve the consistency of how they pay
Write a function printarray to print the hexadecimal numbers : Create a .bmp file, called myBmp.bmp, that stores the 4x3 image shown in Figure 4, where the 24-bit color code marked in each component.
Calculate the volume of a cylinder tank : Write a MATLAB program that calculates the volume of a cylinder tank by receiving the radius,height, & time from the user and calculates the volume of a liquid.
Should all countries have the same environmental standards : Should all countries have the same environmental standards? What about the same labor standards? Justify your answers.
Designing and implementing a mini search engine : You are probably familiar with Google, Bing or Yahoo, which are some of the most popular search engines that you can find on the Web.
What is the breakeven price : a. If forecasted sales are 5 million tablets, what is the breakeven price? b. Should Prescott discontinue selling this product?
Write a python class definition for class sumi : Write a python class definition for class ‘Sumi' with a single instance variable self.num of type ‘int' and single instance method called "sum_of_digits".

Reviews

Write a Review

Computer Engineering Questions & Answers

  How could companies offering "free" products

The seminar uses Linux as an example of a company that understands competitive positioning. How can companies offering "free" products (e.g., Linux, Netscape) make money from these products? How can other companies compete with these fast-rising s..

  Draw a state diagram

A pulse-mode circuit with two inputs, x, and xi, and one output, z, is needed. The output changes from 0 to 1 only on the occurrence of the last xi pulse.

  Visual logic

Consider that you are working with “Visual Logic”. Develop the logic for a program which enables a user to enter the 10 numbers, and then display them in reverse order of their entry.

  What is the difference between a population and a sample

What is the difference between a population and a sample? How large do you think your population and sample will need to be for your dissertation research?

  Create a ppt about a cloud-based office productivity suite

Create a 6- to 10-slide presentation about a cloud-based office productivity suite. Detailed speaker notes or recorded audio narration.

  What security checks should be performed to ensure

What security checks should be performed to ensure an exact copy is made

  Program to calculate the weight of students

We have run regression analysis along with the resulting estimated regression equation as follows:” the estimated weight equals (-180 pounds) plus (5 pounds times the height in inches).” Write down the program to calculate the weight of students.

  Find out the gross pay for each of three employees

Your program must input this information for each employee, determine the employee's gross pay and output XHTML text that displays the employee's gross pay.

  Write a method public static void downsize

Write a method public static void downsize(LinkedList employeeNames, int n) that removes every nth employee from a linked list.

  Execute a shell script to read in 3 numbers

Write down and execute a shell script to read in 3 numbers and display which is the largest and which is smallest.

  What are the advantages and disadvantages of sampling

Basic Sampling. You are attempting to determine whether you are taller or shorter than the average of students currently enrolled in your university.

  Developing system for the classification problem

client asks your company in order to develop a system for classification problem (for example: medical insurance fraud detection). Because of user requirements, he requires the final developed system to be able to offer the explanations about syst..

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