5.Write a program that calculates the factorial of a given number (for example, factorial of 5 = 120).

Answers

Answer 1

Answer:

Using c++ syntax

int givenNumber= 5; //can set to something else

int answer = 1;

for (int i = 1; i <= givenNumber; i++){

   answer *= i;

}


Related Questions

figures and tables are always accompanied by legends or captions located ________ figures and ________ tables.

Answers

Captions are texts that provide the description of a figure or a table.

Complete the blanks using: below and above

When adding captions to an object, the location of the caption is as important as the caption itself.

The location of the caption for the objects of word documents are:

Images - Caption are placed below imagesFigures- Caption are placed below figuresTables- Caption are placed above tables

Hence, the complete text is:

figures and tables are always accompanied by legends or captions located ____below____ figures and ___above_____ tables.

Read more about captions of figures and tables at:

https://brainly.com/question/18710734

Order the steps to describe how to attach a contact to a new email

Answers

Answer:

confirm image correct

Explanation:

did someone hang themselves on the wizard of oz set

Answers

Answer:

false

Explanation:

false it is a myth you

did someone hang themself on the set of wizard of oz

Answers

No - it was a rumour that started when the film was having its 50th anniversary in 1989

which way do you swipe in the android os to access shortcuts on the notification bar?

Answers

Answer:

you swipe downwards

please vote me brainliest thanks:)

based on mla guidelines, what is the correct margin width?

Answers

Answer:

Leave 1 inch margins on each side.

what is output if the user types 13 click all that apply ABCD

Answers

Answer:

AD?

Explanation:

Answer:

A C D

Explanation:

youre welcome :)

remove the cover or chassis or case​

Answers

Answer:

Case. Under that, there is the motherboard which has all the connections to all the hardware

Explanation:

aaron has started a food blog on which he wants to post his recipes. he wants to place a high-quality image next to each cooking step. which file format should he use so that users do not experience a lag when loading the high-quality images on the website?

Answers

The picture format which should be embraced on Aaron's blog in other to ensure that customers have smooth viewing experience while also preserving the quality of uploaded images is the JPEG format.

File format refers to the manner in which files are encoded. Picture files have several encoding types such as JPEG, JPG, GIF, PNG and so on.

Since, Aaron is considering images which loads quickly without lagging, then he'll need to compress the size of the uploaded images so that they have smaller file sizes.

In other to preserve image quality while working down the size of the image, the JPEG image format, produced good quality images with smaller file sizes compared to other file formats.

Therefore, the file format which should be adopted by Aaron ls the JPEG picture format.

Learn more :https://brainly.com/question/24941137

which nims component includes the incident command system

Answers

Answer:

The NIMS Command and Management component

Explanation:

Help Digital photo class

Answers

Answer: i think the answer is c

Explanation:

Answer:

Here’s your answer!

Explanation:

I believe the answer to be D however if the camera still doesn’t work visit a camera shop for help.

Hope this helped

Brainliest please?

Dont forget to smash that heart at the bottom <3

Have a great day,you’re amazing!

Does anyone know how to write this right? This is for a coding class and I’m super confused on it.

First activity:

1. Declare three variables: firstSnack,
second Snack, and thirdSnack.
Assign the name of a snack (as a string)
to each variable.

2. Declare another variable and call it
bestSnack.
Assign a value to bestSnack USING THE
NAME OF ONE OF THE ABOVE VARIABLES.
Do not use a string directly.

3. Now, change your mind! Reassign the value
of bestSnack, again using the variable name,
not the string. (THIS SHOULD BE DONE ON
A NEW LINE)

Second activity:

4. Declare three variables and give them the names of three common grocery items. Assign to each variable a NUMBER value approximately its price. Don’t use $ sign, just the actual number.

5. Declare another variable, name it total, and assign to it the SUM of the three other variables, contain. Hint - you’ll need to use an arithmetic operator to do this.

Answers

Answer:

This is using c++ syntax, you might need to make slight adjustment for other languages.

First activity:

string firstSnack = "chips";

string secondSnack = "pizza";

string thirdSnack = "apples";

string bestSnack =  firstSnack;

bestSnack = secondSnack;

Second activity:

double apple = 0.5;

double banana = 0.75;

double orange = 1.43;

double total = apple + banana + orange;

Explanation:

