1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
monitta
4 years ago
9

Unix is a command line-driven operating system. The Unix command line behaves in a similar manner to the MATLAB interpreter: use

rs repeatedly enter commands at a prompt (denoted by the character >’). You are to write a "command line" that repeatedly prompts the user for a command and repeats it back to them. The user can exit the command line when only the character q is passed (meaning "quit"). For example:
>> command_line
> ls ../folder
You entered: ls ../folder
> echo hello world!
You entered: echo hello world!
> q
Computers and Technology
1 answer:
maria [59]4 years ago
3 0

Answer:

function command_line()

while 1==1

x = input('>','s');

if x == 'q'  

user_message = sprintf('Shutting down the program now... ');

disp(user_message)

Explanation:

  • Create a function called command_line and run a while loop loop inside it.
  • Take input from user and keep on displaying it.
  • Check whether the user entered the letter q, then display the "Shutting down the program now..." message and then terminate program.
You might be interested in
Using the SUM function allows a series of numbers to be multiplied. subtracted. added. divided.
LUCKY_DIMON [66]
The sum of something is the end result of an addition problem.
8 0
3 years ago
Which are valid double statements for java? double a = 0; double b = -1.0; double c = -425; double d = 6340; double e = -1.0; do
NemiM [27]

Answer: 5

Explanation:5

7 0
3 years ago
Read 2 more answers
Write a program that accepts the lengths of three sides of a triangle as inputs. the program output should indicate whether or n
omeli [17]

The code will have to obey the Pythagorean theorem that says square of the hypotenuse side is equals to the sum of the squares of the other legs.

<h3>How to write a code that check if a triangle is a right angle by using Pythagoras theorem?</h3>

The code is written in python.

def right_triangle(x, y, z):

    if x**2 + y**2 == z**2 or y**2 + z**2 == x**2 or z**2 + x**2 == y**2:

         print("it is a right angle triangle")

    else:

         print("it is not a right angle triangle")

right_triangle(6, 10, 8)

<h3>Code explanation</h3>
  • we defined as function named "right_triangle". x, y and z are argument which are the length of the triangle.
  • Then we check if the sides obeys Pythagoras theorem.
  • If it does we print a positive statement else we print a negative statement.

Learn more about python at: brainly.com/question/21437082

#SPJ4

4 0
2 years ago
An author is preparing to send their book to a publisher as an email attachment. The file on their computer is 1000 bytes. When
maksim [4K]

Answer:

The data is transformed to usually make it smaller. It can always be re-constructed back to the original.

Explanation:

I'm on the same lesson on code.org as you, so just go to the question before and the answer to that question was the answer!  ;)

Let me know if you got it right!

5 0
3 years ago
Who wants to join my go.ogle classroom?
Ostrovityanka [42]

Answer:

sure

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • In three or four sentences, describe how a person buys and sells stock.
    6·2 answers
  • In windows vista, which process allows you to display two documents side by side?
    12·2 answers
  • What is the system of phonographic disc recordings paired with a projector called?
    9·1 answer
  • Gina is upgrading your computer with a new processor. She installs the processor into your motherboard and adds the cooling syst
    13·2 answers
  • Selet the correct answer.
    11·2 answers
  • A _____ is an example of a systems program. A. command interpreter B. web browser C. text formatter D. database system
    10·1 answer
  • In order to view the permissions assigned to each type of user for all the files located in a directory, which of the following
    12·1 answer
  • Network in which every computer is capable of playing the role of the client, server or both at the same time is called *
    6·1 answer
  • Change 'What do they do' into passive voice​
    9·2 answers
  • Write a program to generate the following series 1, 3, 5, 7, 9, 11.................. 10th​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!