Write a program
that asks the user to enter seven
ages and then finds the sum. The input weights
should allow for decimal values.
Sample Run
Enter Age: 25.2
Enter Age: 26.7
Enter Age: 70
Enter Age: 30
Enter Age: 52.6
Enter Age: 24.4
Enter Age: 22
Sum of Ages
250.9

Answers

Answer 1

C++ is an extremely capable general-purpose programming language. It can be used to create operating systems, browsers, and games, among other things.

What is the program?C++ supports various programming styles such as procedural, object-oriented, functional, and so on. As a result, C++ is both powerful and flexible.Because C++ is statically typed, it compiles code faster than Python. Python is slower than C++ because it supports dynamic typing and relies on an interpreter, both of which slow down compilation.

Given,

The input is entering seven ages.

The output is the sum of ages.

The C++ program code of the given problem is:

#include <iostream>

int main(int argc, char* argv[])

{  

  float sum = 0;

  for(int i=0;i<7;i++)

{

      float tmp;

      std::cout << "Enter age: "; std::cin>>tmp;

      sum+=tmp;

  }

  std::cout << "Sum of ages = " << sum << std::endl;

  return 0;

}

To learn more about C++ program refer to :

https://brainly.com/question/27019258

#SPJ1


Related Questions

a tool preset can be used to store all brush-related settings, such as brush shape, blending mode, and opacity, in a single selection. t/f

Answers

A tool preset can be used to store all brush-related settings, such as brush shape, blending mode, and opacity, in a single selection. This statement is true.

What is meant by single selection ?

An answer option or form control that allows a user to select one from a group of related options is known as a single-select.

Because it chooses or disregards a single action (or, as we'll see in a moment, a single collection of actions), the if statement is a single-selection statement. Because it chooses between two distinct actions, the if... else statement is referred to as a double-selection statement (or groups of actions).

For each characteristic or parameter on a view, selection lists provide the user with a comprehensive list of all possible options. You can choose the suitable property or parameter value from a list using a selection list.

To learn more about single selection refer to :

https://brainly.com/question/3374927

#SPJ4

Programs that perform business functions, such as general ledger and accounting, are examples of ________.a) application softwareb) system softwarec) firmwared) operating systems

Answers

Applications software includes, for instance, general ledger and accounting programs that carry out business operations.

What is software for application systems? Examples of application software include programs that carry out administrative tasks like general ledger and accounting.A particular kind of computer program called application software carries out particular professional, academic, and personal tasks.Each program is made to help users of it do a range of tasks, some of which might be connected to productivity, creativity, or communication.Accounting, purchasing, project management, risk management and compliance, and supply chain management are just a few of the everyday business tasks that are managed by firms using enterprise resource planning (ERP) software.An illustration of application software is shown below:Spreadsheet, presentation, word processing, and multimedia software are just a few examples of the types of software available.Business software that is frequently used:Desktop publishing applications, asset management software, billing software, payroll software, asset accounting software, and word processing software.

To learn more about Applications software refer]

https://brainly.com/question/26954052

#SPJ4

In general terms, the cloud refers to high-power, large-capacity physical _____ located in data centers, and each one typically hosts multiple _____.

Answers

A data center's high-power, large-capacity physical servers, each of which often houses several virtual servers, are referred to as the "cloud" in general.

By cloud computing, what do you mean?

A type of abstraction known as "cloud computing" is built on the idea of pooling real resources and presenting them to consumers as virtual resources. In the simplest terms, cloud computing refers to the practise of storing and accessing data and software on remote servers located online rather than a computer's hard drive or local server.

A virtual server: what is it?

In contrast to dedicated servers, virtual servers pool hardware and software resources with other operating systems (OS).

To learn more about cloud computing visit:

brainly.com/question/11973901

#SPJ4

question 2 (10 pts): briefly explain the overall algorithm of afl approach. (hint: see its documentation)

Answers

American Fuzzy Lop, often known as AFL, is a smart fuzzer that generates new test cases by changing the seed input that is supplied at the start of the fuzzing process.