When first declaring a variable, you want to specify the type (such as int, double, string, bool, etc.) and then the name. You can set the variable value in the declaration, or you can set it to a value later in the program by not having the equals sign and whatever comes next.

what is the term for software that is exclusively controlled by a company, and cannot be used or modified without permission?

Answers

Answer:

Proprietary Software

Explanation:

which type of chart is preferable when you are dealing with a timeframe?

Answers

The type of chart that is preferable when you are dealing with a timeframe is a LINE CHART.

A line chart is a graphical representation that indicates how some variable changes over time.

A line chart can connect a data series of data with a continuous line of time.

This type of chart (line chart) can be very useful to visualize trends in data over intervals of time (i.e., time series).

In conclusion, the type of chart that is preferable when you are dealing with a timeframe is a LINE CHART.

Learn more in:

https://brainly.com/question/5866790

In conclusion, when dealing with a timeframe, a line chart is the most suitable chart type to use. It effectively displays trends and patterns in the data over time and can be used to compare the performance of multiple data sets over the same time period.

The preferable chart type when dealing with a timeframe would be a line chart. A line chart is a type of chart that displays data as a series of points connected by a line, which makes it an ideal chart type to display data over time.

Line charts are effective for showing trends and patterns in the data, as well as identifying outliers and anomalies. This is because the lines in a line chart are continuous, making it easy to see how the data is changing over time. Line charts are also useful for comparing the performance of multiple data sets over the same time period.

In summary, when dealing with a timeframe, a line chart is the most suitable chart type to use. This is because it can effectively display trends and patterns in the data over time. Clustered column charts or column charts are more suitable for comparing different categories of data, and pie charts are better suited for showing the proportion of data in different categories.

It's worth noting that there are different types of charts that can be used depending on the specific context and the type of data being displayed. It's important to consider the purpose of the chart and the message you want to convey when choosing the appropriate chart type. In addition, it's important to ensure that the chart is easy to read and understand by using appropriate labeling, colors, and scales.

When using a line chart to display data over time, there are several best practices that can help make the chart more effective:

Use a clear and concise title that accurately reflects the data being displayed.Label the x-axis (horizontal axis) with the time period being displayed (e.g., months, years, etc.) and the y-axis (vertical axis) with the units of measurement being used.Choose a scale that allows for easy comparison between data points. Avoid using a scale that compresses or distorts the data.Use different colors or styles to differentiate between multiple data sets on the same chart.Include a legend that clearly identifies each data set.Consider adding annotations or callouts to highlight significant events or changes in the data.

By following these best practices, you can create a line chart that effectively displays data over time and helps communicate your message to your audience.

Another important consideration when using a line chart is the frequency of the data points. Depending on the timeframe being displayed, the data may be aggregated into daily, weekly, monthly, or yearly intervals. It's important to choose the appropriate interval based on the context and the level of detail needed. For example, if you're displaying data over a year, daily intervals may be too detailed, and weekly or monthly intervals may be more appropriate.

In addition, it's important to ensure that the data is presented accurately and honestly. The y-axis should start at zero to avoid distorting the data and to provide an accurate representation of the scale of the data. The labels on the x-axis should be evenly spaced and labeled appropriately to provide a clear understanding of the time period being displayed.

In conclusion, when dealing with a timeframe, a line chart is the most suitable chart type to use. It effectively displays trends and patterns in the data over time and can be used to compare the performance of multiple data sets over the same time period.

Learn more about the line chart here:

https://brainly.com/question/29359235.

#SPJ3

A laptop can be kept on palm to work. [true/false) ​

Answers

Answer:

Explanation:

false

what does it mean when the save button on the quick access toolbar changes to a circular set of two arrows?

Answers

When the save button on the quick access toolbar changes to a circular set of two arrows, it means that workbook is saved in the cloud  (It means word is automatically syncing your changes back to OneDrive).

The Quick Access Toolbar (QAT) is simply known as small modifiable toolbar. It is often located at the top of the office application window that is, it can be seen next to the Microsoft Office button. It is known to have its own  set of independent commands and render quick access to commands like Save, Undo, Redo, etc. OneDrive is a renown Microsoft cloud service and a type of cloud services that helps individuals to link up oneself to all our files. It allows storage and protection of  files, sharing and get to them any time.

