Question
i need help solving these questions,please

Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *ba
first plot should show the pressure in Pascal and the second plot should show the temperature in Centigrade 04:_Re-write the

don’t know how to solve it by using matlab.!
Solve the following questions Ol: You are required to develop a script to calculate the volume of a pyramid, which is 1/3 *base *height, where the base is length *width. Prompt the user to enter values for the length, width, and height, and then calculate the volume of the pyramid. When the user enters each value, he or she will then also be prompted to sele menu items are: Inch, Foot, mm, cm, or m. (Note that 2.54 cm1 inch.) The script should print the volume in cubic meters with three decimal places. As an example, the output format will be ct the units from a menu. The This program will calculate the volume of a pyramid. Enter the length of the base: 50 Is that i or c? i Enter the width of the base: 6 Is that i or c? c Enter the height: 4 Is that i or c? i The volume of the pyramid is xxx.xxx cubic inches. A. Write the algorithm for this task. B. Write MATLAB script to accomplish this task (make sure to switch case as conditional statements). 02: Write a function to classify input argument as: Upper case letter, Lower case letter, numerical value, or a special character? 03: The atmospheric properties, such as temperature, air density, and air pressure, are important in aviation. The data file: "atmoprop. dat" was created to store pressure in bar and the temperatures in degrees Kelvin at various altitudes. The altitude is stored in the first column, the pressure is in the second column and the te it may look like this mperatures in the third. For example, 1000 1.05 288 2000 1.03 281 000 .0 269 Write a MATLAB script that will load this data into a matrix, separate it into vectors, and then create two plots in one figure for the data with appropriate axis la bels and a title. The
first plot should show the pressure in Pascal and the second plot should show the temperature in Centigrade 04:_Re-write the following nested if-else statement as a switch statement that accomplishes exactly the same result for all possible values. Assume that val is an integer variable that has been initialized, and that "ok", "Xx", "yy", "tt", and "mid" are functions. Write the switch statement in the most succinct way if val >5 if val
0 0
Add a comment Improve this question Transcribed image text
Answer #1

solu ion you ase eaedo develop ascpt the volume op a I Algorfthm to calcutaie the volume of Pyzamia egh 01 o?ven ots length u% onput of length length , 1N44( tnt ethe length of.+he base % valda te length urM end endSuorth length uni) case tength length o9s4 Case (ase c length- lengthP。.64 Cas e m end cas e case 0CCuse Casef height, hegh0304t Casem 7 Calculat e volume metetsn, vol prnf (the volume of the Py-samd so c Enle the nth d the

Add a comment
Know the answer?
Add Answer to:
I need help solving these questions,please don’t know how to solve it by using matlab.!
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please answer 1c, use MATLAB, and paste your entire script in your answer so that I...

    Please answer 1c, use MATLAB, and paste your entire script in your answer so that I can copy and paste to see if it works. Problem #1 400g triangle square pentagon hexagon Figure 1 For a closed geometric figure composed of straight lines (Figure 1), the interior angles in the figure must add to (n-2)(180) where n is the number of sides. Required Tasks a) Write a script that prompts the user to select from one of the following shapes:...

  • I am trying to write a Geometry.java program but Dr.Java is giving me errors and I...

    I am trying to write a Geometry.java program but Dr.Java is giving me errors and I dont know what I am doing wrong. import java.util.Scanner; /** This program demonstrates static methods */ public class Geometry { public static void main(String[] args) { int choice; // The user's choice double value = 0; // The method's return value char letter; // The user's Y or N decision double radius; // The radius of the circle double length; // The length of...

  • JAVA Code Requried Copy the file java included below. This program will compile, but, when you...

    JAVA Code Requried Copy the file java included below. This program will compile, but, when you run it, it doesn’t appear to do anything except wait. That is because it is waiting for user input, but the user doesn’t have the menu to choose from yet. We will need to create this. Below the main method, but in the Geometry class, create a static method called printMenu that has no parameter list and does not return a value. It will...

  • Need help please! Question 1: you must use if /else statement to receive credit for this...

    Need help please! Question 1: you must use if /else statement to receive credit for this question Write a MATLAB script to prompt the user to enter the value of t and use if /else statement to calculate f(t): 0. ift 0.5 f)2t2, if 0.5<t<1 4t. for all other t Test your code with different values of t. Question2: you must use switch/case to receive credit for this question Create a script to prompt the user to enter TWO numbers....

  • ((( Using Only The mentioned Concepts Solve the following question in DETAILS “ Take your time but don’t disappoint me plleeaasseee”: 1- Control structure (if/if else/while/for/switch/do while/ brea...

    ((( Using Only The mentioned Concepts Solve the following question in DETAILS “ Take your time but don’t disappoint me plleeaasseee”: 1- Control structure (if/if else/while/for/switch/do while/ break continue) 2- Functions 3- Arrays 4- pointers and strings 5- classes 6- file processing ))) if it was a program i need to see the code printed on computer and the output too please . 10. Write a C++code that include two classes: Rectangle and Triangle as shown below: #include <iostream> using...

  • Project Objectives: To develop ability to write void and value returning methods and to call them...

    Project Objectives: To develop ability to write void and value returning methods and to call them -- Introduction: Methods are commonly used to break a problem down into small manageable pieces. A large task can be broken down into smaller tasks (methods) that contain the details of how to complete that small task. The larger problem is then solved by implementing the smaller tasks (calling the methods) in the correct order. This also allows for efficiencies, since the method can...

  • i need help with number 3&4 and the answer is in red i just need to know how to work the problem (a) y (b) y=-x3 + 6x2-9x + 3 2. The sum of two nonnegative numbers is 36 (a) Find the two numbe...

    i need help with number 3&4 and the answer is in red i just need to know how to work the problem (a) y (b) y=-x3 + 6x2-9x + 3 2. The sum of two nonnegative numbers is 36 (a) Find the two numbers if the differ ence of their square roots is to be as large as possible. 0 and 36 (b) Find the two numbers if the sum of their square roots is to be as large as...

  • MATLAB Questions. I have a basic understanding of the tools for MATLAB, but do not know...

    MATLAB Questions. I have a basic understanding of the tools for MATLAB, but do not know how to create the code for these questions. Please show the entire code. 2. A paper cup shaped as a frustum of cone with R-14R1 is designed to have a volume of 25 cm Determine R1, R2 and the surface area, S, of the paper for cups with a height, h, of 1O cm. The volume of the cup, V, and the surface area...

  • using this array I need to create a user created function in Matlab that does the...

    using this array I need to create a user created function in Matlab that does the following I have this so far but I'm so lost could you please make this with comments on what the codes do Lure dueren suuj (COM 94 97 95 19 91 88 95 87 90 72 78 60 98 87 81 79 76 69 192 80 77 73 78 70 80 89 81 186 94 901 b. Find the lowest grade in Math subject...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT