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
Arlecino [84]
2 years ago
7

// This pseudocode segment is intended to compute and display

Computers and Technology
1 answer:
Finger [1]2 years ago
3 0

The pseudocode to calculate the average of the test scores until the user enters a negative input serves as a prototype of the actual program

<h3>The errors in the pseudocode</h3>

The errors in the pseudocode include:

  • Inclusion of unusable segments
  • Incorrect variables
  • Incorrect loops

<h3>The correct pseudocode</h3>

The correct pseudocode where all errors are corrected and the unusable segments are removed is as follows:

start

Declarations

     num test1

     num test2

     num test3

     num average

output "Enter score for test 1 or a negative number to quit"

input test1

while test1 >= 0

     output "Enter score for test 2"

     input test2

     output "Enter score for test 3"

     input test3

     average = (test1 + test2 + test3) / 3

     output "Average is ", average

     output "Enter score for test 1 or a negative number to quit"

     input test1

endwhile

output "End of program"

stop

Read more about pseudocodes at:

brainly.com/question/11623795

You might be interested in
A bit shift is a procedure whereby the bits in a bit string are moved to the left or to the right. For example, we can shift the
Genrish500 [490]

Answer:

Aee explaination

Explanation:

#Implementation of shiftLeft method

#which shifts the bits in its input one

#place to tge left

def shiftLeft(bitstring):

bitstring = bitstring[1:]+bitstring[0]

#return as bit string format

return bitstring

#Get the input from user

bits = input("Enter a string of bits: ")

#call the shiftLeft method which returns the value

# that is stored in leftShift

leftShift = shiftLeft(bits)

#Display the output

print()

print(leftShift)

print()

8 0
3 years ago
How do ethics affect people?
Mnenie [13.5K]
People are affected because ethics are suppose to be moral
5 0
3 years ago
Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar.
andriy [413]

Binary values are used to denote the 'ON' and 'OFF' state of a computer. The 'ON' state is denoted by the binary value '1'

  • The 'ON' state of a computer represents the mode when the computer system is running and can be used to perform computing operations.

  • The binary values '0' and '1' are used to designate the ON and OFF state.

  • When the computer is ON, it is designated by the binary value 1 ; while the OFF state is designated by the binary value 0.

Therefore, the number which signifies the ON state of a computer is 1.

Learn more :brainly.com/question/4722254

4 0
2 years ago
1. Why is photographing lightning a difficult process?
bulgar [2K]
<span>1. Why is photographing lightning a difficult process?
</span>Some reasons which come to my mind for saying this are: 1) You get only one chance for the particular situation - it is not like portrait photography where you can go back in the studio if the photos didn't come out well; 2) lightning varies so much in brightness, intensity and location that guessing the proper exposure requires a lot of experience, as well as luck; 3) you are always at some risk when photographing worthwhile lightning; and 4) lightning is a point (line) source, and demands the most of the optical quality of your camera 
<span>
2. What piece of equipment is helpful in capturing lightning photographs?
</span><span><span>SLR camera with B-shutter speed (preferably SLR; you might try using your digital camera, if it has B mode, but this is much more difficult)</span><span>lenses ranging from 28mm to 135mm at minimum. Fixed-focal lenses are preferred over zoomlenses. Aperture ranges should be f/2.8 - f/22.</span><span>sturdy tripod (metal or plastic doesn't make any difference whatsoever at all in safety - if lightning is so close by, you are in trouble anyway)</span><span>cable release, which can be locked</span><span>Slow-speed film: 100 or 200 ISO
</span></span><span>
3. Why is it important to mentally prepare for photographing lightning?
</span><span>When photographing lightning, it’s important to realize that the conditions you are shooting in are unpredictable and dangerous, and there will always be an element of chance and luck involved. So you should prepare yourself.
</span><span>
4. What time of day should you try to photograph lightning?
</span>Nighttime lightning photography is the easiest <span>type
</span><span>
5. Why is composition important in lightning photographs?
It boosts or adds drama to your picture. </span>
6 0
3 years ago
Read 2 more answers
Create a stored procedure named prc_inv_amounts to update the INV_SUBTOTAL, INV_TAX, and INV_TOTAL. The procedure takes the invo
vova2212 [387]

Answer:

The procedure in SQL is created as follows

Explanation:

--creating the procedure

CREATE OR REPLACE PROCEDURE prc_inv_amounts (W_IN IN NUMBER)

AS

--defining variables

W_CK NUMBER := 0;

W_SUBT NUMBER := 0;

W_TAX NUMBER := 0;

BEGIN

--Authentication process of the invoice

SELECT COUNT(*) INTO W_CK FROM INVOICE WHERE INV_NUMBER := W_IN;

--Transaction confirmation

IF W_CK = 1 THEN

SELECT SUM(LINE_TOTAL) INTO W_SUBT FROM LINE

WHERE

--checking the invoice for the desired invoice number

LINE.INV_NUMBER = W_IN;

W_TAX :=W_SUBT * 0.08;

--updating the invoice

UPDATE INVOICE

--setting the new values

SET INV_SUBTOTAL = W_SUBT,

INV_TAX = W_TAX,

INV_TOTAL =W_SUBT + W_TAX

WHERE INV_NUMBER = W_IN;

--ending the if statement

END IF;

--ending the procedure

END;

7 0
3 years ago
Other questions:
  • At what point is an idea protected by copyright?
    7·2 answers
  • Catherine wants to search online for fruit juices. She is fine with aerated or fresh fruit juices. Which Boolean operator will e
    12·2 answers
  • Write a program that implement a bubble sort ?
    5·1 answer
  • A company wants a recruiting app that models candidates and interviews; displays the total number of interviews each candidate r
    6·1 answer
  • Andy, a developer, is designing a new program. Which tool should Andy use to help him complete his task?
    13·1 answer
  • Light is a key formal element that film artists and technicians carefully manipulate to create mood, reveal character, and conve
    15·1 answer
  • Do you have to make a account of Windows 10?
    12·1 answer
  • Which of the following is constantly changing and advancing?
    11·1 answer
  • What are the benefits of computer literacy?
    10·1 answer
  • Fictional Corp has a data center that runs multiple internal applications. However, they want to migrate their email to a cloud
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!