(2-6)÷2+9 pls answer this question step by step​

Answers

Answer 1

Answer:

7

Explanation:

(2-6) ÷ 2+9

(2-6)= -4

-4 ÷ 2+9

-4÷2=-2

-2+9=7

The answer is 7 using PEMDAS


Related Questions

program a macro on excel with the values: c=0 is equivalent to A=0 but if b is different from C , A takes these values

Answers

The followng program is capable or configuring a macro in excel

Sub MacroExample()

   Dim A As Integer

   Dim B As Integer

   Dim C As Integer

   

   ' Set initial values

   C = 0

   A = 0

   

   ' Check if B is different from C

   If B <> C Then

       ' Assign values to A

       A = B

   End If

   

   ' Display the values of A and C in the immediate window

   Debug.Print "A = " & A

   Debug.Print "C = " & C

End Sub

How does this work  ?

In this macro, we declare three integer   variables: A, B, and C. We set the initial value of C to 0 and A to 0.Then, we check if B is different from C using the <> operator.

If B is indeed different from C, we assign the value of B to A. Finally, the values of A and C are displayed   in the immediate window using the Debug.Print statements.

Learn more about Excel:
https://brainly.com/question/24749457
#SPJ1

Cual es la constante de proporcionalidad de la función f(x)= 4x-6 ​

Answers

I just need points because I’m failing thank you !!

The Electronics Communications Privacy Act allows the government to have access to....?

Answers

The Electronic Communications Privacy Act allows the government to have access to a treasure trove of information regarding who you are, where you go, and what you do.

What is Electronic Communications Privacy Act?

Electronic Communications Privacy Act may be defined as a law that determines it is unlawful to wipe or apprehend communication, over wires.

This access to government is accumulated by cell phone providers, search engine operators, social networking sites, and other websites each and every day.

All such network providers track all major activities of individuals through the mode of electronic gadgets.

Therefore, it is well described above.

To learn more about The Electronics Communications Privacy Act, refer to the link:

https://brainly.com/question/14142485

#SPJ1


To what extent do preexisting personal biases affect representation in new media

Answers

Answer:

Below

Explanation:

I believe that it's a bit of a case by case scenario. However, personal biases will inevitably show throughout any sort of writing or other presenting within media. That's why you should always be careful about what you read and believe is true

This is for school. The teacher told us to make a song. Here is mine plz be honest and tell me if it is good or not. Plz be honest


So now that we r friends we can all shake hands. I’m glad the bad things r off my mind because I can get back to my grind yeah. So now I feel free can’t you see. Yeah, I’m happy. Yeah, I’m happy yeah. Yeah, I’m happy. Yeah, I’m happy yeah. Now back to the beat while I sit in my seat and get something to eat. Yeah… Uh huh. LET’S GO! So, as I’m walking down the street, I feel free Uh. Don’t play with me yeah. Don’t act like a clown in my hometown. U wana be frowning because I made a touchdown. Maaaaaaaan STOP HATIN. U wana hate go get u a plate. Oh wait... you can’t get a plate. Driving in my car aint going to far. Gona hit the... dance bar! Dance on the floor gona break the door. Alright I’m tired time to go home and play on my phone.

Answers

Answer:

it's funny I honestly like it I guess it just depends on if your teacher has a sense of humor

THE IS REALLY VERY GOOD....

AND ALL THE BEST FOR YOUR SONG....

data are collected and gather from the __





Answers

Answer:

hard drive

Explanation:

4. Create a Java program that asks for the names of three
runners and the time, in minutes, it took each of them to
finish a race. The program should display the names of
the runners in the order they finished.

Answers

Answer:

Explanation:

Here's a Java program that asks for the names of three runners and the time, in minutes, it took each of them to finish a race, and then displays the names of the runners in the order they finished:

import java.util.Scanner;

public class RunnerRace {

