Writa function to read content from "Zone. txt" and write it into another file "zone1. txt" by reversing each line if the line starts with A​

Answers

Answer 1

Answer:

You have specified no language. Here's an algorithm to follow with most platforms, my example is in NodeJS

const fs = require('fs');

let zone = fs.readFile('Zone.txt', 'utf8', function (err, data) {

 if (err) throw new Error(err);

 data = data.toString(); //convert the buffer to a string

 let lines = data.split("\n"),

       content = [];

 for (i in lines) {

   let l = lines[i];

   if (l.toLowerCase().startsWith("a")) l = reverseString(l);

   content.push(l);

 }

 content = content.join("");

 fs.writeFile('zone1.txt', content, , function (err) {

   if (err) throw new Error(err);

 }

});

function reverseString (str) {

   return str.split("").reverse().join("");

}


Related Questions

Which option lists the correct steps to apply a style?

A. Select the text, click the Home tab, and in the Styles Gallery, click to select a style to apply.
B. Select the text, click the Insert tab, and in the Formatting Gallery, click to select a style to apply.
C. Select the text, click the Home tab, and in the Font group, select a font, font size, and type to apply.
D. All of the options listed above are correct.

Answers

Answer:

B

Explanation:

just took the test

Answer:c

Explanation:



Tech A says that no matter which way the vehicle turns, the inside wheel must always turn less sharply than the outside wheel. Tech B says that the

Ackermann principle angles the steering arms toward the center of the rear axle. Who is correct?


A Tech A


B Tech B

C Both A and B


D Neither A nor B

Answers

D would hxh vigil be correct

The Ackermann level of a vehicle's steering geometry is expressed as a percentage, with 100% Ackermann denoting that the angle of steer difference between the inside and outside tyres exactly matches the geometric low-speed turn center. Ackermann or Anti-Ackermann are rarely used in full force in racing vehicles. Thus, option B is correct.

What Ackermann principle angles the steering arms?

In the picture on the left, the steering arms are slanted inward to provide a way for the wheel angles to change more slowly. This causes the wheels to turn at an uneven angle and is the basis of the Ackerman Steering Principle.

As you turn the wheel, the steering wheel's shaft also revolves. This then rotates the pinion, which is situated on top of the rack. While the tie rod is moved by the rotation of the pinion, the rack moves linearly. The tie rod connected to the steering arm then causes the wheel to revolve.

Therefore, Ackermann principle angles the steering arms toward the centre of the rear axle.

Learn more about Ackermann here:

https://brainly.com/question/29676606

#SPJ5

2.
What does LAN stand for?
Little area network
Large area network
Local area network
O Locally available network

Answers

Answer:

Local Area Network

Explanation:

A computer network that links devices within a building or group of adjacent buildings, especially one with a radius of less than 1 km.

Option 3 (Local area network)

waste water cannot be reversed? f or true​

Answers

Answer:

yes

Explanation:

Recycling, reducing waste and reusing can prevent pollution, because it reduces the need to harvest new, raw materials. It can also help reduce greenhouse gas emissions , save energy and allows products to be used to their fullest extent while reducing waste.

Answer:

true

Explanation:

Vehicle balance________
A. depends on your vehicle operating space
B. cannot be reached
C. is not affected by sudden acceleration
D. varies from vehicle to vehicle

Answers

I would say it’s D.

Vehicle balance varies from vehicle to vehicle. Therefore, option (D) is correct.

What is Vehicle balance?

Vehicle balance refers to the stability of a vehicle while in motion and its ability to maintain control and direction. The balance of a vehicle can be affected by a number of factors, such as the weight distribution, suspension, and tire wear.

The balance of a vehicle varies from vehicle to vehicle and depends on the design, construction and the state of maintenance of the vehicle. Factors such as sudden acceleration, the size of the vehicle and its operating space can also impact the balance of the vehicle. However, it is always important to maintain the balance of the vehicle by regular check ups and maintenance to ensure the safety of the driver and passengers.

Learn more about vehicle balance, here:

https://brainly.com/question/14307249

#SPJ2

What are some ways to change column width? Check all that apply.
clicking and dragging the border between the column names
clicking and dragging the column letter
double-clicking a column, clicking Width, and then clicking OK
selecting a column, clicking the Format drop-down list in the Cells group, and then clicking AutoFit Column Width
right-clicking a selected column, clicking Column Width, typing the width in numbers, and clicking OK
selecting a column, clicking the Width drop-down list in the Format group, and then clicking AutoFit

Answers

Answer:

A D E are the right answers

Explanation:

When entering data in Access if the data is entered using an Access form, that data is stored in a table or tables. TRUE FALSE

Answers

Answer:

The answer is true, the data is stored in tables.

Organisms are classified as producers or consumers acorrding to the way they
A)obtain
B)release wastes
C)produce offspring
D)move from place to place

