







Please do understand my concern, as per HOMEWORKLIB RULES we are supposed to answer the first question if there is more than one question in a post, your downvote effects my career a lot, if I get a downvote for a wrong answer or incomplete answer I will accept it. Please give a positive rating
def SphereArea(r ):
return (4*22*r*r)/7
print(SphereArea(5))

Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture...
(MATLAB QUESTION) How to modify this function?
function [ varargout ] = ellipsoidInfo( varargin )
% enter code/comments here
end
4.4 Advanced Functions Modify ellipsoidinfo.m, so that the function returns some information about an ellipsoid (or sphere) depending on the user's supplied input and expected output If the user supplies one input, the function will calculate information for a sphere If the user supplies three inputs, the function will calculate information for an ellipsoid. The user would supply the values...
Please help! CS Problem Set 5 #Write a function called sphere_data. volume_and_area will #take in a dictionary. This dictionary is guaranteed to #have exactly one key: "radius", whose value is an integer #representing the radius of a sphere. # #Modify this dictionary to add two keys: "volume" and "area". #The values associated with these keys should be the volume #and surface area of the sphere. # #The formula for volume is: # (4/3) * pi * radius ^ 3 #...
Matlab
A forus is shaped like a doughnut. If its inner radius isa and its outer radius is b, its volume and surface area are given by V '(a + b(b - a)? A = (b2 - ) a. Create a user-defined function that computes V and A from the arguments a and b. LastName_FirstName_P4_fn_calc. b. Test for values where acb, ab and aub. Use values between 1 and 10 for a and b. Your output should show a, b,...
Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...
can anyone help me with the matlab?
U Ulube canvas C by Physics for Sci. US ABC Radio Mall-dantul @ Science News, Art Courses LMS Integration Documentation 202010 EGR 1302.3 > HW05 - MATLAB Functions > Sphere O solutions submitted (max: 3) Write a function named sphereVSA to compute the volume and surface area of a sphere given the radius. The input to your function is a single number thera should output two numbers, first volume, then surface area. These...
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...
Create a C++ Console project called Lab3a and add the following source document rect_struct.cpp to the project. #include <iostream> #include <iomanip> using namespace std; // This program uses a structure to hold data about a rectangle // PLACE YOUR NAME HERE // Fill in code to declare a structure named rectangle which has // members length, width, area, and perimeter all of which are floats int main() { // Fill in code to define a rectangle variable named box...
C++ Chapter 10 defined the class circleType to implement the basic properties of a circle. (Add the function print to this class to output the radius, area, and circumference of a circle.) Now every cylinder has a base and height, where the base is a circle. Design a class cylinderType that can capture the properties of a cylinder and perform the usual operations on the cylinder. Derive this class from the class circleType designed in chapter 10. Some of the...
iIn python please
AutoSave H L04-3b Testing Lab - Protected View - Saved to this PC- Search A Jharrah375@outlook.com J 7 File Home Insert Draw Design Layout Share Comments References Mailings Review View Help Areas and Volumes We'll write a program that prompts the user for a radius and then prints: a) The area and circumference of a circle with that radius b) The volume and surface area of a sphere with that radius 1. To get started, what is...