program instructions consider the following program segment: //include statement(s) //using namespace statement int main() { //variable declaration //executable statements //return statement } 1. write a c statement that includes the header file iostream. 2. write a c statement that allows you to use cin, cout, and endl without the prefix std::. 3. write c statement(s) that declare the following variables: num1, num2, num3, and average of type int. 4. write c statements that store 125 into num1, 28 into num2, and -25 into num3. 5. write a c statement that stores the average of num1, num2, and num3, into average. 6. write c statement(s) that output the values of num1, num2, num3, and average. 7. compile and run your program. 8. include your name, course as a comment at the top of the program. 9. comment each line of the program explaining what lines does.

Answers

Answer 1

In computing, a code segment, also known as a text segment or simply as text, is a portion of an object file or the corresponding section of the program's virtual address space that contains executable instructions.

What is a program?

A computer program is a comprehensive plan or procedure for using a computer to solve a problem; more specifically, it's a clear, sequential list of computational instructions that can be used to arrive at a solution of this kind. Software and hardware are terms used to distinguish between computer programs and hardware, respectively.

Computers can execute numerous tasks sequentially or even sporadically thanks to the programs that are stored in their memory. By the end of the 1940s, mathematician John von Neumann, who was born in Hungary, had developed the concept of an internally stored program. The "Baby," built in Manchester in 1948, was the first digital computer to be created with internal programming capability.

The program for the given data

#include<iostream>      //include statement(s)

using namespace std;   //using namespace statement

int main()

{   //variable declaration

   int num1,num2,num3;

   float average;

   

   //executable statements

   num1=125;

   num2=28;

   num3=-25;

   average=(num1+num2+num3)/3.0;  //average of num1,num2 and num3

   //print values of num1,num2,num3 and average

   cout<<"num1= "<<num1<<"\n";

   cout<<"num2= "<<num2<<"\n";

   cout<<"num3= "<<num3<<"\n";

   cout<<"average= "<<average;

   return 0;//return statement

}

The algorithm

 start:

   Declare num1,num2,num3 and average

   set average=(num1+num2+num3)/3

   print num1,num2,num3,average

   stop  

The flowchart

(see the attached file)

Learn more about program

https://brainly.com/question/26134656

#SPJ4

Program Instructions Consider The Following Program Segment: //include Statement(s) //using Namespace

Related Questions

Which test is the best indicator of how well you will do on the ACT

Answers

Answer:

The correct answer to the following question will be "The Aspire test".

Explanation:

Aspire seems to be a highly valued technique or tool that would help parents and teachers take measurements toward another excellent 3rd-10th grade ACT assessment test.

The Aspire test measures academic achievement in five aspects addressed either by ACT quiz such as:

EnglishMathReadingScienceWriting.

So that the above is the right answer.

what is system analyst explain the role of system analyst​

Answers

Answer:

A system analyst is a person that works to optimize user experience with programs.

Explanation:

A system analyst is somebody that analyzes how well a software or hardware system fits the business needs of their employer or of a client.

They basically look at how a software functions and determines what needs to be fixed in order to better their software for consumers.

Explain a way that color is used to convey a message without using words?

Answers

Answer: using symbols and actions without words

Explanation:

Utility software, such as virus checker, screen saver, and security software, is usually installed on a PC ____.

Answers

Answer:

Operating System

Explanation:

The operating system is meant to run software.

s Give the SQL statement to display the number of trips that originate in Vermont (VT) or Connecticut (CT)?? SELECT Count(TripName) FROM Trip WHERE State="VT OR State
Answer 1: COUNT(TripName) Answer 2: State='VTOR State='CT Partial

Answers

COUNT(Trip Name) is SQL statement to display the number of trips that originate in Vermont (VT) or Connecticut (CT).

What is SQL statement ?

An SQL statement is a set of instructions that properly compiles and includes identifiers, parameters, variables, names, data types, and SQL reserved words. If a Begin Transaction command does not define the beginning of a transaction, Analysis Services constructs an implicit transaction for a SQL query.

A database table's records are retrieved using a SQL SELECT statement in accordance with clauses (such FROM and WHERE) that define criteria. As for the syntax: the following query: SELECT column1, column2 FROM table1, table2 WHERE column2='value';

A computerised maintenance management system, or CMMS, is software that centralises maintenance data and streamlines maintenance procedures. It helps to maximise the efficiency and usability of tangible assets including machinery, infrastructure for plants, communications, and other assets.

Read more about SQL statement:

https://brainly.com/question/30175580

#SPJ1

virtual conections with science and technology. Explain , what are being revealed and what are being concealed​

Answers

Some people believe that there is a spiritual connection between science and technology. They believe that science is a way of understanding the natural world, and that technology is a way of using that knowledge to improve the human condition. Others believe that science and technology are two separate disciplines, and that there is no spiritual connection between them.

What is technology?
Technology is the use of knowledge in a specific, repeatable manner to achieve useful aims. The outcome of such an effort may also be referred to as technology. Technology is widely used in daily life, as well as in the fields of science, industry, communication, and transportation. Society has changed as a result of numerous technological advances. The earliest known technology is indeed the stone tool, which was employed in the prehistoric past. This was followed by the use of fire, which helped fuel the Ice Age development of language and the expansion of the human brain. The Bronze Age wheel's development paved the way for longer journeys and the development of more sophisticated devices.

To learn more about technology
https://brainly.com/question/25110079
#SPJ13


What are the 2 components of an instructional plan?
a. Program overview
b. Instructional Guide
c. Lectures

Answers

Option a) Program overview

b) Instructional Guide

The two components of an instructional plan are the program overview and the instructional guide.

The program overview provides a general outline and description of the instructional program, including its goals, objectives, and target audience. It gives an overview of what will be covered and how it will be delivered. On the other hand, the instructional guide is a more detailed document that provides step-by-step instructions on how to deliver the content of the instructional program. It includes information on the specific topics or modules that will be covered, the learning objectives for each topic, the instructional strategies and methods that will be used, and the assessment methods to measure learning outcomes. The instructional guide serves as a roadmap for instructors, providing them with guidance on what to teach, how to teach it, and how to assess student progress.
The two components of an instructional plan are the program overview, which provides a general outline and description of the instructional program, and the instructional guide, which offers detailed instructions on how to deliver the content of the program.

To know more about Program, visit:

https://brainly.com/question/30613605

#SPJ11

If someone want to type race with me :

https://play.typeracer.com?rt=21mvsi61s8

Let's improve our typing speed.
Reccomendation:(Use computer)

Answers

I’d beat you in a race my boy no cap

7.2.4 Area of Triangle HELP PLEASE!! (JAVA SCRIPT) I WILL WAIT FOR THE SOLUTION.

Write a function that computes the area of a triangle given its base and height.

The formula for an area of a triangle is:

AREA = 1/2 * BASE * HEIGHT
For example, if the base was 5 and the height was 4, the area would be 10.

triangleArea(5, 4); // should print 10
Your function must be named triangleArea

Answers

Answer:

function triangleArea(base, height) {

  console.log(base * height / 2)

}

Testing:

triangleArea(5, 4)

> 10

A garments manufacturing company buys various types of natural and synthetic materials to produce clothes. Which material is a synthetic material?

A. cotton
B. nylon
C. jute
D. silk
E. linen

I need this answer please!! 20 points

Answers

a is the correct answer of the question

Answer: A.

Explanation:

_____ is data and instructions entered into the memory of a device.

Answers

Answer:storage

Explanation: this is the answer b/c any data that enters the memory of a computer is STORAGE


( hope this helped )

Whats the overall mood of the song Rags2Riches by rod wave

Answers

Answer:

9.5/10

Explanation: Because you can vibe with the muisc but i just dont like the name so with out the name 10/10

Answer:

it would be a sad/get turnt

how do I fix when it hits the second session it skips scanf.
#include <stdio.h>
#include <unistd.h>
#include <ctype.h>
main() {
double first, second;
while(1){
printf(" Calculator\n");
printf("\n 7 8 9 / \n 4 5 6 x \n 1 2 3 - \nEnter operator: ");
char op;
scanf("%c" ,&op); //entering operators such as + - \ *
printf("Enter two operands:");
scanf("%lf %lf", &first, &second); //entering operands such as 1 2 5 8 12 414
switch (op) { // printing the math
case '+'://if its +
printf("%.1lf + %.1lf = %lf\n\n", first, second, first + second);
break;
case '-'://if its -
printf("%.1lf - %.1lf = %lf\n\n", first, second, first - second);
break;
case '*'://if its *
printf("%.1lf * %.1lf = %lf\n\n", first, second, first * second);
break;
case '/'://if its :
printf("%.1lf / %.1lf = %lf\n\n", first, second, first / second);
break;
default://if its not + - / *
printf("error!");
}
}
}

