Exercise 1.7.4: Remove From Line4 points
You are given an array of names of people who are in line for movie tickets. Use the remove element
to remove the first person from the line twice, as if you have just given them their tickets.

var line = ["Sam", "Lisa", "Laurie", "Bob", "Ryan"];
You should write a function to print everyone in line. Then print the line before and after removing the people.

The console should print this:

Sam, Lisa, Laurie, Bob, Ryan
Laurie, Bob, Ryan

When I run the program it does not match the desired result because I don't have spaces.

Answers

Answer 1

Use the knowledge in computational language in python  to write a code with array of names of people who are in line for movie tickets.

How to define an array in python?

Arrays are similar data structures to Python lists, but not as flexible. In an array all elements must be of the same type, typically numeric, such as int or float. Also, the size of an array cannot be modified, unlike lists that can grow dynamically. In contrast, using arrays is much more efficient and makes it easier to compute large volumes of numerical data. This makes arrays particularly useful in scientific computing.

So in an easier way we have that the code is

function start(){

var line = \["Sam", "Lisa", "Laurie", "Bob", "Ryan"\];

for(var i = 0; i < line.length; i++)

{

if(i + 1 == line.length){

println(line[i]);

}else{

print(line[i] + ", ");

}

}

var elim = line.remove(1);

var elim2 = line.remove(0);

for(var i = 0; i < line.length; i++){

if(i + 1 == line.length){

print(line[i]);

}else{

print(line[i] + ", ");

}

}

}

See more about python at brainly.com/question/18502436

Exercise 1.7.4: Remove From Line4 PointsYou Are Given An Array Of Names Of People Who Are In Line For

Related Questions

Which option demonstrates when Olga will apply deductive reasoning in the following scenario? Olga is conducting an experiment that compares the spatial reasoning abilities of pigs and dogs.

Olga proposes that pigs will outperform dogs on her spatial reasoning test.

Olga administers a test that allows both pigs and dogs to demonstrate spatial reasoning.

Olga is conducting an experiment that compares the spatial reasoning abilities of pigs and dogs

Olga examines the existing literature concerning spatial reasoning in animals.

Answers

Answer:

i think a

Explanation:

Consider the following code segment. What is the value of result after the code segment is executed? (WILL GIVE BRAINLIEST IF CORRECT)

A) 6
B) 10
C) 15
D) 21

Answers

Answer:

I think its B or C

Explanation:

After the code segment is executed, the value 6 is returned. As a result, option A is correct.

What is a code segment?

A text segment is one of the sections of a programme in an object file or memory that contains executable instructions. It is also known as text or a section of code.

It stores static constants rather than variables, in contrast to the code segment, also known as the text segment, which is read-only on many architectures.

Exons are coding segments, while introns are non-coding segments. The BSS section, on the other hand, contains uninitialized constants and variables.

Demographic, psychographic, geographic, and behavioural segmentation are examples of the four types of segmentation.

These are typical examples of how businesses can segment their markets based on factors such as gender, age, and lifestyle.

Thus, the correct option is A.

For more details regarding code segment, visit:

https://brainly.com/question/20063766

#SPJ3

Define spyware and virus

Answers

Answer:

Brainliest pls

Explanation:

Spyware is a kind of malware that gathers your own data and accumulates information about you without your assent. Viruses are a kind of pernicious programming intended to spread from your gadget to different gadgets.

Which of the following objects is used to create a list of variables in flowcharts?

A. an array or list
B. string variable
C. simple variable
D. &

Answers

Answer:

A

Explanation:

ArrayList (Collection c): This constructor is used to build an array list initialized with the elements from the collection c. Suppose, we wish to create an ArrayList arr which

What is a logical grouping of related records called?.

Answers

Answer:

File

Explanation:

Files are frequently classified by the application for which they are primarily used (employee file). A primarily key in a file is the field whose value identifies a record among others in a data file

A construction company is in charge of building a house for a client. The construction company completes the project, and then invites the client to take a look at the house. The client looks at the house and is unhappy with the final outcome and wants it redone. What could the construction company have done better?”