   public static void main(String[] args) {

       Scanner input = new Scanner(System.in);

       

       // ask for the names of the runners and their race times

       System.out.print("Enter the name of runner 1: ");

       String runner1 = input.nextLine();

       System.out.print("Enter the time it took runner 1 to finish (in minutes): ");

       int time1 = input.nextInt();

       input.nextLine();

       

       System.out.print("Enter the name of runner 2: ");

       String runner2 = input.nextLine();

       System.out.print("Enter the time it took runner 2 to finish (in minutes): ");

       int time2 = input.nextInt();

       input.nextLine();

       

       System.out.print("Enter the name of runner 3: ");

       String runner3 = input.nextLine();

       System.out.print("Enter the time it took runner 3 to finish (in minutes): ");

       int time3 = input.nextInt();

       input.nextLine();

       

       // determine the order of the runners based on their race times

       String firstPlace, secondPlace, thirdPlace;

       int firstTime, secondTime, thirdTime;

       if (time1 < time2 && time1 < time3) {

           firstPlace = runner1;

           firstTime = time1;

           if (time2 < time3) {

               secondPlace = runner2;

               secondTime = time2;

               thirdPlace = runner3;

               thirdTime = time3;

           } else {

               secondPlace = runner3;

               secondTime = time3;

               thirdPlace = runner2;

               thirdTime = time2;

           }

       } else if (time2 < time1 && time2 < time3) {

           firstPlace = runner2;

           firstTime = time2;

           if (time1 < time3) {

               secondPlace = runner1;

               secondTime = time1;

               thirdPlace = runner3;

               thirdTime = time3;

           } else {

               secondPlace = runner3;

               secondTime = time3;

               thirdPlace = runner1;

               thirdTime = time1;

           }

       } else {

           firstPlace = runner3;

           firstTime = time3;

           if (time1 < time2) {

               secondPlace = runner1;

               secondTime = time1;

               thirdPlace = runner2;

               thirdTime = time2;

           } else {

               secondPlace = runner2;

               secondTime = time2;

               thirdPlace = runner1;

               thirdTime = time1;

           }

       }

       

       // display the names of the runners in the order they finished

       System.out.println("First place: " + firstPlace + " (" + firstTime + " minutes)");

       System.out.println("Second place: " + secondPlace + " (" + secondTime + " minutes)");

       System.out.println("Third place: " + thirdPlace + " (" + thirdTime + " minutes)");

   }

}

The program first asks for the names of the runners and their race times. It then determines the order of the runners based on their race times, using nested if statements to compare the race times. Finally, the program displays the names of the runners in the order they finished, along with their race times.

Match the hardware device with the "category" into which it falls. Remember to choose
the main function of the device.
SSD
O Storage
O Processing
O Output
O Input
O Other -- on the computer but doesn't fit neatly into a category
O Communication to external peripheral or device

Answers

A, Storage, basically it collects data and stores it for future use. Hope this helps, have a great day.

The parameter string on the URL comes after the path.
True
False

Answers

Answer:

True

Explanation:

LOLOLOLOLOLOLOLO

The parameter string on the URL comes after the path is correct statement. Therefore, the statement is true.

What is URL?

The full form of URL is Uniform Resource locator, which refers to the address of the web pages and have the unique address to help the users to locate the webpages on the internet and collect the relevant information.

The Parameter in a URL refers to pass click-related information and keep the track of the information of the every click by incorporating URL parameters. An equals sign (=) is used to divide a key from a value in URL parameters, and an ampersand is used to unite them.

Some URLs feature a group of characters beginning with a question mark after the path.

Therefore, it can be concluded that after the path comes the parameter string on the URL. Hence, The above statement is true.

Learn more about URL here:

https://brainly.com/question/10065424

#SPJ2

Your company has three divisions. Each group has a network, and all the networks are joined together. Is this still a LAN?

Answers

No, this is not a LAN anymore (Local Area Network). A local area network, or LAN, is a type of network that links devices in a restricted region, like a campus or a single building.

