Question
do it using MATLAB plz and fast plaz full work

1. The residents of Bikini Bottom are ranked on a toughness scale from 0-100. If a residents toughness number is 45 or less,
0 0
Add a comment Improve this question Transcribed image text
Answer #1

#source code:

a=input("Enter number between 0-100:");
if(a>=0 && a<=45)
fprintf("Super Weenie Hut Junior\n");
elseif(a>45 &&a <=90)
fprintf("Weenie Hut Junior\n");
elseif(a>90 && a<=100)
fprintf("Salty Spitoon\n");
end

i a=input(Enter number between 0-100:); 2 Bif(a>=0 && a<=45) fprintf(Super Weenie Hut Junior\n); 4 elseif (a>45 &&a <=90)

#output:

Enter number between 0-100:43 Super Weenie Hut Junior >> data Enter number between 0-100:78 Weenie Hut Junior >> data Enter n

#second one:

A=[9 5 4 0 10 7 9];
for i=1:7
if(A(i)<5)
A(i)=0;
end
end
disp(A);

#output:

>> cx 9 >>| 5 0 0 10 7 9

#if you have any doubt or more information needed comment below..i will respond as possible as soon..if you like give thumbs up..thanks...

Add a comment
Know the answer?
Add Answer to:
do it using MATLAB plz and fast plaz full work 1. The residents of Bikini Bottom...
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
  • This is the creatList and printList function #include <iostream> #include <fstream> using namespace std; struct nodeType...

    This is the creatList and printList function #include <iostream> #include <fstream> using namespace std; struct nodeType {    int info;    nodeType *link;    nodeType *next;    double value; }; void createList(nodeType*& first, nodeType*& last, ifstream& inf); void printList(nodeType* first); int main() {    nodeType *first, *last;    int num;    ifstream infile;    infile.open("InputIntegers.txt");    createList(first, last, infile);    printList(first);    infile.close();    system("pause");    return 0; } void createList(nodeType*& first, nodeType*& last, ifstream& infile) {    int number;...

  • QUESTION 1: Nine randomly selected customers at a local fast-food restaurant ordered meals having the following...

    QUESTION 1: Nine randomly selected customers at a local fast-food restaurant ordered meals having the following calorie counts: 975, 520, 1560, 872, 1028, 533, 362, 954, and 1016. Let y denote the calorie content of a meal ordered at this restaurant. Find the following sum. ∑y2= Enter your answer in accordance to the question statement. QUESTION 2: The following data give the time (in minutes) that each of 20 students waited in line at their bookstore to pay for their...

  • ALL WORK DONE IN EXCEL, SHOW SCREENSHOT. MATLAB!! BELOW IS SOAP BOX 1 100.2738 2 101.6089...

    ALL WORK DONE IN EXCEL, SHOW SCREENSHOT. MATLAB!! BELOW IS SOAP BOX 1 100.2738 2 101.6089 3 97.3934 4 100.608 5 100.0483 6 98.3731 7 99.2734 8 100.0729 9 103.4057 10 102.5725 11 98.3296 12 102.846 13 100.4672 14 99.6551 15 100.4562 16 99.5089 17 99.5921 18 101.2544 19 101.1713 20 101.1797 21 100.4116 22 98.4763 23 100.4588 24 101.3991 25 100.2236 26 100.7857 27 100.4687 28 99.4075 29 100.0227 30 98.9091 31 100.635 32 98.5385 33 98.6191 34 98.8862...

  • Please write a BASH Script in LINUX that... 1. is actually executable 2. has a comment...

    Please write a BASH Script in LINUX that... 1. is actually executable 2. has a comment to tell us what you did, why and how. 3. allows a user to enter their name and a number between 1 than 100 (this must be prompted so the user knows what to do) 4. creates a random number between 1 and 100 for you to guess. The command to create a random number is shown below. (if you find a better one...use...

  • 1. Suppose you wrote a program that reads data from cin. You are now required to...

    1. Suppose you wrote a program that reads data from cin. You are now required to reimplement it so that you can read data from a file. You are considering the following changes. I. Declare an ifstream variable in_file II. Replace all occurrences of cin with in_file III. Replace all occurrences of > > and get_line with the appropriate operations for ifstream objects What changes do you need to make? I, II, and III II and III I and III...

  • Please show all work and explain here is the data and explanation of 12.4 here is appendix D

    please show all work and explain here is the data and explanation of 12.4 here is appendix D 12.12. * In Problem 12.4, find the value of x2. If the dice really are true, what is the probability of getting a value of X2this large or larger? Explain whether the evidence suggests the dice are loaded. (See Appendix D for the necessary probabili- ties.) 12.4.I throw three dice together a total of 400 times, record the number of sixes in...

  • You have been asked to write a program to grade several multiple-choice exams. The exam has...

    You have been asked to write a program to grade several multiple-choice exams. The exam has 20 questions, each answered with a letter in the range of ‘a’ through ‘f’. The answers key is declared in the program as constant of type string. An example of answer key is “abcdefabcdefabcdefab”. Your program should work for any other answer key. The program should first ask users for the number of students to be graded. Then it should have a while loop...

  • can you do this js and html question. ill give you the html and js and...

    can you do this js and html question. ill give you the html and js and css files just fix my error use if and else like what i did dont use switch just fix my erorr. <!DOCTYPE html> <!-- Webpage HTML document for Lab 4. Authors: Amirhossein Chinaei, Andriy Pavlovych For: EECS 1012, York University, Lassonde School of Engineering --> <html lang="En"> <head> <meta charset="UTF-8"> <!-- title for web page --> <title> EECS1012: Lab 4 - Computational Thinking </title>...

  • could you plz help me with question number 5, I did question 1 through 4 I...

    could you plz help me with question number 5, I did question 1 through 4 I hope my answers are correct! you can see the answer it is in excel pic A с . о EF 1 1) Calculate net present value of store managers Investment Investment Year 0 Year 1 Year 2 Year 3 Total 3 Amount to be invested $(800,000.00) $ (800,000.00) 4 Annual cash Inflow $ 400,000.00 $ 400,000.00 $ 400,000.00 $1,200,000.00 5 Annual cash Outflow $(250,000.00)...

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
ADVERTISEMENT