Answers

Answer: The construction company could have drawn a 3D model on a CAD app.

Explanation: This would help the blueprints look more realistic and easy to measure the leangths.

EASY PYTHON QUESTION, no explanation just right answer

Answers

Answer:

Loop through each name
Loop through each obj in dict

If evaluated test score does not equal 1 name does not pass

if it does, add to array of passing names

return all passing names

Explanation:

I'm sure you can get it from here. It helps to start with some "pseudocode" before you start coding else you'll beat your head against a wall for a couple hours and get no where. I say it in quotes because putting in the effort to make it look like pseudocode is pointless for something like this. You simply need to re-write the problem in english but in a way that can be broken into code easier.

Good luck

The master program that manages how other software can use the computer hardware is called the:.

Answers

the master program that manages how other softwares use the computers hardware is called the bios

write an QBASIC programme to find the area of circle


Answers

CLS

INPUT “ENTER RADIUS”; R

A = 3.14 * R ^ 2

PRINT “AREA OF CIRCLE IS ”; A

END

Which service works in conjunction with EC2 Autoscaling in order to provide predictive scaling based on daily and weekly trends

Answers

The service that works in conjunction with EC2 Autoscaling in order to provide predictive scaling based on daily and weekly trends is target tracking.

How can I employ Predictive Scaling with target tracking?

Predictive Scaling works is known to be one that works in line with target tracking. They both help to make one's EC2 capacity to change more better to one's incoming application traffic.

Note that target tracking scaling policies is one where a user has to select a scaling metric and set a target value.

Learn more about Autoscaling  from

https://brainly.com/question/17661222

Please help me on this it’s due now

Answers

Answer:

All of the Above

Explanation:

TDL professionals meet all of these options.

The statement that best describes the benefits of a career in transportation, distribution, and logistics (TDL) may include all of the statements.

What is TDL?

TDL stands for transportation, distribution, and logistics. It is characterized as an expanding industry that mutually connects manufacturers and other companies to consumers.

According to the present times, with a huge increase in eCommerce, a strong TDL workforce is required to transport goods from one location to another safely and on time.

The benefits of a career in TDL involve professional work in a highly collaborative environment that values teamwork, professionals meet the needs of consumers across the globe, and there are several opportunities to solve unique problems in the TDL industry.

Therefore, the statement that best describes the benefits of a career in transportation, distribution, and logistics (TDL) may include all of the statements.

To learn more about Transportations, refer to the link:

https://brainly.com/question/27667264

#SPJ7

Which ready-to-use features do WYSIWYG editors offer?
A.
meta tags
B.
database
C.
HTML tags
D.
web host
E.
image gallery

Answers

Answer:

C. HTML tags

Explanation:

In computing, WYSIWYG, an acronym for What You See Is What You Get, is a system in which editing software allows content to be edited in a form that resembles its appearance when printed or displayed.

I NEED HELP PLEASE!


Sweet Pete's Spreadsheets



Pete has a bakery and wants to make a better organizational system to organize what he needs for his business as well as keep track of his finances. Make a mock spreadsheet that details his incoming and outgoing finances. in the spreadsheet Account for money moving with appropriate fields of data, and be sure to use a binary field to track whether it's an incoming or outgoing amount, use data fields to track and order the payments, and add at least five entries that may be common for a bakery (think about bulk orders for food that would bring money in or purchases of ingredients that would cost money, along with rent, etc.).



Next, make an organizational chart that covers the sort of improvements using Excel for his finances that can help him. Also, mention the principles of data analysis to Pete and help him understand the plan you created for him to run his business effectively.





TABLE Grading Rubric

Full Credit
The student came up with a coherent analysis of the kind of needs a bakery might have, provided a good organizational chart that covers the aspects of Excel, and also mentioned the principles of data analysis in order to help Pete out. The student also created an adequate mock spreadsheet using different types of fields and data and filled in at least five entries with example data. The student demonstrated a good understanding of the sort of business needs this type of business might have.