Which kind of network connects a business?

Several LANs are linked together by a WAN, or wide area network. It is perfect for businesses as they expand because it is not location-restricted in the same way that LANs are. They make it possible to communicate with various audiences and might be crucial for global businesses.

If your client just has a small number of computer units, what kind of network would you suggest?

This paradigm works well in contexts where tight security is not required, such as tiny networks with only a few computers.

To know more about LAN visit:-

https://brainly.com/question/13247301

#SPJ1

Consider the following code:
start = int(input("Enter the starting number: "))
stop = int(input("Enter the ending number: "))
x = -10
sum = 0
for i in range (start, stop, x):
sum = sum + i
print(sum)
What is output if the user enters 78 then 45?

Please help me !

Answers

Answer:

The output is 252

Explanation:

To get the output, I'll analyze the lines of code one after the other.

Here, user enters 78. So, start = 78

start = int(input("Enter the starting number: "))

Here, user enters 45. So, stop = 45

stop = int(input("Enter the ending number: "))

This initializes x to -10

x = -10

This initializes sum to 0

sum = 0

This iterates from 78 to 46 (i.e. 45 + 1) with a decrement of -10 in each successive term

for i in range (start, stop, x):

This adds the terms of the range

     sum = sum + i

This prints the calculated sum

print(sum)

The range starts from 78 and ends at 46 (i.e. 45 + 1) with a decrement of -10.

So, the terms are: 78, 68, 58 and 48

And Sum is calculated as:

\(Sum = 78 + 68 + 58 +48\)

\(Sum = 252\)

Hence, 252 will be printed

write a c program to insert and delete values from stack( to perform pop and push operations) using an array data structure

Answers

Answer:

How to implement a stack in C using an array?

A stack is a linear data structure that follows the Last in, First out principle (i.e. the last added elements are removed first).

This abstract data type​ can be implemented in C in multiple ways. One such way is by using an array.

​Pro of using an array:

No extra memory required to store the pointers.

Con of using an array:

The size of the stack is pre-set so it cannot increase or decrease.

write a c program to insert and delete values from stack( to perform pop and push operations) using an
write a c program to insert and delete values from stack( to perform pop and push operations) using an

As you go about your daily life, computers are interwoven in ways that you may not even consider because it is second nature to use them. Take a few minutes to reflect on where you see and/or use computers throughout your day (other than your desktop/laptop, tablet, or cell phone). Identify at least two other ways computers are used in daily life and share one pro and one con for each.

Answers

Smart Home Devices

Pro: Smart home devices, such as smart thermostats, lighting systems, and security cameras, can make our homes more comfortable, energy-efficient, and secure. They can also help us save money on utility bills and give us peace of mind while away from home.

Con: Smart home devices can be vulnerable to cyber attacks, which can compromise our personal information and the security of our homes. They can also be expensive to purchase and install and require technical expertise to set up and maintain.

Automated Teller Machines (ATMs)

Pro: ATMs allow us to access our bank accounts and withdraw cash anytime, even outside bank hours. They can also help us avoid long lines and wait times at the bank and provide greater convenience and accessibility for people with disabilities.

Con: ATMs can be targets for theft and fraud, and their use can put people at risk of robbery or physical harm. They can also be prone to technical glitches or malfunctions, leading to lost or stolen funds and other inconveniences for users.

In C programming

You are to write a "My HEB2" program which will give the user a menu to shop from and display the receipt at the end.
The choices for the user are:
1. Chicken
2. Fritos
3. Bread
4. Fajitas
5.00
3.49
0.03
7.99
I
5. Purchase Items.
You should allow the user to select as many times as they want (you will use a loop for this).
When the user presses 5, the program will calculate the receipt.
Be aware, there is a coupon which will give you 20% off IF you purchase at least 1 of each item.
In the receipt, show the item, the quantity and the total cost.
Display the total price, The amount saved if they used the coupon, the tax amount and the grand total (which is the total + tax).

