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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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