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
snow_lady [41]
3 years ago
8

test case Exercise 1: Consider the following system: A System reads four integer values from a user. The four values are interpr

eted as representing the lengths of the sides of quadrilateral shape. The system prints a message that states whether the shape is rectangle or square. Function: Description: Test Input Data:
Computers and Technology
1 answer:
taurus [48]3 years ago
5 0

The program displays if the side values of the quadrilateral is a square or rectangle. The required program is written in python 3 thus :

a = int(input('Enter integer input : '))

b = int(input('Enter integer input : '))

c = int(input('Enter integer input : '))

d = int(input('Enter integer input : '))

<em>#the</em><em> </em><em>variables</em><em> </em><em>a</em><em>,</em><em> </em><em>b</em><em>,</em><em> </em><em>c</em><em>,</em><em> </em><em>d</em><em> </em><em>takes</em><em> </em><em>prompt</em><em> </em><em>values</em><em> </em><em>from</em><em> </em><em>users</em><em> </em><em>which are</em><em> </em><em>used</em><em> </em><em>to</em><em> </em><em>compare</em><em> </em><em>if</em><em> </em><em>the</em><em> </em><em>quadrilateral</em><em> </em><em>is</em><em> </em><em>a</em><em> </em><em>square</em><em> </em><em>or</em><em> </em><em>rectangle</em><em>.</em><em> </em>

if(a == b == c == d):

<em>#using</em><em> </em><em>the</em><em> </em><em>assignment</em><em> </em><em>operator</em><em>,</em><em> </em><em>compare</em><em> </em><em>the value</em><em> </em><em>of</em><em> </em><em>a</em><em>,</em><em> </em><em>b</em><em>,</em><em> </em><em>c</em><em> </em><em>and</em><em> </em><em>d</em>

print('Shape is square')

<em>#if</em><em> </em><em>the</em><em> </em><em>values</em><em> </em><em>are</em><em> </em><em>the</em><em> </em><em>same</em><em>,</em><em> </em><em>the</em><em> </em><em>shape</em><em> </em><em>is a</em><em> </em><em>square</em><em> </em>

else :

print('Shape is Rectangle')

<em>#otherwise</em><em>,</em><em> </em><em>the</em><em> </em><em>shape</em><em> </em><em>is a</em><em> </em><em>rectangle</em><em> </em>

<em>The</em><em> </em><em>sample</em><em> </em><em>run</em><em> </em><em>of the</em><em> </em><em>program</em><em> </em><em>is</em><em> </em><em>attached</em><em> </em><em>below</em><em>.</em><em> </em>

<em>Learn</em><em> </em><em>more</em><em> </em><em>:</em><em> </em><em>brainly.com/question/18405415</em>

You might be interested in
In his article, “How to Publish Without Perishing,” what does James Gleick believe most people do when they really read a book?
jonny [76]

Answer:

James Gleick believes that they immerse themselves in a rich textual world. The answer is C.

3 0
3 years ago
Read 2 more answers
Sendstars is a package delivering company that recently made a study on its customer retention and service renewal metrics. They
masya89 [10]

Answer: C. Cause and Effect Modelling.

Explanation:

Data Mining is a technique which aims at obtaining important and useful information in a stockpile of data. This in turn would prove useful in making predictions. It would also inform present decisions.

The Cause and Effect modelling approach explains that for every given action ( effect ), there was a prompting factor ( cause ).

In the case of Sendstars Company, the downward spiral in customer retention was as a result of ill -mannered staff. This effect, prompted the decision to have the employees trained on customer service.

3 0
4 years ago
Read 2 more answers
The same student is curious about how a Web site appears on his computer screen. On a separate piece of paper, draw and explain
Ksivusya [100]

Answer:

HTTP is the application layer protocol required.

Explanation:

For a web page to be displayed on a browser, the seven layers of the OSI model work together. On the application layer, HTTP protocol is used to communicate between the server and the client. The HTTP client is the browser (Chrome, Internet Explorer, Firefox etc.) which sends a request to the HTTP server for accessing a web page.  

When a URL is accessed, the HTTP client sends a request to the HTTP server. The server locates the file which is being requested and sends a response message containing the web page which is to be displayed. The exchange of data between the HTTP client and server takes place over a TCP connection.

TCP is a transport layer protocol which provides a reliable connection over which the exchange of data takes place. Data at the transport layer is sent in the form of segments. If the data being sent from the server is too long, it is divided into multiple segments and sent one after the other. The client is then responsible for joining the segments and displaying the information as a web page. The transport layer is also responsible for error correction and detection during the communication process.

If the student is sending or retrieving information from a secure website, the messages being exchanged between the client and server will be encrypted. This means that if a third-party tries to tap the communication process, they would not be able to decipher the messages. This increases the security and helps keep the information present on the web page confidential.

8 0
3 years ago
I am in school what should i do i am 15
MaRussiya [10]

Answer:

your work?

Explanation:

7 0
3 years ago
Read 2 more answers
Which of the following lists the stages of the four-stroke engine cycle in the correct order of operation?
kvasek [131]
The answer is (a) Intake, Compression, Power, Exhaust.
The fourth-stroke engine cycle or the commonly known as the four cycle is a type of engine that completes four separate strokes while turning a crankshaft. First is the Intake where the piston begins at TDC. Second is the compression where it begins at BDC and the piston compresses the air-fuel mixture for ignition. Third is combustion where the second revolution of the cycle starts. Last is the exhaust where the piston once again returns to TDC from BDC.
6 0
3 years ago
Other questions:
  • _____ is an information-analysis tool that involves the automated discovery of patterns and relationships in a data warehouse.
    12·1 answer
  • What's the fastest way to reset Android pin?​
    5·1 answer
  • A network engineer is configuring a network to be able to relay IPv6 packets. The network only supports IPv4 and does not have d
    11·1 answer
  • You need to perform maintenance on a router and need to temporarily reroute traffic through another office. which would be the b
    6·1 answer
  • The inability of BAE Automated Systems to create an automated baggage handling system led to a significant delay in the opening
    10·1 answer
  • Who where the romanovs? What happened to them ?
    7·1 answer
  • What is the usual price of smartphone apps?
    8·2 answers
  • Add code to this loop, to pick up all of the radios, with only seven blocks.
    13·1 answer
  • Fields &amp; Methods
    5·1 answer
  • Complete the following sentences using each of the words provided ONCE only. KEYBOARD DESKTOP STORE PRINTER COMPUTER MOUSE MONIT
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!