Partial Credit
The student came up with a good analysis of the kind of needs a bakery might have, provided a sufficient organizational chart that covers the aspects of Excel, and mentioned the principles of data analysis in order to help Pete out. The student also created a mock spreadsheet using different types of fields and data and filled in at least four entries with example data. The student demonstrated a basic understanding of the sort of business needs this type of business might have.

Little Credit
The student came up with an analysis of the kind of needs a bakery might have, provided a sufficient organizational chart that covers the aspects of Excel, and mentioned some of the principles of data analysis in order to help Pete out. The student also created a mock spreadsheet using different types of fields and data and filled in at least three entries with example data. The student demonstrated little understanding of the sort of business needs this type of business might have.

Answers

What did you wrote there is no questions lololo

help ASAP i need to finish this! i will get in trouble if i dont

Answers

Answer:

[tex]beinggreat78~is~here~to~save~you![/tex]

Advantage: Speaking to another. Disadvantage: Bad for if you want to see each other.Advantage: You can actually interact physically with the person you are talking to. Disadvantage: The pandemic.Advantage: Type instead of speak, which has the feature of emojis. Disadvantage: Not many.Advantage: Getting contact soon as possible. Disadvantage: None, if you want quick contact with another individual.Advantage: Like a telephone but through the internet, which more people use. Disadvantage: What if you lose internet?Advantage: Good conferences. Disadvantage: Can be problematic, like some other conferences.Advantage: Depends on the conference service. Disadvantage: Can be problematic.Advantage: Very few. Disadvantage: Can be problematic, due to troublesome random callers.

__the act of applying force away. *
1 point
A. pull
B. push and pull
C. push
D. force

Answers

C( Push) the act of applying force away.

Answer:

C. Push

Explanation:

When you are pushing something you are using force, and that force is moving away as you are pushing it.


I hope it helps! Have a great day!

Anygays-

what are the major causes of hanging of computers

Answers

Answer:

Hangs have varied causes and symptoms, including software or hardware defects, such as an infinite loop or long-running uninterruptible computation, resource exhaustion (thrashing), under-performing hardware (throttling), external events such as a slow computer network, misconfiguration, and compatibility problems.

Explanation:

HOPE IT HELPS

GOOD LUCK

How many internet browser sessions can you have open at one time.

Answers

Answer:

Any Number of Internet browser sessions is fine as long you are searching up for reasonable stuff and you have a strong internet connection.

Explanation:

If a negatively charged particle moves into a magnetic field traveling in a straight line, how would you expect its motion to change? A) The particle would slow and stop moving. B) The particle would travel in a curved path. C) The particle would continue traveling in a straight line. Eliminate D) The particle would make a right angle turn and then continue traveling in a straight line.

Answers

Answer:

B) The particle would travel in a curved path.

Mr. stevens is the principal of a high school. why might he want to export data from a database of students’ exam scores? to create a presentation using other software on how students’ scores have changed throughout a semester to view the student data in a new database to query the database and sort students into groups according to their scores to append additional student records to the database

Answers

Mr. Stevens wants to export data from database of students’ exam scores to create presentation using other software on how  the scores have changed throughout a semester.

What is database?

The database is the collection of data which is arranged in proper manner generally electronically in computer system for the easy access and latter use.

The database also help to analyse the data. The data is export from database for following reasons-

For backing up the important data.To move the data from two different program version.  

Mr. stevens is the principal of a high school. He want to export data from a database of students’ exam scores. With this data he can make presentation to analyze the scores.

Mr. Stevens wants to export data from a database of students’ exam scores to create a presentation using other software on how students’ scores have changed throughout a semester.

Learn more about the database here;

https://brainly.com/question/26096799

Answer:

its A

Explanation:

Mr.stevens needs to create a presentation using other software on how students' scores have changed throughout a semester

Someone help me!!

select the correct answer

what are the functions of system software?

system software enables a computer's hardware to perform tasks, and functions as a platform for database. quapplication. q

presentation software. it also acts an interface between the computer's hardware and o processor devices

o software

Answers

The first (1st) one. I

Explanation:

It's the definition