Answers

Answer:

Here's an example program in C that fulfills the requirements:

#include <stdio.h>

#define CHICKEN_PRICE 5.00

#define FRITOS_PRICE 3.49

#define BREAD_PRICE 0.03

#define FAJITAS_PRICE 7.99

int main() {

int chicken_qty = 0, fritos_qty = 0, bread_qty = 0, fajitas_qty = 0;

char choice;

float subtotal = 0.0, tax = 0.0, total = 0.0, discount = 0.0;

do {

printf("\n*** My HEB2 ***\n");

printf("1. Chicken - $%.2f\n", CHICKEN_PRICE);

printf("2. Fritos - $%.2f\n", FRITOS_PRICE);

printf("3. Bread - $%.2f\n", BREAD_PRICE);

printf("4. Fajitas - $%.2f\n", FAJITAS_PRICE);

printf("5. Purchase Items\n");

printf("Enter choice (1-5): ");

scanf(" %c", &choice);

switch (choice) {

case '1':

chicken_qty++;

subtotal += CHICKEN_PRICE;

printf("Added 1 chicken to cart.\n");

break;

case '2':

fritos_qty++;

subtotal += FRITOS_PRICE;

printf("Added 1 bag of Fritos to cart.\n");

break;

case '3':

bread_qty++;

subtotal += BREAD_PRICE;

printf("Added 1 loaf of bread to cart.\n");

break;

case '4':

fajitas_qty++;

subtotal += FAJITAS_PRICE;

printf("Added 1 fajitas to cart.\n");

break;

case '5':

break;

default:

printf("Invalid choice. Try again.\n");

break;

}

} while (choice != '5');

if (chicken_qty > 0 && fritos_qty > 0 && bread_qty > 0 && fajitas_qty > 0) {

discount = subtotal * 0.2;

}

printf("\n*** Receipt ***\n");

if (chicken_qty > 0) printf("%d Chicken - $%.2f\n", chicken_qty, chicken_qty * CHICKEN_PRICE);

if (fritos_qty > 0) printf("%d Fritos - $%.2f\n", fritos_qty, fritos_qty * FRITOS_PRICE);

if (bread_qty > 0) printf("%d Bread - $%.2f\n", bread_qty, bread_qty * BREAD_PRICE);

if (fajitas_qty > 0) printf("%d Fajitas - $%.2f\n", fajitas_qty, fajitas_qty * FAJITAS_PRICE);

printf("\nSubtotal: $%.2f\n", subtotal);

if (discount > 0.0) {

printf("20%% Discount: -$%.2f\n", discount);

}

tax = subtotal * 0.0825;

printf("Tax: $%.2f\n", tax);

total = subtotal + tax - discount;

printf("Total: $%.2f\n", total);

return 0;

}

Explanation:

This program uses a do-while loop to repeatedly prompt the user for input until they choose to purchase their items (option 5). It keeps track of the quantity of each item selected, as well as the subtotal. If the user purchases at least one

Using your knowledge of classes, arrays, and array list, write the Java code for the UML above in NetBeans. [7 marks]​

Answers

The Java code for the TestElection class that does the tasks is

java

import javax.swing.JOptionPane;

public class TestElection {