Describe the fuzzing.

Programming and software development use fuzzing, a technique for automated software testing that involves providing random, false, or faulty input into a computer program.

The software is then examined for defects such as crashes, failed in-built code assertions, or potentially dangerous memory leaks.

The majority of the time, fuzzers are used to assess programs that accept structured inputs.

This structure, which distinguishes between acceptable and unacceptable input, is described, for instance, in a file format or protocol.

To learn more about American Fuzzy Lop refer to:

brainly.com/question/9579420

#SPJ4

the multimedia effect states that we learn better when information is presented both verbally and visually. True or false

Answers

According to the multimedia effect, we retain knowledge better when it is delivered verbally and visually. which is incorrect. When text, drawings, still and moving images (videos), graphics, audio, and animation are combined with computer assistance, this is referred to as multimedia.

What is multimedia ?

false The "multimedia effect," which is supported by research, states that most people digest information more effectively when it is delivered audibly and graphically.Your audience will be able to visually experience your speech through all five of their senses—hearing, vision, smell, taste, and touch—because you are speaking in real time. The audience's overall experience of your topic is enhanced by presentation aids in addition to your vocal and nonverbal embodiment.Charts and graphs called pictograms employ symbols and pictures to represent data.

Pictograms, sometimes referred to as "pictographs," "icon charts," "image charts," and "pictorial unit charts," use a string of recurrent icons to represent straightforward facts.The most popular type of visual assistance today is certainly Microsoft PowerPoint.A presentation can be supported by slides created and displayed using the computer program PowerPoint.

Therefore the correct answer is false .

To learn more about multimedia refer to :

https://brainly.com/question/24138353

#SPJ4

A team member who does not feel comfortable disagreeing with someone’s opinion in front of the team would most likely come from a(n) _____ culture.

cooperative
cooperative

individualistic
individualistic

collectivistic
collectivistic

competitive

Answers

A team member who does not feel comfortable disagreeing with someone’s opinion in front of the team would most likely come from a collectivistic culture.

What is collectivistic culture?

In collectivistic cultures, people are considered "good" if they are generous, helpful, dependable, and attentive to the needs of others. This contrasts with individualistic cultures, which often place a greater emphasis on characteristics such as assertiveness and independence. People in collectivist cultures, compared to people in individualist cultures, are likely to define themselves as aspects of groups, to give priority to in-group goals, to focus on context more than the content in making attributions and in communicating, to pay less attention to internal than to external processes. As a result, collectivist cultures value collaboration, communalism, constructive interdependence, and conformity to roles and norms. A collectivist culture is especially likely to emphasize the importance of social harmony, respectfulness, and group needs over individual needs.

To know more about collectivistic culture visit:

https://brainly.com/question/14873316

#SPJ1

The default view that PowerPoint opens in is called ____ view.
a. Slide
b. Normal
c. Standard
d. Edit

Answers

Correct answer:- (b) Normal

The default view that PowerPoint opens in is called the normal view.

What is a default view sometimes known as?

The Normal view in PowerPoint is the default view. The normal view is the one in which we may format, add slides, and modify.

Which slide in PowerPoint is the default?

When you create a new presentation, by default, a Title slide will be added since Micro-soft believes that the first slide in your presentation should be for the title. Two text boxes can be included on a title slide.

What makes it a default?

When a borrower ceases making the required payments on a loan, a default happens. Whether the debt is secured, like a mortgage secured by real estate, or unsecured, like credit cards or student loans, defaults can happen.

To know more about power point visit:

https://brainly.com/question/23714390

#SPJ4

. An engineer has calculated the list of subnet IDs, in consecutive order, for network
172.30.0.0, assuming that the /22 mask is used throughout the network. Which of the
following are true? (Choose two answers.)
a.
Any two consecutive subnet IDs differ by a value of 22 in the third octet.
b.
Any two consecutive subnet IDs differ by a value of 16 in the fourth octet.
c.
The list contains 64 subnet IDs.
d.
The last subnet ID is 172.30.252.0

