what is a(n) MATlab code that can help me calculate the volume of a cylinde then increase that result by 20% to get a result of 18m.
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
james Kohler
am 19 Okt. 2021
Kommentiert: james Kohler
am 21 Okt. 2021
The question im trying to ask is,volume of a circular cylinder of height h and radius r is given by the equation V = πr^2h. A cylindrical tank is 15 meters tall and has a radius of 8 meters. We want to construct another cylindrical tank with a 20% volume increase but has the same radius.
Im trying to figure out how to write a script for the following: that will output and display the new height of the cylinder. Use fprintf to display the new height (by referencing a variable) of the tank to 2 decimals. Your calculation should result in a height of 18m if correct
0 Kommentare
Akzeptierte Antwort
DGM
am 19 Okt. 2021
h0 = 15;
dV = 0.2;
hf = h0*(1+dV);
fprintf('Oh my god, it''s %.2f meters tall! Aieee!',hf)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!