Answers

Answer:

scanf(" %c" ,&op); //entering operators such as + - \ *

Explanation:

put space before %c

The connection of your smartphone to your wireless headset is an example of a(n) ____.

Answers

The connection of your smartphone to your wireless headset is an example of a personal area network.

What is an illustration of a personal area network?

One of the most common real-world instances of a PAN is the relationship between a Bluetooth earpiece and a smartphone. PANs can also secure laptops, tablets, printers, keyboards, and other computerized gizmos.

What are the elements of personal area network?

Features of WPAN :

Low cost, Small or No infrastructure setup.Short range transmission.Small confidential network , use anywhere.Wide spectrum of devices.Low energy consumption.No complicated connectivity.

To learn more about personal area network, refer

https://brainly.com/question/14704303

#SPJ4

Question # 1
Dropdown
Choose the word that matches each definition.
[ ] is the study of designing and building computers and computer-based systems.

Answers

Answer:

Computer engineering

Explanation:

Computer engineering is the answer

for what remot control help​

Answers

Answer:

?

Explanation:

Answer:

to control other things

Explanation:

hope this helps

Which of the following are valid variable names? Select 2 options.
A. Cost$4
B. 4thNumber
C. Fourth_number
D. Num4
E. $4cost
Please answer asap

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct options to this question are C and D:

Fourth_numberNum4

Because these are the correct and valid variable names.

Other options are not correct because these variables names either start with a number or contains special character such as $ sign.

The invalid variables are A, B, and E while the valid variable declare are options C and D.

Applying a bug fix:
Addressing a security flaw:
Improving ease of use:
Adding new features:
<>
1.software update(patch)
2.software update(patch)
3.software upgrade(new version)
4.software upgrade(new version)

Answers

Applying a bug fix: software update (patch)

Addressing a security flaw: software update (patch)

Improve ease of use: Software Update (new version)

Adding features: Software Update (new version)

This is what I believe the answer is! Hope this helped!

The matching of item A with respect to item B is as follows:

Software update (patch): Applying a bug fix. Software update (patch): Addressing a security flaw.Software Upgrade (new version): Improve ease of use:Software Upgrade (new version): Adding features.

What is a Software update?

A software update may be characterized as a set of changes to the software to update, fix or improve it. It also changes to the software will usually either fix bugs, fix security vulnerabilities, provide new features or improve performance and usability. It is also known as a patch.

Software updates provide more than just security updates, they often offer new and improved features and speed enhancements to make the end-user experience better. Developers are constantly working on ways to improve the software, giving greater efficiency to users.

Therefore, the matching of item A with respect to item B is well described above.

To learn more about the Software update, refer to the link:

https://brainly.com/question/5057366

#SPJ2

For ul elements nested within the nav element, set the list-style-type to none and set the line-height to 2em.

For all hypertext links in the document, set the font-color to ivory and set the text-decoration to none.
(CSS)

Answers

Using the knowledge in computational language in html it is possible to write a code that For ul elements nested within the nav element, set the list-style-type to none and set the line-height to 2em.

Writting the code:

<!doctype html>

<html lang="en">

<head>

  <!--

  <meta charset="utf-8">

  <title>Coding Challenge 2-2</title>

</head>

<body>

  <header>

     <h1>Sports Talk</h1>

  </header>

  <nav>

     <h1>Top Ten Sports Websites</h1>

     <ul>

   

     </ul>

  </nav>

  <article>

     <h1>Jenkins on Ice</h1>

     <p>Retired NBA star Dennis Jenkins announced today that he has signed

        a contract with Long Sleep to have his body frozen before death, to

        be revived only when medical science has discovered a cure to the

        aging process.</p>

        always-entertaining Jenkins, 'I just want to return once they can give

        me back my eternal youth.' [sic] Perhaps Jenkins is also hoping medical

        science can cure his free-throw shooting - 47% and falling during his

        last year in the league.</p>

     <p>A reader tells us that Jenkins may not be aware that part of the

        least-valuable asset.</p>

  </article>