   public static void main(String[] args) {

       // Declare an array to store objects of the Election class

       int length = Integer.parseInt(JOptionPane.showInputDialog("Enter the number of candidates:"));

       Election[] candidates = new Election[length];

       // Request values from the user to initialize the instance variables of Election objects and assign these objects to the array

       for (int i = 0; i < length; i++) {

           String name = JOptionPane.showInputDialog("Enter the name of candidate " + (i + 1) + ":");

           int votes = Integer.parseInt(JOptionPane.showInputDialog("Enter the number of votes for candidate " + (i + 1) + ":"));

           candidates[i] = new Election(name, votes);

       }

       // Determine the total number of votes

       int totalVotes = 0;

       for (Election candidate : candidates) {

           totalVotes += candidate.getVotes();

       }

       // Determine the percentage of the total votes received by each candidate and the winner of the election

       String winner = "";

       double maxPercentage = 0.0;

       for (Election candidate : candidates) {

           double percentage = (double) candidate.getVotes() / totalVotes * 100;

           System.out.println(candidate.getName() + " received " + candidate.getVotes() + " votes (" + percentage + "%)");

           if (percentage > maxPercentage) {

               maxPercentage = percentage;

               winner = candidate.getName();

           }

       }

       System.out.println("The winner of the election is " + winner);

   }

}

What is the arrays about?

In the above code, it is talking about a group of things called "candidates" that are being saved in a special place called an "array. " One can ask the user how long they want the list to be using JOptionPane and then make the list that long.

Also based on the code, one can also ask the user to give us information for each Election object in the array, like the name and number of votes they got, using a tool called JOptionPane.

Learn more about  arrays from

https://brainly.com/question/19634243

#SPJ1

Using your knowledge of classes, arrays, and array list, write the Java code for the UML above in NetBeans. [7 marks] Write the Java code for the main method in a class called TestElection to do the following: a) Declare an array to store objects of the class defined by the UML above. Use a method from the JOptionPane class to request the length of the array from the user. [3 marks] b) Use a method from the JOptionPane class to request values from the user to initialize the instance variables of Election objects and assign these objects to the array. The array must be filled. [5 marks] c) Determine the total number of votes and the percentage of the total votes received by each candidate and the winner of the election. The sample output of your program is shown below. Use methods from the System.out stream for your output.

A transport layer message consisting of 1500 bits of data and 160 bits of header is sent to an internet layer, which appends another 160 bits of header. This is then transmitted through two networks, each of which uses a 24-bit packet header. The destination network has a maximum packet size of 800 bits. How many bits, including headers, are delivered to the network-layer protocol at the destination

Answers

The number of bits, including headers, that are delivered to the network-layer protocol at the destination is 1,892 bits.

First step is to calculate the total size

Total size=1,500+160+160

Total size=1,500+320

Total size=1,820

Second step is to calculate the packets

Packets=1820/800

Packets = 2.275

Packets=3 (rounded)

Third step is to calculate the bits

Bits = 1820 + 24 × 3

Bits = 1892 bits

Inconclusion the number of bits, including headers, that are delivered to the network-layer protocol at the destination is 1,892 bits.

Learn more about bits here:https://brainly.com/question/19667078

What game is this ?? Helpp mee??

What game is this ?? Helpp mee??

Answers

Answer:

GTA 5

Explanation:

What type of model does the web use? Choose the answer.

a. Client-Server model
b. Client-Host model
c. Server-Website model
d. Web-Internal model

Answers

The type of model does the web use is

a. Client-Server model

What is client-server model?

The web primarily uses the Client-Server model. In this model, the web is divided into two main components: clients and servers

Clients are devices or software applications that request and consume resources from servers. examples of clients include web browsers (such as Chrome or Firefox) running on users' devices, mobile apps, or even other servers.

Servers on the other hand, are powerful computers or software applications that store and deliver resources in response to client requests. servers host websites, web applications, or other services and are responsible for processing client requests, retrieving data, and sending it back to the clients.

Learn more about Client-Server model at

https://brainly.com/question/30042674

#SPJ1

TCP supports connection-oriented services, so many Internet applications are running on TCP. But we still say Internet is connectionless, why

Answers

Answer:

Much of the traffic on the internet is connectionless because this approach makes it easier to handle certain types of traffic without incurring the overhead of data transmission services, such as connection-oriented protocols

Explain in detail what it means to synchronize computers and mobile devices and include at least two strategies for keeping your files in sync in your answers

Answers