Answers

A)obtain
as the rest are irrelevant to the given options and cannot be classified as release waste produce offspring or move from place to place are classifications of biotic or abiotic

What process is a project manager doing when she or he defines and documents the stakeholders' needs to meet the project objectives?

Answers

The person is organizing the docs

vectors
Pre-Test
Active
1
2
3
4
5
6
THE REMAINI
24:13
Two vectors, X and Y, form a right angle. Vector X is 48 inches long and vector Y is 14 inches long. The length of the resultant
vector is
inches.​

Answers

Answer:

[tex]c { }^{2} = a ^{2} +b {}^{2} [/tex]

[tex]c {}^{2} = 48 {}^{2} + 14 {}^{2} [/tex]

[tex]c {}^{2} = 2304 + 196[/tex]

[tex]c {}^{2} = 2500[/tex]

[tex]c = 50[/tex]

An item with both magnitude and direction is referred to be a vector. A vector can be visualized geometrically as a directed line segment, with an arrow pointing in the direction and a length equal to the magnitude of the vector.

What is Vector?

The vector points in a direction from its tail to its head. If the magnitude and direction of two vectors match, they are the same vector.

This indicates that if we take a vector and move it to a different point (without rotating it), the vector we finish up with is the same vector we started with.

The vectors that denote force and velocity are two examples. The direction of force and velocity are both fixed. The size of the vector would represent the force's strength or the velocity's corresponding speed.



Therefore, An item with both magnitude and direction is referred to be a vector. A vector can be visualized geometrically as a directed line segment, with an arrow pointing in the direction and a length equal to the magnitude of the vector.

To learn more about vector, refer to the link:

https://brainly.com/question/13322477

#SPJ7

why is updating your anti-virus a good thing?

Answers

Answer:

Antivirus vendors play a 'cat and mouse' game with malware creators. As malware is discovered definitions are written to discover the program and other programs written in a similar way. If an existing piece of malware is extensively rewritten or a new piece of malware is created, the existing malware definitions are unlikely to detect the program as malicious. This means that antivirus vendors have to find a 'sample' of the new malware being used and create a new definition for it. When you update your anti-virus these malware definitions are downloaded allowing your antivirus to detect this newer malware and keeps your computer secure from these newer threats.

Yes! It helps prevent any virus’s from happening and it’s power would be stronger to keep our viruses

There are several vehicles in a parking lot. Some of them are motorcycles
(with 2 wheels), and some are cars (with 4 wheels). There are 11 vehicles in
the lot, and there are 34 wheels. How many vehicles of each type are in the
lot?
O A. 7 motorcycles and 5 cars
B. 5 motorcycles and 6 cars
C. 6 motorcycles and 5 cars
D. 4 motorcycles and 7 cars​

Answers

Answer:

The answer is 34.

Explanation:

Look at the pic.

Answer:

B

Explanation:

5*2=10

6*4=24

24+10=34 wheels

5+6=11 vehicles

pls mark brainliest

While working on a group project, you notice something does not look right in the presentation. You call a meeting with your team. At the meeting, everyone works together to identify what is missing, define what needs to be done, and assign tasks.
What is this called?

Answers

Answer:

Teamwork

Explanation:

1. The precious metals needed to make computer chips, graphic cards, and transistors are found in only a small population of countries. What economic implications does this have for the countries that have these metals to mine?

Answers

Answer:

it means that they can charge companies to come mine it making them more wealthy they can also upscale the materials needed to make it as they are the only countries that sell it so they have no one to compete with

According to data from the UN, China produces the most semiconductor chips worldwide. China has developed into a significant worldwide production hub for microelectronics, and the electronics value chain, which encompasses consumer electronics and ICT, has become more regionalized over time.

Which industries are affected by chip shortages?

Numerous industries are impacted by the scarcity of semiconductor chips, including automotive, data centers, video games, and others. You probably learned about the global scarcity of semiconductor chips or were personally impacted by it if you were considering buying a new or used car over the past 18 months.

In 2021, experts predict that the worldwide chip shortage will cost the American economy $240 billion. The Commerce Department reports that some American manufacturers have inventory that is only good for a few days. A chip scarcity is generating major problems at Optimal Design, which is located near Chicago.