</body>

</html>

See more about html at brainly.com/question/15093505

#SPJ1

For ul elements nested within the nav element, set the list-style-type to none and set the line-height
For ul elements nested within the nav element, set the list-style-type to none and set the line-height

This graph shows the number of steps Ana and Curtis each took over the course of four days. Which of the following labels best describes the y-axis values? Number of Steps per Day 12000 10000 8000 6000 رااا 4000 2000 0 1 2 3 Ana Curtis
Steps per day
None of the above
Day of the week
Steps by user​

This graph shows the number of steps Ana and Curtis each took over the course of four days. Which of

Answers

Answer:

None of the above

Explanation:

One part of a development team has completed an algorithm. Why is it important to share it with others on the team? Choose all that apply. If it is easy to understand, no one will dispute what is included in the algorithm. It will give everyone else an opportunity to comment on the process described in the algorithm. It will serve as the starting point for all future activity. It communicates the consecutive instructions of the solution.

Answers

Answer: B,C,D

Explanation:

Answer:

the answer is B,C,D

Explanation:

Consider the following code segment. A 9-line code segment reads as follows. Line 1: list, open angular bracket, string, close angular bracket, animals equals new array list, open angular bracket, string, close angular bracket, open parenthesis, close parenthesis, semicolon. Line 2: blank. Line 3: animals, dot, add, open parenthesis, open double quote, dog, close double quote, close parenthesis, semicolon. Line 4: animals, dot, add, open parenthesis, open double quote, cat, close double quote, close parenthesis, semicolon. Line 5: animals, dot, add, open parenthesis, open double quote, snake, close double quote, close parenthesis, semicolon. Line 6: animals, dot, set, open parenthesis, 2 comma, space, open double quote, lizard, close double quote, close parenthesis, semicolon. Line 7: animals, dot, add, open parenthesis, 1 comma, space, open double quote, fish, close double quote, close parenthesis, semicolon. Line 8: animals, dot, remove, open parenthesis, 3, close parenthesis, semicolon. Line 9: system, dot, out, dot, print l n, open parenthesis, animals, close parenthesis, semicolon. What is printed as a result of executing the code segment?

Answers

The given code snippet initializes an ArrayList named "animals" which is intended to keep a record of strings. The add() method is utilized to append the terms "dog", "cat", "snake", and "fish" to the existing list.

What does the program do?

Afterwards, the program utilizes the set() function to substitute the item placed in the second index with the term "lizard," thus resulting in a modification from "snake" to "lizard."

Subsequently, the program implements the add() function once more to incorporate the word "fish" at position 1, resulting in the displacement of elements succeeding said index to the right.

Next, the remove() function is employed to eliminate the item at position 3, which is denoted by "fish".

Ultimately, the println() method is utilized to print out the contents of the "animals" list, which then manifests as the following output: [dog, cat, lizard, fish].

Read more about programs here:

https://brainly.com/question/26134656

#SPJ1

What are two reasons for using subprograms (alias functions)?

Answers

Answer: Two important advantages of using subprograms are reuse and abstraction. In our Sort program we saw how subprograms allow us to reuse the same code. Although the Sort program does many swaps, we only have to write the Swap procedure one time. Each call to Swap uses the same code that we wrote for the procedure

The library is purchasing Argus TL2530P All-In-One Thin clients. What does it mean that the thin clients are 802.3at compliant?

Answers

In this set up, the servers are workstations which perform computations or provide services such as print service, data storage, data computing service, etc. The servers are specialized workstations which have the hardware and software resources particular to the type of service they provide.

1. Server providing data storage will possess database applications.

2. Print server will have applications to provide print capability.

The clients, in this set up, are workstations or other technological devices which rely on the servers and their applications to perform the computations and provide the services and needed by the client.

The client has the user interface needed to access the applications on the server. The client itself does not performs any computations while the server is responsible and equipped to perform all the application-level functions.

Each server handles a smaller number of thin clients since all the processing is done at the server end. Each server handles more thick clients since less processing is done at the server end.

