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
andreyandreev [35.5K]
3 years ago
10

The following code processes a file containing five positive numbers. What will the variable $result contain after the code is e

xecuted? Be careful! $result = 0; $someFile = fopen("some-file.txt", "r"); for ($count = 1; $count <= 5; $count = $count + 1) { $nextNum = fgets($someFile); } $result = $result + $nextNum; fclose ($someFile); print ("The result is $result ");
Computers and Technology
1 answer:
jolli1 [7]3 years ago
6 0

Answer:

highest of five numbers in the file

Explanation:

  • This code reads the file "some-file.txt" and saves the result in variable "somefile"
  • The runs a for loop for a count of 5.
  • In each loop it compares the current value of the file with the value of the variable result and if the result is true it updates the value of the variable result.
  • At the end of this code the variable result will contain the highest value in the file "some-file.txt" and print it.

You might be interested in
Anyone got the edmentum computer programming post test answers?
Arturiano [62]

Answer:

yessir

Explanation:

7 0
3 years ago
Choose the web design factor from the drop-down menus that best represents each statement. A. Good web pages stick to the point,
Paladinen [302]

Choose the web design factor from the drop-down menus that best represents each statement.

Answer:

A. Good web pages stick to the point, do not have useless information, and showcase important information.

  • Useful content

B. The best websites clearly present a reason for the creation of the site.

  • Purpose

C. The best websites are pleasing to look at and make you want to click further through the pages.

  • Visually appealing

D. It is important for the web designer to understand the needs, interests, and technology level of the target web page visitor.

  • Audience

E. Good websites make it easy to navigate from one page to the other with relevant links in obvious places.

  • Easy to use
4 0
4 years ago
How do you change colors for presentation to blue warm in power point?
Furkat [3]

In PowerPoint presentations you can change background color. The best way to do this is to change the template background color in the master view. This will let you use the same background color among the whole presentation and also for the new slides that you will create.

In order to change the background color in Microsoft PowerPoint 2010 we need to go to View and Slide Master. Then, right click on the first slide and click Format Background.

5 0
3 years ago
What is live ware in relation to computer​
Zarrin [17]

Answer:

It is a slang term used to denote people using (attached to) computers.

6 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
baherus [9]

At the two opposite direction or angle should he take the photo and Henry should shoot at an angle of 180 degrees.

<h3>What is two point lighting photography?</h3>

The two point light principle is known to be one that is itself along with the subject as they are lit from two different directions with the light sources and are said to be 180 degrees apart.

Therefore,  At the two opposite direction or angle should he take the photo and Henry should shoot at an angle of 180 degrees.

Learn more about photograph from

brainly.com/question/25821700

#SPJ1

5 0
2 years ago
Other questions:
  • Which is true regarding pseudocode?
    9·2 answers
  • What do you adjust to allow more or less vertical space between lines of a paragraph?
    14·1 answer
  • How would you determine if your earned credits would transfer to a regionally accredited school?
    14·2 answers
  • Technical colleges offer certification in audio engineering through programs that are normally from 2 to 6 months long. False Tr
    14·1 answer
  • Malcolm is part of a team developing a new smartphone app to track traffic patterns. Because team members are located throughout
    12·1 answer
  • What is the purpose of the green flag in the Scratch interface?
    8·2 answers
  • What is an example of an attribute for a screen object
    14·1 answer
  • Which of the following statements is TRUE of a peer-to-peer network?
    10·1 answer
  • Differentiate between Computer Science and Information Technology
    10·1 answer
  • Cute nya diba I like bts army​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!