You are given the following segment of code:Line 1: PROCEDURE printScorePairs()Line 2: {Line 3: count <-- 0Line 4: sum <-- 0Line 5: i <-- 1Line 6: scores <-- [73, 85, 100, 90, 64, 55]Line 7: REPEAT UNTIL ( i > LENGTH (scores) )Line 8: {Line 9: sum <-- scores[i] scores[i 1]Line 10: DISPLAY ( sum )Line 11: i <-- i 2Line 12: }Line 13: }The ABC company is thrifty when it comes to purchasing memory (also known as RAM) for its computers. Therefore, memory is of the utmost importance and all programming code needs to be optimized to use the least amount of memory possible. What modifications could be made to reduce the memory requirements without changing the overall functionality of the code?

Answers

Answer 1

Answer:

Move Line 10 to after line 12

Explanation:

Required: Modify the program

From the procedure above, the procedure prints the sum at each loop. Unless it is really necessary, or it is needed to test  the program, it is not a good practice.

To optimize the program, simply remove the line at displays the sum (i.e. line 10) and place it at the end of the loop.

So, the end of the procedure looks like:

Line 10: i <-- i 2

Line 11: }

Line 12: DISPLAY ( sum )

Line 13:


Related Questions

What are the three types of networks?
A) Internet, PowerPoint, Excel
B) Internet, LAD, WAN
C) Internet, WAN, LAN
D) None of the above

Answers

Answer:

Local Area Network (LAN)

Metropolitan Area Network (MAN)

Wide area network (WAN)

(So C, I'm pretty sure.)

Answer:

LAN,MAN,WAN

Explanation:

are the three types of network

Write a print statement that uses an f-string to output $5,242.83

Answers

Answer:

print("${:,.2f}".format(5242.83))

Explanation:

Given

$5,242.83

Required

Use an f string to output the above

The syntax of an f-string to format a number in that regard is: "${:,.2f}".format(number)

$ means that a dollar sign be printed before the required number

., means that the number be separated with commas

2f means that the number be presented in 2 decimal places

So:

"${:,.2f}".format(number) becomes

"${:,.2f}".format(5242.83)

In a print statement, the full instruction is:

print("${:,.2f}".format(5242.83))

Which situations are the most likely to use telehealth? Select 3 options.

Your doctor emails a suggested diet plan.

Your brother was tested for strep throat and now you think you have it.

Your doctor invites you to use the patient portal to view test results.

You broke your arm and need a cast

You request an appointment to see your doctor using your health app.

Answers

Answer:

Your doctor emails a suggested diet plan.

Your brother was tested for strep throat and now you think you have it.

Your doctor invites you to use the patient portal to view test results.

Answer:

Your doctor emails a suggested diet plan

You request an appointment to see your doctor using your health app

Your doctor invites you to use the patient portal to view test results

Explanation:

Edge 2022

lower cabinet is suitable for storing and stocking pots and pans true or false​

Answers

True.
Make sure cabinet is clean enough to put the pots and pans.

Write a program that asks the user to enter a date in MM/DD/YYYY format that is typical for the US, the Philippines, Palau, Canada, and Micronesia. For the convenience of users from other nations, the program computes and displays this date in an alternative DD.MM.YYYY format. Sample run of your program would look like this: Please enter date in MM/DD/YYYY format: 7/4/1776 Here is the formatted date: 04.07.1776 You can assume that the user will enter correctly formatted date, but do not count on having 0s in front of one-digit dates. Hint: you will need to use string addition (concatenation) here.

Answers

Answer:

In Python:

txt = input("Date in MM/DD/YYYY format: ")

x = txt.split("/")

date=x[1]+"."

if(int(x[1])<10):

   if not(x[1][0]=="0"):

       date="0"+x[1]+"."

   else:

       date=x[1]+"."

   

if(int(x[0])<10):

   if not(x[0][0]=="0"):

       date+="0"+x[0]+"."+x[2]

   else:

       date+=x[0]+"."+x[2]

else:

   date+=x[0]+"."+x[2]

   

print(date)

Explanation:

From the question, we understand that the input is in MM/DD/YYYY format and the output is in DD/MM/YYYY format/

The program explanation is as follows:

This prompts the user for date in MM/DD/YYYY format

txt = input("Date in MM/DD/YYYY format: ")

This splits the texts into units (MM, DD and YYYY)

x = txt.split("/")

This calculates the DD of the output

date=x[1]+"."

This checks if the DD is less than 10 (i..e 1 or 01 to 9 or 09)

if(int(x[1])<10):

If true, this checks if the first digit of DD is not 0.

   if not(x[1][0]=="0"):

If true, the prefix 0 is added to DD

       date="0"+x[1]+"."

   else:

If otherwise, no 0 is added to DD

       date=x[1]+"."

   

This checks if the MM is less than 10 (i..e 1 or 01 to 9 or 09)

if(int(x[0])<10):

If true, this checks if the first digit of MM is not 0.

   if not(x[0][0]=="0"):

If true, the prefix 0 is added to MM and the full date is generated

       date+="0"+x[0]+"."+x[2]

   else:

If otherwise, no 0 is added to MM and the full date is generated

       date+=x[0]+"."+x[2]

else:

If MM is greater than 10, no operation is carried out before the date is generated

   date+=x[0]+"."+x[2]

This prints the new date

print(date)

Write a program that computes how much each person in a group needs to pay (after tax and tip) when splitting the bill equally. Specifically, your program should: 1. Ask a user for the number of people in the party 2. Ask a user for the total bill amount before tax and tip 3. Output the amount due per person after tax and tip Assume that tax is 7.25%, and tip is 20% (tip is before tax).

Answers

Tax is an incredibly weird thing but I wish I could help but I can’t

The components of hardware include:
A) Monitor, CPU, Disk Drives, Printer, Keyboard/Mouse
B) Monitor, CPU, Disk Drives, Touch Screen, Keyboard/Mouse
C) Monitor, CPU, Software, Printer, Keyboard/Mouse
D) None of the above