Learn more about server on:

https://brainly.com/question/29888289

#SPJ1

what event convinced netflix to switch to a cloud-based service?

Answers

When we had a significant database corruption in August 2008 and were unable to mail DVDs to subscribers for three days, that is when Netflix decided to start using the cloud.

What is software?

Software is defined as a group of guidelines, facts, or software used to run machines and carry out particular activities. The entirety of a computer system's programs, functions, and routines are collectively referred to as software.

A cloud-based utility is software that employs cloud application technology to give up-to-date information to all users while centrally storing data. The application is frequently accessed online or through an app, and the data is typically kept on distant servers.

Thus, a software product or service known as a cloud access security broker (CASB) sits in between a company's on-premises infrastructure and a cloud provider's infrastructure.

To learn more about software, refer to the link below:

https://brainly.com/question/29809198

#SPJ1

A goal a student plans to achieve by tomorrow is described as a(n) A. extended goal. B. short-term goal. C. normative goal. D. long-term goal.

Answers

Answer:

I believe is B

Explanation:

its a short term goal-

Answer:

b

Explanation:

write a program that removes all non-alpha characters from the given input. ex: if the input is: -hello, 1 world$!

Answers

Here's a Python program that removes all non-alpha characters from the given input```python input_string = "-hello, 1 world$!" output_string = "" for char in input_string: if char.isalpha(): output_string += char print(output_string) When you run this program, it will output the following string.

helloworld This program starts by defining an input string variable that contains the text we want to remove non-alpha characters from. We also define an empty output string variable to hold the final result. we loop through each character in the input string using a for loop. For each character, we use the `isalpha()` method to check if it's an alphabetic character.

If it is, we append it to the output string using the `+=` operator. After looping through all the characters in the input string, we print out the output string that contains only the alphabetic characters. The `isalpha()` method is a built-in Python function that returns `True` if a character is an alphabetic character and `False` otherwise. In our program, we use this method to check each character in the input string and only add it to the output string if it is alphabetic. The `+=` operator is a shorthand way of concatenating strings. In our program, we use it to append each alphabetic character to the output string as we loop through the input string. Overall, this program is a simple way to remove non-alpha characters from a given input string. To write a program that removes all non-alpha characters from the given input, such as "-hello, 1 world$!", follow these Define the input string. Create an empty string called "result". Iterate through each character in the input string. Check if the character is an alphabetical character If it is, add it to the "result" string. Print the "result" string. Here's a sample Python program using the above explanation`python # Step 1: Define the input string input_string = "-hello, 1 world$!"# Step 2: Create an empty string called "result" result = "" # Step 3: Iterate through each character in the input strinfor char in input_string:# Step 4: Check if the character is an alphabetical character if char.isalpha(): # Step 5: If it is, add it to the "result" string result += char  Print the "result" strin  print(result) Running this program with the input "-hello, 1 world$!" would result in the output "helloworld".

To know more about removes visit:

https://brainly.com/question/30455239

#SPJ11

Which principle or element of layout design is highlighted in this event poster?
i. a headline
ii. a column
iii. a sub-headline
iv. a caption

Answers

The  principle or element of layout design is highlighted in an event poster in option i: The headline.

What are the elements of page layout?

The poster is known to be one that often uses a kind of hierarchy and centered text alignment as its element.

Note that it is one whose Lines of use is said to be made up of different kinds of type styles, sizes and others.

The simple elements of an advertising poster is made up of:

1. The headline.

2. The sub-head.

3. The body copy.

4. The caption.

The elements of page layout are visual hierarchy, visual flow, and others. Hence, the  principle or element of layout design is highlighted in an event poster in option i: The headline.

Learn more about layout design from

https://brainly.com/question/2501083

#SPJ1



If I want to make it look like slide number one is turning a page to slide number two, what
effect needs to be applied?

Answers

Answer:

Im not certain but I think thwir is one called flip

Explanation:

Kind of works like a book if thats what your asking for

The range of port 1024 to port 4999 is the usual range for ________ port numbers. Group of answer choices well-known ephemeral both A and B neither A nor B

Answers

The range of port 1024 to port 4999 is the usual range for EPHEMERAL port numbers. It is a communication endpoint.

