I need help solving these questions,please don’t know how to solve it by using matlab.!
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 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...
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/ 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 -- 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 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 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 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...
Please help explain how to get these answers! I have a big test tomorrow and need help. Please write clear. Thanks!! Problem 4: Gases & Solids (26 pts) Around 100 km above the surface of the Earth, the pressure is a low 3.2 x 104 mbar, while the temperature is an unexpectedly comfortable 300 K A balloon containing this sample is 40,582 L under these conditions. What is this balloon's volume (in ml) at Earth's surface-around 298 K and 1...