Answers

Answer:

A

Explanation:

Monitor, CPU, Disk Drives, Printer, Keyboard/mouse

Answer:

B.monitor,cpu,disk drives,touch screen,keyboard/Mouse

Add (11011)2 + (111)2​

Answers

Answer:

(11011)2+(111)2=(100010)2

hope it helps.

Answer:

(100010)square is the correct answer Hope it helps you have a great day keep smiling be happy stay safe ☺

2. BIOS is contained in ROM and not in RAM. Can you guess why?​

Answers

Answer:

Because RAM is only used for short term storage (and doesn't contain anything that will need to be accessed often) RAM it loses its contents when turned off. So when you power on a computer, it has to start running bootup code which has to be stored in ROM

Difference between a port and a connector

Answers

Explanation:

A connector is the unique end of a plug, jack, or the edge of a card that connects into a port. Port: The port has either holes or a slot that matches the plug or card being connected into the port. For example: cables are plugged into Ethernet ports, and cables and flash drives are plugged into USB ports.

In Linux, users are internally represented using a unique number called user ID or uid.

a. True
b. False

Answers

Answer:

a. True

Explanation:

An operating system is a system software pre-installed on a computing device to manage or control software application, computer hardware and user processes.

This ultimately implies that, an operating system acts as an interface or intermediary between the computer end user and the hardware portion of the computer system (computer hardware) in the processing and execution of instructions.

Some examples of an operating system on computers are QNX, Linux, OpenVMS, MacOS, Microsoft windows, IBM, Solaris, VM etc.

In Linux, users are internally represented using a unique number called user ID or UID. Thus, this unique number serves as an internal identifier in the Linux Kernel and as such determines what system resources may be accessible to each user. Oftentimes, these unique numbers are not put into use but rather a name is linked with the number and are used instead.

Also, users can be organized logically into a group and are represented uniquely with a group ID or GID, which serves as a global identifier for the users.

1. It is a set of integrated devices that input, output,
process, and store data and information.
a. Computer hardware
b. Computer software
c. Computer system
d. Computer program​

Answers

A set of integrated devices that input, output, process, and store data and information is called: C. Computer system.

What is a computer system?

A computer system can be defined as an electronic device that is designed and developed to receive data in its raw form as input and processes these data into an output (information) that could be used by an end user.

The components of a computer.

Basically, the components of a computer system are classified as follows:

MotherboardCentral processing unit (CPU)Output Input

Read more on computer system here: brainly.com/question/959479

5.18 LAB: Output numbers in reverse Write a program that reads a list of integers, and outputs those integers in reverse. The input begins with an integer indicating the number of integers that follow. For coding simplicity, follow each output integer by a comma, including the last one. Ex: If the input is: 5 2 4 6 8 10 the output is: 10,8,6,4,2, To achieve the above, first read the integers into a vector. Then output the vector in reverse.

Answers

Answer:

In C++:

#include<iostream>

#include<vector>

using namespace std;

int main(){

   int len, num;

   vector<int> vect;

   cout<<"Length: ";

   cin>>len;  

   for(int i = 0; i<len;i++){

       cin>>num;

   vect.push_back(num);}

   vector<int>::iterator iter;

   for (iter = vect.end() - 1; iter >= vect.begin(); iter--){

       cout << *iter << ", ";}    

}

Explanation:

This declares the length of vector and input number as integer

   int len, num;

This declares an integer vector

   vector<int> vect;

This prompts the user for length  

cout<<"Length: ";

This gets the input for length  

   cin>>len;  

The following iteration gets input into the vector

   for(int i = 0; i<len;i++){

       cin>>num;

   vect.push_back(num);}

This declares an iterator for the vector

   vector<int>::iterator iter;

The following iterates from the end to the beginning and prints the vector in reverse

   for (iter = vect.end() - 1; iter >= vect.begin(); iter--){

       cout << *iter << ", ";}

Given the following table of students, assignments, and grades for a single class:

Student_ID

Student_Name

Assignment_1_Date

Assignment_1_Name

Assignment_1_Grade

Assignment_2_Date

Assignment_2_Name

Assignment_2_Grade

Assignment_3_Date

Assignment_3_Name

Assignment_3_Grade

1011

Susan J. Smith

2015-06-01

Homework - Chapter Seven

76

2015-06-05

Chapter 7 Quiz

88

2015-06-12

Homework – Chapter 8

A

2332

Jones, Jamal K.

2015-06-01

Homework - Chapter Seven

84

2015-06-05

Quiz – Chapter 7

89

2015-06-12

Homework – Chapter 8

95

3432

Brown, Ronald

2015-06-01

Homework - Chapter Seven

66

2015-06-05

Quiz – Chapter 7

78

2015-06-12

Homework – Chapter 8

B

5435

Killen, Katie

2015-06-01

Homework - Chapter Seven

97

2015-06-05

Chapter 7 – Quiz

95

2015-06-12

Homework – Chapter 8

94

7574

Powell, B.

2015-06-01

Homework - Chapter Seven

68

2015-06-05

Quiz – Chapter 7

89

9677

Pat Hayes

6/1/2015

Homework - Chapter Seven

89

2015-06-05

Quiz – Chapter 7

85

2015-06-12

Homework – Chapter 8

99

Examine the data in the table above and identify any columns that contain data inconsistencies. Place an X in the Consistent or Inconsistent column.

Answers

Answer:

i need more

Explanation:

i need more

A school has 100 lockers and 100 students. All lockers are closed on the first day of school. As the students enter, the first student, denoted S1, opens every locker. Then the second student, S2, begins with the second locker, denoted L2, and closes every other locker (i.e. every even numbered locker). Student S3 begins with the third locker and changes every third locker (closes it if it was open, and opens it if it was closed). Student S4 begins with locker L4 and changes every fourth locker. StudentS5 starts with L5 and changes every fifth locker, and so on, until student S100 changes L100.After all the students have passed through the building and changed the lockers, which lockers areopen? Write a program to find your answer.(Hint: Use an array of 100 boolean elements. each of which indicates whether a locker is open (true) or closed (false). Initially, all lockers are closed.)

Answers

Solution :

public class NewMain {  

   public_static void main_(String[] args) {  

       boolean[] _locker = new boolean_[101];  

       // to set all the locks to a false NOTE:  first locker is the number 0. Last locker is the 99.

       for (int_i=1;i<locker_length; i++)

       {

       locker[i] = false;

       }

       // first student opens all lockers.

       for (int i=1;i<locker.length; i++)        {

       locker[i] = true;

       }

       for(int S=2; S<locker.length; S++)

       {

          for(int k=S; k<locker.length; k=k+S)

          {

              if(locker[k]==false) locker[k] = true;

              else locker[k] = false;      

          }            

       }

       for(int S=1; S<locker.length; S++)

       {

           if (locker[S] == true) {

               System.out.println("Locker " + S + " Open");

           }

         /* else {

               System.out.println("Locker " + S + " Close");

           } */

       }

   }

}

When you use a rest area, you should:
A. Make sure your windows are closed tightly
B. Stop in a dark place where you can sleep
C. Walk around your car after resting
D. Sleep with the windows rolled down

Answers

The answer would be A.
The rest seem impractical.
The answer is A because you need to make sure you’re safe before resting

You are working with an online tech service to fix a problem with installation of a program on your machine. You grant them remote access to your computer to enable them to act as you to fix situation. What type of must be installed on your machine to allow this type of action by another person

Answers

Answer:

Single User OS.

Explanation:

An operating system is a system software pre-installed on a computing device to manage or control software application, computer hardware and user processes.

This ultimately implies that, an operating system acts as an interface or intermediary between the computer end user and the hardware portion of the computer system (computer hardware) in the processing and execution of instructions.

Some examples of an operating system on computers are QNX, Linux, OpenVMS, MacOS, Microsoft windows, IBM, Solaris, VM etc.

There are different types of operating systems (OS) used for specific purposes and these are;

1. Batch Operating System.

2. Multitasking/Time Sharing OS.

3. Multiprocessing OS.

4. Network OS.

5. Mobile OS.

6. Real Time OS .

7. Distributed OS.

8. Single User OS.

A Single User OS is a type of operating system that only allows one user to perform a task or use a system at any time.

In this scenario, you are working with an online tech service to fix a problem with installation of a program on your machine. You grant them remote access to your computer to enable them to act as you to fix situation. Therefore, the type of OS which must be installed on your machine to allow this type of action by another person is called a Single User OS.

2. On the line below, create a bulleted list, using the square bullet option, of the following parks
and recreational areas in the United States: Blue Ridge Parkway, Golden Gate National
Recreation Area, Great Smoky Mountain National Park, Gateway National Recreation Area, and
Lincoln Memorial.

Answers

Answer:

Blue Ridge Parkway  Golden Gate National Recreation AreaGreat Smoky Mountain National Park  Gateway National Recreation Area  Lincoln Memorial.

Explanation:

teehee

Answer:

Blue Ridge Parkway  

Golden Gate National Recreation Area

Great Smoky Mountain National Park  

Gateway National Recreation Area  

Lincoln Memorial.

Explanation:



Combination of one or more columns used to identify particular rows in a relation is a (n)

Answers

Answer:

Combination of one or more columns used to identify particular rows in a relation is a key

A key is a combination of one or more columns that is used to identify particular rows in a relation.

KEYS in DBMS (database management system) is an attribute or set of attributes which helps you to identify a row in a relation(table). They allow you to find the relation between two tables.

Keys help you uniquely identify a row in a table by a combination of one or more columns in that table. Key is also helpful for finding unique record or row from the table.

Database key is also helpful for finding unique record or row from the table.

Find out more on DBMS at: https://brainly.in/question/1919695

Suppose you present a project and your supervisor comments that the graphics need to be a higher quality and suggests you replace a circuit board. To what circuit board is your supervisor referring?


graphics card

video card

sound card

system card

Answers

Answer:graphics card

Explanation:

Answer:

graphics card

Explanation:

List and fully describe at least 3 examples of input devices and how they are applied in the real world. (In separate paragraphs.)

Answers

Answer:

1. Mouse

2.Graphic Tablet

3.Keyboard

Explanation:

1. A computer mouse (plural mice, rarely mouses) is a hand-held pointing device that detects two-dimensional motion relative to a surface. This motion is typically translated into the motion of a pointer on a display, which allows a smooth control of the graphical user interface of a computer.

2.Graphic tablets, because of their stylus-based interface and ability to detect some or all of pressure, tilt, and other attributes of the stylus and its interaction with the tablet, are widely considered to offer a very natural way to create computer graphics, especially two-dimensional computer graphics

3.A keyboard is for putting information including letters, words and numbers into your computer. You press the individual buttons on the keyboard when you type. The number keys across the top of the keyboard are also found on the right of the keyboard. The letter keys are in the centre of the keyboard.

Can someone tell me how to get rid of the the orange with blue and orange on the status bar

Please and thank you

Picture above

Answers

Answer:

Explanation:

i'm not sure how tho

Hover over it then you will see an X click that and it should go away, if that doesn’t work click with both sides of the of the mouse/ touch thingy and it should say close tab!

it is an electronic device that capable of accessing accepting processing product and storing data​

Answers

"A computer is an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program." "A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data."

3/4+7=
what is the answer​

Answers

Answer:

7 3/4

Explanation:

3

4

+ 7

=  (0 + 7) + (  

3

4

+ 0 )

=  7 +  

3

4

+ 0 × 4

=  7 +  

3

4

+  

0

4

=  7 +  

3 + 0

4

=  7 +  

3

4

=  

7 3

4

Save an image as a separate file by right-clicking the image and then clicking this option at the
shortcut menu
A) Save page as
B) Save Picture as
C) Save Image as
D) None of the above