Learn more about Computer Chips here:

https://brainly.com/question/23261568

#SPJ2

A5.3 1012 kg satellite is 1,800 m from another satellite that has a mass of 3.5 x 108 kg. What is the gravitational
force between the satellites?
3.82 x 104N
6.87 x 107 N
5.72 x 1014 N
0 1.03 x 1018 N​

Answers

Answer:

[tex]F = 3.82 * 10^4N[/tex]

Explanation:

Given

Mass of satellite 1 = 5.3 * 10¹²kg

Mass of satellite 2 = 3.5 * 10⁸kg

Distance between them = 1,800 m

Required

Gravitational Force between them.

The gravitational force between them is calculated as thus;

[tex]F = \frac{Gm_1m_2}{r^2}[/tex]

Where G = Gravitational Constant

[tex]G = 6.67408 * 10^{-11} Nm^2/kg^2[/tex]

[tex]m_1 = 5.3 * 10^{12}kg[/tex]

[tex]m_2 = 3.5 * 10^8kg[/tex]

[tex]r = 1800m[/tex]

Substituting these values in the above formula;

[tex]F = \frac{Gm_1m_2}{r^2}[/tex] becomes

[tex]F = \frac{6.67408 * 10^{-11} * 5.3 * 10^{12}*3.5 * 10^8}{1800^2}[/tex]

[tex]F = \frac{6.67408 * 5.3 * 3.5 * 10^{-11} * 10^{12} * 10^8}{1800^2}[/tex]

[tex]F = \frac{123.804184 * 10^{9}}{3240000}[/tex]

[tex]F = \frac{123804184000}{3240000}[/tex]

[tex]F = 38211.1679012[/tex]

[tex]F = 3.82 * 10^4N[/tex] ---- Approximated

Hence the gravitational force between them is [tex]3.82 * 10^4N[/tex]

6. One 15 A general-purpose circuit should be installed per how many square feet of floor space?

O A. 750

OB. 400

O C. 600

O D. 500

Answers

Answer:

It will be as 600 square feet is the most satisfying

Answer:

Your answer option is C) 600

What are some of the current trends in fashion?
For women,____tote bags and high-heeled sandals are popular now. For men, ____colors are the new trend. Bomber jackets and prints are also a fad among ____.

1.oversized
Tattered
Pocket sized

2.muted
Pastel
Bright

3.men
Women
Children

Answers

Answer:

1. pocket sized

2. muted

3. children

Full Paragraph :

For women, pocket sized tote bags and high-heeled sandals are popular now. For men, muted colors are the new trend. Bomber jackets and prints are also a fad among children.

Yeah that's basically the new trends in fashion. =v=  

I think its oversized, bright and men but i may be wrong sorry

There are 30 students in Alison's math class. She wants to bring 3 gallons of
juice to the end-of-year celebration. If each gallon of juice costs $5, how
much will Alison spend?
O A. All the information is needed.
B. Alison wants to bring 3 gallons of juice.
O
C. Each gallon of juice costs $5.
D. There are 30 students in Alison's math class.​

Answers

The answer is d there are 30 students in alisions math class and it’s how it goesss

7

A CD holds 650 MB of data. A DVD holds 4 GB of data. How many CDs would you need

to equal one DVD

Answers

Answer:

Number of CDs = 7

Explanation:

We know that

1 GB = 1024 MB

So it means the 4 GB of data can be interpreted as:

4 GB = 1024*4 MB

4GB = 4096 MB

So a DVD hold 4096 MB of data while a CD holds 650 MB of data.

We need to find how many CDs could hold 4096 MB of data, to make it equivalent to a DVD

Number of CDs = 4096/650

Number of CDs= 6.3

As a CD can not be 0.3, a whole 1 CD will be used.

Number of CDs = 7

Lower doses blank causes confusion and memory loss and hallucination

Answers

The guy above me is correct use him or her :)

in javascript, what can I put after player. to make my character go in the center of the screen? like example:

to put it at the bottom of the screen you put player.bottom(): to put it to the right of the screen you put player.right(): please help me i will mark brainlyest for the 1st correct answer

i need to put my character in the center of the screen

Answers

Answer:

0,0

Explanation:

you could try to use the x-axis and y-axis to put your character in a certain place. I'm not totally sure if that is how javascript works, but for the x-axis and y-axis, the center is always(0,0).