Conclusively, we can say that When the save button on the quick access toolbar changes to a circular set of two arrows, it means that workbook is saved in the cloud  (It means word is automatically syncing your changes back to OneDrive).

Learn more from:

https://brainly.com/question/17163678

what guidance identifies federal information security controls?

Answers

Answer:

FIPS Publication 200, the second of the mandatory security standards, specifies minimum security requirements for information and information systems supporting the executive agencies of the federal government and a risk-based process for selecting the security controls necessary to satisfy the minimum security..

Explanation:

Hope it helps you..

Your welcome in advance..

(ㆁωㆁ)

The guidance identifies federal information security controls is THE PRIVACY ACT OF 1974.

What is Personally Identifiable statistics?

Personally Identifiable statistics (PII) is any statistics approximately a person maintained with the aid of using an organization, inclusive of statistics that may be used to differentiate or hint a person's identification like name, social safety number, date and region of birth, mother's maiden name, or biometric records.

The Privacy Act states the guidelines that a federal enterprise need to observe to collect, use, transfer, and expose a person's PII.

Read more about the security :

https://brainly.com/question/26260220

#SPJ2

what is the difference between internal and external css?

Answers

Answer:

Internal CSS are the ones that we can write within the same file i.e the HTML code and CSS code are placed in the same file. External CSS are that we can write in a separate file than the html code i.e the HTML file is separate like(index. ... css).

Explanation:

your motherboard has sockets for 184-pin dimm ram. which type of ram should you install?

Answers

Answer:

DDR

Explanation:

DDR is the only type of RAM that runs on 184 pins, its successor DDR2 was upgraded to run on 240 pins.

Hope this helps!

What types of games became popular in the 90s? List three games and how they had evolved from their successful 80s video game rivals.

Answers

Answer:

Doom (1993) Half Life (1998) Super Mario 64 (1997)

Explanation:

Doom and Half-Life were PC games.

Doom was an early 90s PC shooter that was "3d" it wasn't actually 3d but it used a unique rendering system to make it look 3d. It was a level to level shooter that also included secrets

Half-Life was a Actual 3D game and required quite a beefy Graphics card in your computer at the time to run it smoothly, It was a long story-driven game

Super Mario 64 was one of the first "True 3D" games on Home console because it was a launch title for the brand new N64 It utilized the hardware for a brand new experience for console players.

Most 80s games were even more primitive and were either Hosted in arcade cabinets at your local Arcade Such as Outrun (1986) (Btw great soundtrack!) or the NES that allowed you to play the Original few Mario games that were all 2D.

So one of the biggest Evolutions in 80s to 90s gaming is the introduction of 3D titles being able to run on good computers in the early 90s and home consoles could also run 3D titles at the end of the 90s

Pls, mark Brainliest I put my heart and soul into this. Very fun Question!!!

Question # 10
Multiple Choice
Why would a beginning photographer have had a more difficult time learning the art in the early 1900s than now?

Answers

Answer:

cameras were fully Manuel

Hey is anyone else getting this? Don't mind the answer.

Answers

Answer:

Getting what? I don't get what you mean.

Maybe the dog is in heaven…therefore it’s infinity miles while the other has a certain number of miles because it is alive and on the earth..??


Not 100% sure but I think that’s why.

As a member of your barangay,how will you help your community in improving solid waste management?

Answers

Answer:

Reuse materials whenever possible. Recycle materials and organize for government and industry to develop community recycling programs. Collect, transport, and store wastes safely.

what is the name of the method of problem solving that breaks a problem imto smaller problems​

Answers

Answer:

The first thing that came to mind was when my parents tell me "Take it one step at a time" I hope this helps

Explanation:

explain at least three important events during the first generation of programming language?

Answers

Answer:

Python, Ruby, Java, JavaScript, C, C++, and C#.

Explanation:

A programming language is a type of written language that tells computers what to do. Examples are: Python, Ruby, Java, JavaScript, C, C++, and C#. Programming languages are used to write all computer programs and computer software.

what type of malware prevents you from accessing files

Answers

the anwser is _______________ ———_____

how to generate random numbers in excel without duplicates

Answers

Answer:

Generate Random Number List With No Duplicates in Excel:

1. Select cell B3 and click on it.

2. Insert the formula: =RANDBETWEEN(10,30)

3. Press enter.

4. Drag the formula down to the other cells in the column by clicking and dragging the little “+” icon at the bottom-right of the cell.