Answers

The network as a whole employs the /22 mask. 64 subnet IDs are included in the list. 172.30.252.0 is the last subnet ID shown.

How can you figure out how many subnets there are in a network?

Number of total subnets: The value 248 (11111000) of the subnet mask 255.255.255.248 shows that 5 bits are utilized to identify the network.

How is an ID for a subnet determined?

By counting the subnet bits, also known as the number of bits by which the initial mask was stretched, one can determine the number of subnets. We were first given the IP 192.168.0.0 with the mask 255.255.0.0.

To know more about network visit:-

https://brainly.com/question/15088389

#SPJ1

A network engineer has determined the list of subnet IDs, in chronological order.

A. Any two consecutive subnet IDs differ by a value of 22 in the third octet.

D. The last subnet ID is 172.30.252.0.

What is engineer?

Engineering is the application of scientific principles and practical knowledge to design, create and analyze technological solutions. It is a field of study that combines the use of mathematics, science and technology to solve problems in the real world. Engineers use their knowledge of mathematics, science and engineering principles to create innovative solutions to a wide range of problems. Engineers work in a variety of industries, from aerospace and automotive to biomedical and electrical. They also work in many different settings, from research laboratories to manufacturing facilities. Engineers are responsible for creating products, machines, systems and processes that meet the needs of customers and society.

To learn more about engineer

https://brainly.com/question/17169621

#SPJ1

Your friend is trying out your new password generator program. She wants to know how it works. How would you explain it to her? Keep in mind that she does not know Python code. Make sure to use good communication techniques.

k12

Answers

The program generates a password by using a dice. That specific dice is filled with billions of strong password combinations. You roll that die and it would land on a combination with a strong password that is easy to remember and that you can use to safely secure your accounts.

For a further understanding visit: https://brainly.com/question/29941191

You can use anything as an example like food, air, etc.

I hope this helps

the parallelism of a multithreaded computation is the maximum possible speedup that can be achieved on any number of processors

Answers

The greatest speedup that any number of processors may achieve is the parallelism T1/T8. For any number of processors more than the parallelism T1/T8, perfect linear speedup cannot be achieved.

What does a computation that uses several threads do?

The overall amount of time needed to complete a multithreaded computation on a single processor is called the work. Therefore, the work is an accounting of the total time spent on each thread.

What does a parallel computer accomplish?

The total quantity of computing effort that is completed is referred to as work in physics. With P processors, an ideal parallel computer can complete up to P units of work in one time step.

To know more Parallelism T1/T8 visit :-

https://brainly.com/question/29190324

#SPJ4

a error occurs when the program successfully compiles, but halts unexpectedly during runtime.

Answers

Run-time errors are when a software correctly builds, but then unexpectedly crashes during runtime.

What is run-time errors ?

A runtime error is a software or hardware issue that interferes with Internet Explorer's proper operation. When a website employs HTML code that conflicts with a web browser's capability, runtime issues may result. A runtime error happens when a program has a problem that is only discovered during program execution even though it is syntactically sound.

Here are some instances of typical runtime faults you are guaranteed to encounter: The Java compiler is unable to catch these flaws at build time; instead, the Java Virtual Machine (JVM) only notices them when the application is running. Variable and function names that are misspelled or wrongly capitalized. attempts to conduct operations on incorrectly typed data, such as math operations (ex. attempting to subtract two variables that hold string values)

To learn more about run-time error refer to :

https://brainly.com/question/13106116

#SPJ4

You’re using last-click attribution, but would like to see how first-click attribution would value channels and campaigns. Which report can you use to find this insight?Conversion paths
Funnel exploration
Segment overlap
Model comparison

Answers

The report that can be used to find this insight is a model comparison. The correct option is c.

What is a model comparison?

The many conventional statistical tests that are frequently taught to students of the social sciences (and others), according to Judd et al. (2008), can all be seen as statistical comparisons of two different models of the data.