Which method is the quickest for removing multiple different indent types applied to a paragraph?
O Drag the left and right indent markers back to their respective positions against the page margins.
O Launch the Paragraph djalog box and clear the values for the left and right indents and set Special indents to "none."
O Press Ctrl+Q on your keyboard to clear paragraph formatting.
O Click the indent markers and drag them off the horizontal ruler.
Mark this and retum
Next
Submit ASAP

Answers

Answer:

c

Explanation:

Press Ctrl+Q on your keyboard to clear paragraph formatting is the quickest for removing multiple different indent types applied to a paragraph.

What is paragraph?

A paragraph is a self-contained unit of speech in writing that addresses a certain subject or idea. Though paragraphs are not needed by the orthographic standards of any language with a writing system, they are a common way of structuring long portions of prose. The earliest classical British and Latin writing was boustrophedon, with little or no gap between words. Text direction (left to right) became standardised over time, as did word dividers and terminal punctuation.

To delete the paragraph's formatting, press Ctrl+Q. The Ctrl+Q key in various programmes can be used to terminate the programme or close the programme window. To utilise the keyboard shortcut Ctrl+Q, press and hold either Ctrl key on the keyboard, then press the "Q" key with either hand while continuing to hold.

So, C is correct.

To learn more about paragraph
https://brainly.com/question/27243200

#SPJ2

Dell XPS 15 or MacBook pro 13?​

Answers

Answer:

MacBook Pro 13

Explanation:

Mostly cause of the brand.

And also I have a MacBook pro

Answer:

I think I would pick a MacBook Pro 13

Explanation:

The reason why is because personally I like apple products alot and Im not saying that Dell products are bad but I think apple products are just better. Also they do look the same but its really up to you to decide which brand you like better. If  you had more experince with one brand you might want to stick with it or if you have experinced with both brands you should decide which you liked better.

In which case will the linear search return the lowest value faster than the
binary search?

Answers

Answer:

A linear search is one that scans every record/file until it discovers the value being searched for.

Binary search, on the other hand, is also known as Logarithmic search. It is used to locate the position of a value inside an array that has already been sorted.  

The linear search will return the lowest value faster than the binary search when small arrays are involved.

This will only be feasible when the array is sorted prior.

Cheers!

What does a production possibilities curve represent?Which of the following statements are true? Economic stability means fair distribution of goods in an economy. Full employment is a macroeconomic goal. Inflation is a fall in the prices of goods and services. Inflation is a rise in the prices of goods and services. Microeconomics studies the economy as a whole.

Answers

Answer:

What does a production possibilities curve represent?

The Production Possibilities Curve (PPC) is a model used to show the tradeoffs associated with allocating resources between the production of two goods. The PPC can be used to illustrate the concepts of scarcity, opportunity cost, efficiency, inefficiency, economic growth, and contractions.

Which of the following statements are true?

Full employment is a macroeconomic goal.

Answer:

Full employment is a macroeconomic goal.

Inflation is a rise in the prices of goods and services.

Explanation:

An employee believes there is an imminent danger situation at her workplace. She contacts OSHA to report the safety hazard. Her employer finds out that she has reported the issue and threatens to fire her. Which of these is a correct statement about the situation?

Answers

Answer:

Here's all I know

Explanation:

OSHA stands for the Occupational Safety and Health Administration, an agency of the U.S. Department of Labor. OSHA's responsibility is worker safety and health protection. The U.S. Congress created OSHA under the Occupational Safety and Health Act of 1970 (the OSH Act). Congress passed the law and established OSHA "to assure so far as possible every working man and woman in the nation safe and healthful working conditions and to preserve our human resources.

OSHA began because, until 1970, there were no national laws for safety and health hazards.

Explain how Icd 10 cm codes can help identify a patient’s health conditions?

Answers

The ICD-10-CM (International Classification of Diseases, Tenth Revision, Clinical Modification) is a system used by physicians and other healthcare providers to classify and code all diagnoses, symptoms and procedures recorded in conjunction with hospital care in the United States

Higher resolution images mean they can be enlarged better,
True or false

Answers

Answer:

False

Explanation:

High resolution just mean It looks better

False: Higher resolution images doesn’t mean they can be enlarged better

Meghla has brought a smartphone with length is 4 unit and breadth is 3 unit, what is the screen size of the smartphone

Answers

Answer:

[tex]12unit^2[/tex]

Explanation:

Assuming that the screen covers the entire area of the smart phone.

[tex]3 * 4 = 12 unit^2[/tex]