Answers

Answer:

Save image as

Explanation:

Save image as. Because you are saving the image.

Write your own printArray() function found in Processing for the Arduino. For simplicity, you can limit printArray() to integer arrays and you will also pass the size of the array to your function. For example, given the following code:

int terps[5] = {7, 9, 12, 1, 46};
void printArray(int arrayToPrint[], int arraySize) { // YOUR CODE HERE }
void setup()
{ // put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
printArray(terps,sizeof(terps)/sizeof(int)); delay(1000);
}

You should repeatedly see the following in the serial monitor:

[0]: 7
[1]: 9
[2]: 12
[3]: 1
[4]: 46

Answers

Answer:

Follows are the method definition to this question:

void printArray(int arrayToPrint[], int arraySize) //defining a method printArray that accepts two array in its parameters

{

for (int j = 0; j < arraySize; j++)//defining for loop print Serial numbers

{

Serial.print("[");//use print method to print square bracket

Serial.print(j);//use print method to print Serial numbers

Serial.print("]: ");//use print method to print square bracket

Serial.println(arrayToPrint[j]);//printing array value

}

}

Explanation:

In the above code, a method "printArray" is declared that holds two arrays "arrayToPrint and arraySize" as a parameter, and inside the method is used for loop to print the values.

In the loop, first, it uses the square bracket to print the serial number and in the last step, it prints array values.

A data science experiment you are conducting has retrieved two historical observations for the price of Bitcoin(BTC) on December 2, 2017 of 11234 and 12475. Create a Python script that stores these two historicalobservations in a list variable namedbtcdec1.Your data science experiment requires four additional data tasks. The first task is to use the listappend()method to add the BTC price of 14560 to the listbtcdec1. The second task is to create a new empty listnamedbtcdec2and append the BTC prices of 15630, 12475, and 14972. The third task required you to usethe listextend()method to add the contents ofbtcdec2into the listbtcdec1. The fourth and final taskrequires you to use the listsort()method of the listbtcdec1to sort the items in the newly extended list,then use theprintstatement to output the content of listbtcdec1to the Python console.Starter code:_______.

Answers

Answer:

Following are the code to this question:

btcdec1=[11234, 12475] #defining a list btcdec1 that holds two integer values  

btcdec1.append(14560)#using append method to add value in btcdec1 list

btcdec2=[]#defining an empty list btcdec2

btcdec2.append(15630)#using append method to add value in btcdec2 list

btcdec2.append(12475)#using append method to add value in btcdec2 list

btcdec2.append(14972)#using append method to add value in btcdec2 list

btcdec1.extend(btcdec2)#using the extend method to add value list into btcdec1

btcdec1.sort()#using sort method to arrange value in ascending order

print(btcdec1)#print list btcdec1

Output:

[11234, 12475, 12475, 14560, 14972, 15630]

Explanation:

In this code a list "btcdec1" is declared, which holds two integer variables, in the next step, it uses the append method to add another element into the list.

In the next step, another empty list "btcdec2" is declared, which uses the append method to hold the integer element, and uses the extend and sort method to add the second list into the first one and then sort the whole list and print its values.  

Do you think it's easier to be mean online than offline? why?

Answers

Answer:

Yes because on online we can talk all we want and they don't know us irl so it's funny lol

Explanation:

what is ergonomic in computer science​

Answers

Answer:

Ergonomics is the science of fitting jobs to people. One area of focus is on designing computer workstations and job tasks for safety and efficiency. Effective ergonomics design coupled with good posture can reduce employee injuries and increase job satisfaction and productivity.

Which image-editing tool can be used to help remove spots and other marks from an image?
A. brighten
B. stylize
C. healing brush
D. contrast
E. desaturate

Answers

C. Healing brush
That’s the answer

Answer:

c. healing brush

Explanation:

Other Questions
4 310 x 2.43 = 10x2++10 100100) HELP WITH THIS QUESTION!!! hi everyone i know all the ansers but i wanna help people too 9x8 2x12 How is tha main carecter of the rear The ages of the 11 players of a soccer team on the soccer field are shown.21, 32, 22, 28, 26, 30, 29, 24, 22, 24, 26What would cause the median age of the players on the field to decrease?A. replace a 24-year-old player with a 22-year-old playerB. replace a 26-year-old player with a 24-year-old playerC. replace the 21-year-old player with a 20-year-old playerD. replace the 30-year-old player with a 26-year-old player There is a 15% discount on all items in a store. You buy a $12 shirt and $45 jeans. What will be your total cost? Tommys dad is teaching him how to make tables out of tiles. Tommy makes a small table that is 3 feet wide and 4 feet long. How many square foot tiles does he need to cover the top of the table? How many feet of decorative border material will his dad need to cover the edges of the table? I need area and perimeter Solve for the indicated variable for x: d=ax+bx Someone please help me Ill give out brainliest please dont answer if you dont know In the US, 1 in 1700 Caucasian children will be born with the monogenic hereditary disorder Cystic Fibrosis (CF), a pathology that results in an accumulation of abnormally sticky and thick mucus affecting the lungs and digestive system. Consider a small isolated community in Appalachia where most of the population lives below the poverty level and where adults have a higher rate of CF that the national average since the people tend to marry neighbors. The general practitioner for the county receives a Bill and Melinda Gates Foundation Grant to ascertain how many children in the community inherited cystic fibrosis from their parents. Out of 172 children tested, she finds 38 have CF. Remember that Mendel believed in diagnostic ratios for understanding inheritance outcome although other factors can come into play like assortative mating. What statement best expresses the publics view of Fords pardon of Nixon?A) Most people supported the pardon.B) Many people disagreed with the pardon.C) Few people expressed interest in the pardon.D) Most people believed the pardon helped end corruption. When consumers seek to buy goods at the best possible price they are exercising self-__________. A. interest B. control C. confidence D. promotion anyone live in stockton cali answer this. 9+3+8+100+12+100+12+34+28+ 42. La paciente tiene una fiebre y unos escalofrios. Su ____es la gripe.a. farmacuticab. diagnosisc. enferma Find the momentum of a 3.0 kg mass when it is stopped Neeed help please... Question 13 of 35Which option describes the direction of thermal energy transfer in Earth'soceans?A. From the poles to the equatorB. From cool areas to warm areasC. From the ocean floor to its surface waterD. From the equator to the polesSUBMIT Find the missing length indicated.Help pls Decide how important the setting is to the plot of following children's stories. If you are not familiar with a story, get a summary from the Internet and then decide how important the setting is to the story's plot. "Goldilocks and the Three Bears" : important of not important