Answer:

Explanation:

To synchronize computers and mobile devices means to use a cloud service that constantly checks to see if local files are up-to-date with the files in the cloud. These services update the cloud files with the local files if they are overwritten for maximum convenience.

Two strategies for keeping files in sync are using Dropbox. Another way is using iCloud if one has Mac/iOS devices.

Write and test a program that computes the area of a circle. This program should request a number representing a radius as input from the user. It should use the formula 3.14 * radius ** 2 to compute the area and then output this result suitably labeled.

Answers

Answer:

mark me brainlist

Explanation:

Write and test a program that computes the area of a circle. This program should request a number representing
Write and test a program that computes the area of a circle. This program should request a number representing
Write and test a program that computes the area of a circle. This program should request a number representing

_____________________ lets a device or software, such as a texting app, identify the words and phrases you speak and then convert them to a format the device can read.

Answers

A speech-to-text devices lets a device or software, such as a texting app, identify the words and phrases you speak and then convert them to a format the device can read.

What are speech-to-text devices?

Text-to-speech (TTS) is known to be a kind of technology that helps to assist a person to be able to reads digital text aloud.

Note that this is one that is often known to be called “read aloud” technology. Through the use of a selection of a button or the touch of a a person's finger, TTS can change words on a computer or other digital device and alter them into audio.

Therefore, based on the above, speech conversion devices are a kind of tool that makes a person to be able to say any kind of words and they can be written down as written words.

Learn more about speech-to-text devices from

https://brainly.com/question/25822357

#SPJ1

A start-up employs interns. The following details of interns are stored

• first_name

• last_name

• address

• mobile_number

• e_mail

Create a class called Intern, which stores the above details. Craft two functions: getdata() which asks the user to enter data, and putdata() to display the data.

Answers

Answer: See below.

class Intern:

   def __init__(self):

       self.first_name = input("Enter first name: ")

       self.last_name = input("Enter last name: ")

       self.address = input("Enter address: ")

       self.mobile_number = input("Enter mobile number: ")

       self.e_mail = input("Enter e-mail: ")

   def getdata(self):

       print("First name: ", self.first_name)

       print("Last name: ", self.last_name)

       print("Address: ", self.address)

       print("Mobile number: ", self.mobile_number)

       print("E-mail: ", self.e_mail)

   def putdata(self):

       print("First name: ", self.first_name)

       print("Last name: ", self.last_name)

       print("Address: ", self.address)

       print("Mobile number: ", self.mobile_number)

       print("E-mail: ", self.e_mail)

Explanation:

A start-up employs interns. The following details of interns are stored first_name last_name address

outline the steps in changing the front type of your text​

Answers

Answer:

Select or highlight the sentence you want to change the font type. Then select the font type in the home tab. Note: there are many types of fonts available, you can choose any.

To change the font type in a Microsoft Word document, follow the steps below. Highlight the text you want to change. Click the down arrow next to the font field on the formatting bar or Ribbon. (If you want to change the font to bold, italic, or underlined, click the B, I, or U on the format bar.)

25. Các phát biểu nào sau, phát biểu nào là đúng:
- tên file không được chứa khoảng trắng
- tên file không nên có dấu tiếng viết
- tên file được dài trên 255 ký tự
- tên file được chấp nhận ký tự khác

Answers


-tên file được chấp nhận ký tự khác

A computer needs both hardware and to be useful

Answers

Answer:

software

Explanation:

with out software the hardware cannot function

What additional uses of technology can u see in the workplace

Answers

Answer:

Here are some additional uses of technology in the workplace:

Virtual reality (VR) and augmented reality (AR) can be used for training, simulation, and collaboration. For example, VR can be used to train employees on how to operate machinery or to simulate a customer service interaction. AR can be used to provide employees with real-time information or to collaborate with colleagues on a project.Artificial intelligence (AI) can be used for a variety of tasks, such as customer service, data analysis, and fraud detection. For example, AI can be used to answer customer questions, identify trends in data, or detect fraudulent activity.Machine learning can be used to improve the accuracy of predictions and decisions. For example, machine learning can be used to predict customer churn, optimize marketing campaigns, or improve product recommendations.Blockchain can be used to create secure and transparent records of transactions. For example, blockchain can be used to track the provenance of goods, to manage supply chains, or to record financial transactions.The Internet of Things (IoT) can be used to connect devices and collect data. For example, IoT can be used to monitor equipment, track assets, or collect data about customer behavior.

These are just a few of the many ways that technology can be used in the workplace. As technology continues to evolve, we can expect to see even more innovative and creative uses of technology in the workplace.

A function:________

a. must always have a function prototype even if the function is above main.
b. must have three parameters in the function header.
c. does not need a function prototype if the function itself is above main.
d. always requires a function call, even if you are not using it

Answers

Answer:

a. must always have a function prototype even if the function is above main.

Explanation:

A function must always have a function prototype even if the function is above main.

The function prototype is a declaration which will have to inform the compiler of the function's arguments and the return type. It also tells the computer the name and parameters of function.

This function prototype contains declaration of function and not implementation.

Alyssa Steiner volunteers at an animal shelter and helps with their fundraising efforts. She has shot a video of the animals and wants to post it on the web to encourage donations. However, the video she shot is a huge MOV file. What can Alyssa do to reduce the size of the video to about 20 MB so it loads quickly on the shelter’s webpage?

Answers

Answer:

See Explanation

Explanation:

Required

What to do, to upload a large video on a webpage

Alyssa has several options to pick from, one of which is to divide the videos into various segments and then upload each segment separately or to compress the huge MOV file and then upload.

Of the two options I highlighted in the first paragraph, the best is to compress the video using a video compressor software and then upload the compressed video.

Also;  MOV files are always huge files, she could convert the video file from MOV file format to mp4 or other compatible video formats. However, this will reduce the video quality (though the reduction may not be visible).

Write an application that displays the factorial for every integer value from 1 to 10. A factorial of a number is the product of that number multiplied by each positive integer lower than it. For example, 4 factorial is 4 * 3 * 2 * 1, or 24. The output would then be The factorial of 4 is 24.

Answers

Answer:

Following are the code to this question:

public class fact//defining class fact  

{

public static void main(String[] ax) //defining main method  

{

int x,f=1;//defining integer variable  

System.out.println("Followig are the factorial from 1 to 10: "); //print message

for(x=1;x<=10;x++)//defining for loop to print factorial from 1 to 10

{

f = f*x;//calculating factorial and store value in f variable

System.out.println("Factorial of "+ x+" is: " +f);//print values

}

}

}

Output:

please find the attached file.

Explanation:

In the above-given java program, a class "fact" is defined, inside the class main method is declared, in which two integer variable "x and f" is declared, in which the variable "f" holds an integer value that is "1".

In the next step, a for loop is declared, that uses the variable x to calculate the factorial from 1 to 10, and stores it value in f variable, in this loop a print method is used that prints its factorial value.