Explanation:

Hope it helps you..

Your welcome in advance..

(ㆁωㆁ)

given a line of text as input, output the number of characters excluding spaces, periods, or commas.

Answers

Answer:

python:

x = input()

print(len(x))

Explanation:

Which of the following behaviors does not harm a company if your employment is terminated?

getting a copy of word-processing software before leaving

selling trade secrets to competing companies or to your future employer

creating a username and password so you can access company information after you have left

notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave

Answers

Answer:

Notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave.

Explanation:

Trying to grab a copy of your work software can harm the company by potentially creating a security risk. There can still be residual files left by the company left in the software, and any virus or hackers that access your computer can find those files or connect to the company's cloud network.

Selling trade secrets will not only be bad for the company once your employment is terminated, but can actually lead to job termination itself because with those secrets out, competing companies can make identical products of the same (or better) quality for less money, which could result in a loss of profits or even going out of business. This is why non-disclosure agreements exist.

If you can still access company information even after you leave, this poses a security threat to the company because you can then sell that information to other companies or leak it online for everyone to see. Even if you don't do it yourself, a virus or hacker lurking on your computer would be more than happy to do it for you. That information could also be personal payment or identifying information of employees and clients/customers, which could cause people to lose trust in the company.

The best thing to do to avoid facing these consequences and protect other people's information is to turn over your accounts and any information you have of the company and allow them to revoke your access to that information. This not only helps the company remain secure and profitable, but you also won't have to possibly deal with law enforcement and have fewer job opportunities as a result.

Answer:

D. Notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave.

Explanation:

Select the correct answer.

Which statement is true with respect to Java?

Answers

Answer:

where are the options ..... to select

Other Questions
How would you describe this quote Empathya most traditionally feminine quality as society would tell itis not weakness? PLSSS HELP IMMEDIATELY!!!!!! i need help rn only answer if u know, ill mark brainiest! how many cm are in 84.363 km A student repeats a reaction several times to test the effects of variouschanges on the reaction rate. The data table shows the results. Based onthese results, how would decreasing the concentration of the reactantschange the reaction rate?UITISConditionsOriginalHigher concentrationHigher temperatureMetal addedReaction Time (6)10 secondsSseconds5 seconds5 secondsO A. More information is needed to determine what would happen tothe reaction rate.B. Decreasing the concentration would increase the reaction rate.OC. Decreasing the concentration would have no effect on the reactionrate.D. Decreasing the concentration would decrease the reaction rate. what is the surface area of the cylinder with the height of 6ft and the radius of 6ft. round your answer to the nearest thousandth.please NO LINKS!!! 50 - (14 + 12 +2(5) + 2(2) + 3) please help 15 MATH PROBEL Can carbon and hydrogen form double bonds between them? who were the city of gods A triangle has two sides of length 14 cm and 21 cm. Which of the following could represent the length of the third side of the triangle? Select all that apply. 5 cm 15 cm 25 cm O 35 cm 45 cm Qu habra ocurrido con la mariposa del abedul durante la revolucin industrial si no hubieran existido mariposas oscuras? PLEASE HELP!!!!Photoperiodism is one example of how a plant responds to changing seasonal conditions. Why is it important for plants to be able to respond to seasonal changes? Kirk's parents took him to the movies. His mother told him to sit in the front row inthe seat that occupied the median position. The first row in the theatre has 23 seats.What seat did Kirk have to sit in?A 12B 23C 1D 11 f(6) if f(x)=4x what's the answer?a.24b.10c.16or is it d.2 Final Reflection:Provide a shortanalysis overallpresidentialperformance of James Monroe HELP PLEASE I WILL GIVE BRAINLIEST!!!!!!!!!!!!!!!A bacteria colony doubles every 40 minutes. If the colony contains 10 bacteria at noon, how many bacteria are present at 6 pm?A.180B.512C.810D.900E.5120 Estimate 58.311+49.35 by first rounding each number to the nearest whole number. Priscilla is on her schools swim team. Her coach has noted the number of laps Priscilla and five of her teammates can swim without stopping: 5, 4, 6, 3, 7, 5. Help Priscilla summarize this data. To meet your goal for selling raffle tickets, you must meet the inequality t 15. If you sold 16 tickets, did you reach your goal?Yes or No 8x-10=x^2+5 solve using quadratic