What is an ephemeral port?

An ephemeral port can be defined as an endpoint for transporting a layered protocol of the IP suite.

The ephemeral port is always employed during a very short interval of time in a given session.

Some number examples of ephemeral ports include, among others, HTTPS = 443, HTTP = 80, and RPC = 13.

Learn more about ephemeral ports here:

https://brainly.com/question/2663754

Other Questions
What primary factor affected the art of the plains native american an article gave the following observations on maximum concrete pressure (kn/m2). 33.3 41.9 37.4 40.3 36.7 39.2 36.2 41.9 36.0 35.2 36.8 38.9 35.9 35.3 40.1 (a) is it plausible that this sample was selected from a normal population distribution? because of the number of observations, we ascertain that it is plausible that this sample was taken from a normal population distribution. because of the number of observations, we ascertain that it is not plausible that this sample was taken from a normal population distribution. using a normal probability plot, we ascertain that it is not plausible that this sample was taken from a normal population distribution. using a normal probability plot, we ascertain that it is plausible that this sample was taken from a normal population distribution. (b) calculate an upper confidence bound with confidence level 95% for the population standard deviation of maximum pressure. (round your answer to three decimal places.) If 8.05 mol of an ideal gas has a pressure of 2.06 atm and a volume of 27.83 L, what is the temperature of the sample if fifo page replacement is used with four page frames and three page frames, how many page faults will occur with the reference string 0 1 5 4 2 3 1 2 5 1 0 3 if the four frames are initially empty? now repeat this problem for lru. A basketball coach plotted data about her shooting guards playing time and point scoring in a scatterplot. Shooting Guard Minutes Played and Points Scored A graph has minutes played on the x-axis, and points scored on the y-axis. A line goes through points (8, 6) and (30, 21). Which is the equation of the line of best-fit? y = StartFraction 15 Over 22 EndFraction x + StartFraction 6 Over 11 EndFraction y = StartFraction 15 Over 22 EndFraction x + StartFraction 43 Over 11 EndFraction y = StartFraction 22 Over 15 EndFraction x minus StartFraction 86 Over 15 EndFraction y = StartFraction 22 Over 15 EndFraction x minus four-fifths identify the options below that are results of adding a catalyst to a chemical system. (select all that apply) select all that apply: the reaction rates are increased. the reaction quotient is unaffected. the reaction quotient decreases. the equilibrium constant is unaffected observationally, how can we decide which of the four general expansion models best describes the present-day universe? In the current year, a small business managed revenue of $53,250, while the revenue clocked last year was $51,000. Calculate the relative change in the revenue in the current year compared to last year. Give your answer to the nearest tenth of a percent. Average costs:a) should be the basis for decision makingb) are often misleadingc) are differential costsd) contain sunk costs Help help help help help help help help help help help What term is used to describe the insertion of other organisms dna into the genome of another organism? homogentic transgenetic heterogenetic intergenetic Some consumers, like lions, do not eat plants or any other producers. They only eat other animals.How do lions obtain the carbon they need?by eating animals that have carbon-based molecules stored in their bodiesby breathing it in from the atmosphere in the form of carbon dioxideby absorbing carbon-based molecules through their skin from the soilby drinking water that contains carbon dioxide 1. If magnesium is added to hydrochloric acid, the reaction takes 35 seconds to go tocompletion. It was found to change the hydrochloric acid from 0.5 M to 0.35 M. Your 20-year mortgage loan amount is $300,000, and the nominal interest rate is 3% p.a. How much interest will you pay for the 5th year? $7,598.73 $7,964.73 $8,847.96 $9,000.00 $7,432.38 When prices are increasing at a rate of 12 percent, the cost of products would double in about how many years? The ratio of rabbits to cats is 2:4 respectively. If there are36 cats, how many rabbits are there?Number of rabbits = Which tendency of people with a type a behavior pattern is strongly associated with heart disease? A bowling ball traveling with constant speed hits the pins at the end of a bowling lane 16.5 m long. The bowler hears the sound of the ball hitting the pins 2.79 s after the ball is released from his hands. Which empire or empires were mainly located on the arabian peninsula, south and east of the byzantine empire? test the series for convergence or divergence. [infinity] (7) sin 4 n n = 1 converges diverges