They view statistical inference testing as a "model comparison" process within the context of the least-squares criteria. The resulting unified framework offers researchers a great deal of flexibility in terms of altering their statistical tests to concentrate on the specific research issues they wish to address.

Therefore, the correct option is c, Model comparison.

To learn more about model comparison, refer to the below link:

https://brainly.com/question/29854475

#SPJ1

Which of the following should be selected as X in the given series of clicks to set formulas for manual calculation: File < Options < X < Manual?
a. Proofing
b. Language
c. Formulas
d. Advanced
Formulas

Answers

C. Formulas. Excel is forced to recalculate each and every calculation in every open spreadsheet, including those that have not been altered, by pressing Ctrl + Alt + F9.

How are the automated formula calculation choices set?

Click the Formulas tab in the Excel spreadsheet for the web. Select one of the following choices from the dropdown menu next to Calculation Options: Click Automatic to have all dependent formulae recalculated each time a value, formula, or name is changed. The default setting is this.

Which of the following is a computation tool?

Abacus, sometimes known as abaci or abacuses, is a long-used calculating tool in trade that is likely of Babylonian origin.

Learn more about ms excel here:

https://brainly.com/question/20395091

#SPJ4

You want to know which files are large files (at least 0.1MB) in your data directory, but you do not want to go through them one by one. So you decide to design a regular expression to help with this. Locate the rule under the p1 target in your Makefile. This rule uses the Is command to list the contents of the data directory in your current folder. The -I option produces the long listing for these contents, which includes their size in bytes. The output of this is command is then piped as input into grep command. The-E option for the grep command allows searching through this text with a regular expression. Replace the regular expression in this grep command to search for any 6 digit number. Since the size of these files are displayed in bytes, the smallest possible six digit number: 100000 corresponds to 0.1MB. When this regular expression is correct, running "make p1" should display the three large files that can be found within the provided data directory. Tip: Start by composing a regex that matches any single digit, and test this to make sure that it works as expected. If you encounter trouble with one specific way of matching single digits, like \d, then please try to find another way that works with grep - E. Once this is working, look for a way to extend this pattern so that it must be repeated exactly six times to be matched.

Answers

You must pipe the command's output through grep in order to utilize grep as a filter. " | " is the symbol for pipe.

Explain about the grep?

The full line containing the matched string is displayed by default when using grep. To display only the matched pattern, change this setting. Using the -o option, we may instruct grep to show only the matching string. Using grep -n, output should be displayed together with the line number: To display the file's line number where the matching line was found.

Within collections of files, the grep command can look for a string. It outputs the name of the file, a colon, the line that matches the pattern, and the pattern when it discovers a pattern that matches in more than one file.

Instead of putting a filename at the end of a grep command, use an asterisk to search all files in the current directory.

To learn more about string refer to:

https://brainly.com/question/16397908

#SPJ4

a researcher conducted an experiment in whice he compared two methods of teaching if there were 10 people

Answers

A researcher ran an experiment in which he contrasted two teaching strategies for a class of ten students. then using 10 as a teaching strategy.

What is a good number of people for an experiment?

When utilizing qualitative methods, 30 is more than sufficient and a respectable sample size, but when using quantitative methods and analysis, less than 100 is insufficient for even a basic statistical analysis.

It is fairly simple to differentiate instruction and learning. Giving lessons on a specific subject to a group of students is the simple definition of teaching. Learning, on the other hand, is obtaining knowledge through study, instruction, and experience.

Face-to-face lectures involve students and instructors interacting in real time, which is one of the key contrasts between face-to-face and online training. In contrast, online students study at their own pace, going through lectures and other course materials.

To learn more about teaching method refer to :

https://brainly.com/question/22786034

#SPJ4

create a logical model identify entities and attributes input the data into the tables database create a conceptual model implement the database

Answers

A logical model includes depictions of entities, properties, relationships, special identifiers, sub types, and super types, as well as restrictions on how relationships can be formed.

What is  data model?