Please help with this coding problem! Any help is greatly appreciated!!

Answers

The python program is an illustration of python functions; Functions are names statements that are executed when called.

The order in which the statements are executed?

The program uses functions, and the functions would be executed when called.

So, the order of the statements is:

Line 10Line 11 Line 1 to 3Line 12Line 4 to 6Line 13Line 7 to 9Line 14

The value of x in between lines 11 and 12

On line 11, the function F(n) is called and executed.

This function multiplies 10 by 5 and assigns the product to x.

Hence, the value of x in between lines 11 and 12 is 50

The value of x in between lines 12 and 13

On line 12, the function G(n) is called and executed.

This function adds 25 to the global value of x (100) and assigns the sum to x.

Hence, the value of x in between lines 12 and 13 is 125

The program output

On line 13, the function H(n) is called and executed.

This function adds -25 to the global value of x (125) and assigns the sum to x.

The output is then printed on line 14

Hence, the output of the program is 150

Read more about Python programs at:

https://brainly.com/question/16397886

What is one reason why businessman want to move entirely online

Answers

• You can reach a large number of people at once. This aids in the expansion of a firm and the sale of any goods.

• When compared to offline business, if you have your own product, you can quickly sell it to thousands of people online (offline business are also good business but you need to so many time to reach thousand people and customer)

• When you sell a product globally, people complain that it's difficult to track product and profit, but when you sell a product online, it's the greatest and easiest way to track product and profit.

• You will be able to reach out to people all around the world, which will benefit you and your company. You will be aware of the needs of people all around the world. Your company's clientele spans the globe.

When an EC2 instance is being modified to have more RAM, is this considered Scaling Up or Scaling Out?

Answers

If an EC2 instance is being modified to have more RAM, this is known as Scaling Up.

What is EC2 Auto Scaling?

The Amazon EC2 Auto Scaling is known to be a type of fully well handled service that has been set up to launch or hinder Amazon EC2 instances automatically.

It is often made so as to help make sure that people have the correct number of Amazon EC2 instances that is available to manage the load for their  application. To scaleup is to bring up.

Learn more about RAM from

https://brainly.com/question/13196228

1. Select and open an appropriate software program for searching the Internet. Write the name of the program.

Answers

An appropriate software program for searching the Internet is known as Web browser.

What is the software that lets you search?

A browser is known to be any system software that gives room for a person or computer user to look for and see information on the Internet.

Note that through the use of this browser, one can easily look up information and get result immediately for any kind of project work.

Learn more about software program from

https://brainly.com/question/1538272

You have a user who has difficulty typing. She is constantly pressing keys multiple times by accident. Which keyboard accessibility option should you enable? Mouse keys Bounce keys Sticky keys Repeat keys

Answers

The answer is option B, Bounce keys

The unit has you writing a script that ends each level when a sprite gets to the right edge of the screen. Propose another “level completed” solution where the levels ends when the player hits a certain part of the screen WITHOUT relying on coordinates. Describe your solution, including the code blocks you would use instead of coordinates.

Answers

Answer:

I  would make a system to go to the next level of the game without using coordinates by creating a finish line for each level that is a color like green or red. When the player’s sprite hits the finish line, it will activate a part of the code which will make the next level appear. To do this I will use an if statement. If the sprite is touching green, it will move to the next backdrop. This will create a way to go to the next level without using coordinates.

Explanation:

This is what i put as the answer, hope it helps! Dont forget to change it a little bit so you dont get flagged and stuff.

Select the correct explanation for the fact that a carrier of a recessive genetic disorder does not have the disorder.

Answers

The correct explanation is that In a recessive disorder, only a single functioning allele is necessary to determine a normal phenotype.

How is a carrier differs from a person who has a genetic disorder?

A carrier of a disease is known to be any person that is said to have the disease trait, and they do not show any kind of physical symptoms of the said ailment.

Note that the carrier do have present in them a gene mutation in the recessive gene. The dominant gene is said to overpower  the recessive gene, making the carrier to have the disease and can be able to pass on the said gene to their child.

Learn more about disorder from