Most likely this wouldn't be the case, so the screen size would be at most [tex]12unit^2[/tex]

[tex]0unit^2<size < 12unit^2[/tex]

And would most likely fall under this range of answers.

You multiply 4 by 3 to get the screen size of the smartphone.
Other Questions
For diffusion to occur, which condition must be met?A concentration gradient must exist.A hypotonic external environment must exist.A hypertonic external environment must exist.Dynamic equilibrium must exist. Find the mode for the following distribution.Number Frequency16320524928732736540324283228 and 32 "Nikki Giovanni's real name is Yolande Cornelia. Most poets do not change their name. Why might she have done so? How does using the nom de plume of Nikki Giovanni add to her poetry?" Author of Source C, Mike Lane, is a political cartoonist who worked from 1972-2009. Lane's cartoons usually attacked political greed and corruptionMike Lane most likely believed that NAFTA wasO promoting improvements in U.S. technologyO financially beneficial to working class Americans.O responsible for the decline in U.S. manufacturingO causing a decline in the education levels of Americans, which is the most valid definition of term revolution What is the value of p? Observe the expression below and select the true statement(s).3y(7 + 2x) + 9ry - 10The "(7 + 2x)" in the first term is a factor.The "9" in the second term is a coefficient.The "By" in the first term is a factor.The "10" in the third term is a coefficient.The "2" in the first term is a constant.The "x" in the second term is an exponent help please~!!! how many solutions does the equation 4y 4y 12 = 14 2 have? thanks! Which option is the clearest example of a theme?A.the lion as a symbol of courageB.christine destroys her rival,MarkusC.love that is forbidden by societyD.the story of how the world began A 9.0-V battery (with nonzero resistance) and switch are connected in series across the primary coil of a transformer. The secondary coil is connected to a light bulb that operates on 120 V. Determine the ratio of the secondary to primary turns needed for the bells transformer. Determine the ratio of the secondary to primary turns needed for the bells transformer. Ns/Np=? Mills Corporation acquired as a long-term investment $240 million of 5% bonds, dated July 1, on July 1, 2021. Company management has the positive intent and ability to hold the bonds until maturity. The market interest rate (yield) was 3% for bonds of similar risk and maturity. Mills paid $280.0 million for the bonds. The company will receive interest semiannually on June 30 and December 31. As a result of changing market conditions, the fair value of the bonds at December 31, 2021, was $270.0 million.Required: a. Prepare the journal entry to record Mills' investment in the bonds on July 1, 2021 and interest on December 31, 2021, at the effective (market) rate. b. At what amount will Mills report its investment in the December 31, 2021, balance sheet? c. Suppose Moody's bond rating agency upgraded the risk rating of the bonds, and Mills decided to sell the investment on January 2, 2022, for $290 million. Prepare the journal entry to record the sale. A 1000-kg car is driving toward the north along a straight horizontal road at a speed of 20.0 m/s. The driver applies the brakes and the car comes to a rest uniformly in a distance of 240 m. What are the magnitude and direction of the net force applied to the car to bring it to rest? What does the law of conservation of energy state about both sides of the chemical reaction The "Thirty Six Views of Mount Fulla by Katsushika Hokusal are a series ofA. hand scroll printingsB. screen paintingsC woodblock engravingsD. porcelain designs A fuel oil company claims that one-fifth of the homes in a certain city are heated by oil. Do we have reason to believe that fewer than one-fifth are heated by oil if, in a random sample of 1000 homes in this city, 136 are heated by oil? Please show all 4 steps of the classical approach clearly using = 0.05. What is the exposition of the story Cinderella? Hi can someone help with this: 1) The volume of a gas is 4 m3 when its pressure is 200 kPa. Assuming the temperature does not change, calculate its pressure when the volume is 3 m3 . 2) The pressure of a gas is 1.8 105 Pa when its volume is 80 cm3 . Its temperature is constant. Calculate its volume when the pressure becomes 1.2 105 Pa. I'd appreciate if there was working shown What was the primary motivation for the United States partcipation in the Space Race during the Cold War?A. To protect U.S. corporate interests in Central and South AmericaB. To demonstrate its scientific superiority over the Soviet UnionC. To convince the Soviet Union to abandon the domino theoryD. To protect its weaker allies from possible communist rebellions. A box contains 5 yellow balls, 3 blue, and 1 red ball. Two balls are drawn at random. Find the probability that the two balls are yellow Letzte Woche_____wir das Haus _______(aufrumen).