Write an application that displays the factorial for every integer value from 1 to 10. A factorial of
Other Questions
Which does not use radiation but they do use magnetism instead?X-rayMRICT scan the 26 letters of the alphabet are placed on tiles and randomly separated into 2 equal piles. What is the probability that the word MATH can be found in one of the 2 piles? 360 runners are in a race. 20% are men. how many men are in the race? What is the conclusion of rule-utilitarianism? How is it different from act-utilitarianism (i.e. J.S. Mill's theory)? (Explain in your own words)Hospers says that rule-utilitarianism can solve the problems of act-utilitarianism. To what problems is he referring? Explain one of his examples (i.e., the District Attorney, the grade change, the petty thief, etc.)?Scenario: Let's consider Smith for a second. Smith is a well-known mob boss who has nevertheless managed to evade the law so far. He always makes sure there is no direct evidence linking him to a crime. Finally, though, he is arrested on a gambling and corruption charge. Unfortunately, the district attorney in charge of prosecuting him finds information that proves that Smith is actually innocent this time! However, Smith is a career criminal. He has gone free for other crimes and will likely continue to commit crimes if set free now .What considerations would an act-utilitarian District Attorney take into account when considering what the morally right thing to do is in the case above? Would an act-utilitarian district attorney sit on the evidence and let Smith be convicted, knowing that Smith is not guilty of this crime? Explain.What considerations would a rule-utilitarian District Attorney take into account when considering what the morally right thing to do is? Would a rule-utilitarian district attorney sit on the evidence and let Smith be convicted, knowing that Smith is not guilty of this crime? Explain. which one is it, i dont know A 50-year-old man uses +3.0-D lenses to read a newspaper 25 cm away. Ten years later, he must hold the paper 31 cm away to see clearly with the same lenses.What power lenses does he need now in order to hold the paper 25 cm away? (Distances are measured from the lens.) To insert data into mysql database, which command is import to make insert statement become effective if the cnx represents the mysql connector object which connect to a mysql database? a. cnx.valid() b. cnx.effective() c. cnx.insert() d. cnx.commit() Why is it possible to compress a gas which french composer wrote the classical piece clair de lune? what are two examples of numbers that would be natural, whole, and integer a child undergoes surgical removal of a brain tumor. during the postoperative period, the nurse notes that the child is restless, the pulse rate is elevated, and the blood pressure has decreased significantly from the baseline value. the nurse suspects that the child is in shock. which is the most appropriate nursing action? For this assignment you must first do research to find out who your local representatives are and then you must compose a formal letter to yourrepresentative proposing a new bill that you would like to be brought to the house. You may choose from the following options as to what your bill is about1. Environmental law2. Education law3. Rights granted to teenagersYour letter must be no less than 300 words and must be persuasive in tone. Make sure to think about your district and how this bill would help yourcommunity specifically consider the weighted voting system (56 : 46, 10, 3)1. find the banzhaf power index for each player.a. player 1:b. player 2:c. player 3:2. find the shapely-shubik power index for each player.a. player 1:b. player 2:c. player 3:3. are any players a dummy? Why is important to eat foods that are whole and not refined or processed? collective nouns , A Glory of - Mariana debe tomar dos pastillas; una cada 6 horas y otra cada 9 horas. Si a cierta hora toma las dos pastillas juntas, despus de cuantas horas volver a tomarlas simultneamente? which point is located at (6,1) A E H or B? Can you please help me 1. Explain the difference between intentional injuries and unintentional injuries and give examples of each.2. Explain the term "injury prevention" and give examples of ways to prevent at least three specific injuries.3. Define "healthy risk-taking behavior" and "unhealthy risk-taking behavior." Pick one type of unhealthy risk-taking behavior and describe how that behavior might contribute to specific injuries.4. List five different types of violence and define each type.5. Describe the effects of bullying on both the bully and the victim of bullying.6. Select one strategy for preventing or reducing violent behavior or one emergency life-saving procedure and list the steps for the strategy or procedure. Rewrite the following sentence by using parallel structures.1. He needed to re-heat the dish, to add seasoning, or he want to start all over.2. The teacher wondered who the visitor was and his genuine intentions.3. For breakfast, eating fresh fruits is better than processed food.4. Singing in front of my family is one thing, but to perform in an auditorium is something else.5. My teen-age uncle enjoys going to different countries, to explore new tourism spot, and documenting every step of his travels.6. My Favorite hobbies are playing the guitar, listening to sweet music, and to watch musical performance.7. Yesterday, our adviser gave us tips on how to behave when we are at a dance party and to say in opening a conversation.8. The whole class clapped, cheered, and will probably congratulate the winning basketball team.