A logical model may also reference one or more domain or glossary models or include objects from a domain model. Relational data models, network data models, and hierarchical data models are three examples of this sort of data model. Data are represented as relations, or tables, in the relational model. System for managing orders simply. This is a conceptual data model for a straightforward wholesale retail order management system. Even though some consumers might not have sent any orders yet, customers send orders to the store. Each order item for a product is one of many order items that make up the order.

To learn more about  data model from given link

brainly.com/question/10686043

#SPJ4

Other Questions
Simplify 4x - 7 + 12x - 3. Find the y intercept y = 17 x + 12. You want to know which files are large files (at least 0.1MB) in your data directory, but you do not want to go through them one by one. So you decide to design a regular expression to help with this. Locate the rule under the p1 target in your Makefile. This rule uses the Is command to list the contents of the data directory in your current folder. The -I option produces the long listing for these contents, which includes their size in bytes. The output of this is command is then piped as input into grep command. The-E option for the grep command allows searching through this text with a regular expression. Replace the regular expression in this grep command to search for any 6 digit number. Since the size of these files are displayed in bytes, the smallest possible six digit number: 100000 corresponds to 0.1MB. When this regular expression is correct, running "make p1" should display the three large files that can be found within the provided data directory. Tip: Start by composing a regex that matches any single digit, and test this to make sure that it works as expected. If you encounter trouble with one specific way of matching single digits, like \d, then please try to find another way that works with grep - E. Once this is working, look for a way to extend this pattern so that it must be repeated exactly six times to be matched. a vertical spring has a spring constant of 100 n/m. when an object is attached to the bottom of the spring, the spring changes from its unstretched length of 0.50 to a length of 0.65 m. the magnitude of the weight of the object is If country A can produce both goods X and Y more efficiently, that is, with smaller absolute amounts of resources, than can country B:A.then there is no possible basis for mutually advantageous specialization and trade between A and B.B.we can conclude that A is an industrially advanced economy and B is a developing economy.C.mutually advantageous specialization and trade between A and B may still be possible.D.it will necessarily be advantageous for B to import both X and Y from A. During the synthesis of Indanthrene scarlet several sequential reactions take place in the same reaction flask. In the space provided below draw out the sequential reactions and list the name of the functional group formed at each step. expressions equivalent to 9 2/3 True or False? A true market segment meets all of the following criteria:it is distinct from other segments (different segments have different needs), it is homogeneous within the segment (exhibits common needs),it responds similarly to a market stimulus, and it can be reached by a market intervention Of the options listed below, which are examples of diversifiable risk? I.Wildfires damage an entire town II.The federal government imposes a $1,000 fee on all business entities III.Payroll taxes are increased nationally IV.All software providers are required to improve their privacy standards Multiple Choice oI and IV only oII and III only oI and III only oI, III, and IV only oII and IV only landings at the top and bottom of stairs should be at least equal in length to the of the stairway. A professor wanted to know what proportion of college students believe in ghosts. She polled 200 students and found that 58% said they believe in ghosts. Create a 99% confidence interval for the true proportion of college students believing in ghosts. a. (0.5116, 0.64840 b. (0.2074, 0.3727) c. (0.4901, 0.6699) d. (0.2271,0.3529) How specifically is kinetic energy lost during a car crash? The United States is the world's best hope, but.... if you tangle her in the intrigues of Europe, you will destroy her power for good, and endanger her very existence..-Senator Henry Cabot Lodge10.Senator Lodge made this statement in opposition to - read the picture plsss x^4-2x^2-16x-15=0 find the zeros with work please Solve for c.4(c + 17) = 16C =Please help Write the coordinates of the vertices after a reflection over the line y=-5. 6x-7=1-3x[tex]6x-7=1-3x[/tex] Before accepting any opinion on any issue as "the truth" you should look for evidence that ____ a concentration of 400 ppm is the safe soil lead concentration threshold. the scientist used method a and found the soil sample had a lead concentration of 1358 ppm. write a conclusion about the lead concentrations in this sample of soil. in your conclusion include one recommendation from the table.