https://brainly.com/question/25771019

paanswer po number 1, 2, 4, 6, 9, 15, 19 tyyyy​

Answers

Answer:

I hope it helps you

Explanation:

Pls do let me know if any doubt

Which program began as a two-hour weekly TV show that offered programming appealing to African American audiences, and in 1983 became a major network that highlighted new music, movies, and entertainment news

Answers

The program that offered programming appealing to African American audiences is BET.

What is TV show?

A television show is known as TV show for short. It is said to be any kind of   content that is often made for viewing on any kind of television set.

Note that It is one that is often broadcast through the use of over-the-air, satellite, cable, etc. The program that was said to start as two-hour weekly TV show and that  offered programming appealing to African American audiences is the BET.

Learn more about TV show  from

https://brainly.com/question/24108641


Help!!! Photography class!! ASP

Which of the following represents aperture priority mode?
Select all that apply.
Α.
The photographer needs to select the value of aperture manually.
B.
The camera determines the value of aperture automatically.
С
The camera determines the value of shutter speed automatically.
D
The photographer needs to select the value of shutter speed manually.

Answers

Answer:

D.

Explanation:

Typically represented by a capital A (or sometimes Av, short for Aperture Value) on the camera mode dial, aperture priority allows the photographer to dial in this specific exposure setting—the ƒ-stop—and asks the camera to calculate the correct corresponding shutter speed in the instant before the shutter is released.

Other Questions
Answer the following question in 1-2 complete sentences. what is a meander pattern? which two civilizations mainly used this technique? What is the mass of one mole of silver? Order each group of fractions from greatest least 1.What is the theoretical probability of popping a striped balloon?2.What is the experimental probability of not popping a polka dot balloon?18 solid balloons, 5 polka dot balloons and 17 striped balloons What should the pharmacy technician include on the label if the mix is amultidose container and not all of the medication wasused?A. The patient's name, in case he or she returns for another dose at a later timeB. Other afflictions the medication may assist with for future useC. The technician's initials, date and time of preparation, expiration date of themedication, and its final strengthD. Instructions on how and where to store the medication answer this please. brainliest to the most appropriate answer. How does the quantity of data affect the accuracy of an experiment?A. The more data is collected, the more accurate predictions andresults can be.B. The less data is collected, the more data scientists have to searchfor.C. The less data is collected, the less likely it is that the experimentwill have to be repeated.D. The more data is collected, the more time scientists spendanalyzing the results and predictions. Which of the following developments allowed cities to increase their geographic area in the late 1800s?OA.mass transportation.apartment housesOC.assembly linesD.tall buildings Who scored the winning goal for manchester united in their 1999 champions league final win over bayern munich?. true or false?A person who is an active member and returns to school on a full-time basis to complete a degree or to complete an ACEND-accredited dietetics program can move from active status to student status. Help me in this graph question please Performing a Rotation in the Coordinate PlaneFill in the missing numbers to make each rotation trueFigure WXYZ is rotated 90 clockwise around theorigin to form figure W'X'Y'Z'. Please help ASAP! 20 points!! what is abolition of the caliphate how do i do this? im confused Three tennis balls are stored in a cylindrical can witha height of 8 inches and a radius of 2 inches. Eachtennis ball has a radius of 1 inch. What is theamount of volume not taken up by the tennis ballsin the can? Use 3.14 for n. Round your answer to thenearest tenth.4 in I NEED help ASAP!!!!!!! is this right?????? or not if it's not what's the correct answer (mark brainiest) pls help will give brainliest and 5 starts QUESTION 4 An aqueous solution of 4 mol/L nitric acid is electrolyzed in an electrolytic cell using graphite electrodes. a) Write the chemical symbols for all the ions present in the electrolytic cell. (1 mark] b) Name the gas given off at the cathode. [1 mark] c) Name the gas given off at the anode. [1 mark] d) Write the half reaction equations at the; i) Cathode : [1 mark) ii) Anode : [1 mark] e) The overall anode - cathode reaction equation taking place in the electrolytic cell. [1 mark]