Which line of code will display the variable rounded to the nearest tenth?
print(num, round)
print(round(num, 1))
print(num rounded)
print(round(num,.1))

Answers

Answer 1

Answer:

print(round(num, 1))

Answer 2

Answer:

D

Explanation:


Related Questions

It is important to know the terms of use of any website because why

Answers

They may be selling your information. For example have you ever seen a icon that said accept cookies.. that is a type of term you must agree on to enter certain websites.
They could sell your information or HAC you

Write a procedure that takes a positive integer as a parameter. If the number given to the procedure is no more than 30, the procedure should return the absolute difference between that number and 30. If the number is greater than 30, the procedure should return the number doubled.

Answers

Answer:

The following code is written in C++

#include<iostream.h>

int main()

{

int n;

cin>>" Enter Number>>n;

if(n < 30)

      {

            cout<<"Absolute Difference is 30";

      }

else

       {

             cout<<"Absolute Difference is "<< 2*n;

       }

return 0;

}

From the demonstration video on navigating the Outlook interface, which of the following is true? Check all that apply.

Use the ALT key on the keyboard to toggle letter keys to activate functions in Outlook.
To get to the Backstage view, click on the File tab on the top left.
The Outlook icon can be found on the Task Bar in Windows by default.
The Message Pane is where you can read the body of the message.
The Reading Pane and the To-Do List can be toggled on and off as needed.

Answers

Answer:

A, B, and E.

Explanation:

I just did it!

ChodeHS Exercise 4.3.5: Coin Flips

Write a program to simulate flipping 100 coins. Print out the result of every flip (either Heads or Tails).


At the end of the program, print out how many heads you flipped, how many tails you flipped, what percentage were heads, and what percentage were tails.

Answers

Answer:

public class CoinFlips extends ConsoleProgram

{

   public static final int FLIPS = 100;

   

   public void run()

   {

       int countH = 0;

       int countT = 0;

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

       {

           if (Randomizer.nextBoolean())

           {

               System.out.println("Heads");

               countH += 1;

           }

           else

           {

               System.out.println("Tails");

               countT += 1;

           }

       }

       System.out.println("Heads: " + countH);

       System.out.println("Tails: " + countT);

       System.out.println("% Heads: " + (double) countH / FLIPS);

       System.out.println("% Tails: " + (double) countT / FLIPS);

   }

}

Explanation:

First define your counting variables for both heads and tails (I named them countH and countT). Set them to 0 at the start of the run.

Then use a for loop to flip the coin 100 times. In the video you should have learned about the Randomizer class so you can use the same idea to print out whether you got heads or tails.

Make sure to keep the count going using >variable name< += 1.

The printing at the end is very basic; print the statement for each: ("Heads: " + >variable name<);

For the percentages, print ("% Heads: " + (double) >variable name< / FLIPS); divided by FLIPS (not 100 or any other int because you will get the wrong value) and remember to cast them as doubles to get the correct value.

The program simulates 100 coin flips and displays the result of each flip and the resulting percentage. The program written in python 3 goes thus :

import random

#import the random module

total = 0

#initialize the total coin flips

h_count = 0

t_count = 0

#initialize variable to hold the number of heads and tails

h_t = ['h', 't']

#define the sample space

while total < 100 :

#keeps track that tosses does not exceed 100

toss = random.sample(h_t, 1)

#variable to hold the outcome of each coin toss

if toss[0] == 'h':

#heck if toss is head

h_count+=1

Increase count of heads. owee

print(toss[0], end=' ')

#display the sample selected

else:

#if not head, then it's tail

t_count+=1

#increase count yv

print(toss[0], end=' ')

total+=1

#

print('head counts : ', h_count, 'percentage : ', round(h_count/100, 2),'%')

print('tail counts : ', t_count, 'percentage : ', round(t_count/100, 2), '%')

# display result.

A sample run of the program is attached

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

What is the output of the code?
public class trackList
public static void main(StringD args)
ArrayList track new ArrayListcinteger)
track.add(45);
track.add(55);
track.add(85);
System.out.print(track);
runtime error
45
55
85
compiler error

Answers

Answer:

45, 55, and 85

Explanation:

The Java program is complete and logically correct. It creates and adds integer values to an array list. The 'System.out.print' function of the track array variable would not throw any error but output the list of integer values.

What do presentations in spreadsheet software have in common??

A. Both analyze numeric data
B. Both calculate numeric formulas
C. Both convey numeric and/or text data
D. Both illustrate 


Hurry plzzz first person gets brainiest

Answers

Answer:

C both convey numeric and text data.

Explanation:

It's the most likely answer.

C) hope this helps out


Victor has an Excel workbook that contains a macro. What is the appropriate file type to save the workbook in?
xlsx
xitx
xlsm
xlx

Answers

Answer:

xlsm

Explanation:

Generally, workbooks are known as Microsoft Excel files. Excel workbook can be defined as a collection of one or more charts and worksheets (spreadsheets) used for data entry and storage in an excel file. In order to create a project on Excel you will have to use a workbook.

A spreadsheet can be defined as a file or document which comprises of cells in a tabulated format (rows and columns) typically used for formatting, arranging, analyzing, storing, calculating and sorting data on computer software applications such as Microsoft Excel.

The Microsoft developers has made it easy for their users to automate the tasks used frequently through the creation and execution of macros.

Basically, macros comprises of commands and instructions which may be grouped together as a single command to automatically execute a task.

In this scenario, Victor has an Excel workbook that contains a macro. Thus, the appropriate file type to save the workbook in is the xlsm extension (format).

Adam is so good at playing arcade games that he will win at every game he plays. One fine day as he was walking on the street, he discovers an arcade store that pays real cash for every game that the player wins - however, the store will only pay out once per game. The store has some games for which they will pay winners, and each game has its own completion time and payout rate. Thrilled at the prospect of earning money for his talent, Adam walked into the store only to realize that the store closes in 2 hours (exactly 120 minutes). Knowing that he cannot play all the games in that time, he decides to pick the games that maximize his earnings

Answers

Answer:

line = sys.stdin.readline()

print(line)

Explanation:

The first line of input is always an integer denoting many lines to read after the first line. In our sample test case, we have 6 in the first line and 6 lines after the first line, each having a game, completion_time and payout_rate.

In each data line, the game, completion_time and payout_rate are separated by a ','(comma).

The games board may change but the store still closes in 120 minutes.

Input

6

Pac-man,80,400

Mortal Kombat,10,30

Super Tetris,25,100

Pump it Up,10,40

Street Fighter II,90,450

Speed Racer,10,40

Output Explanation

Print the game names that earn him the most into the standard output in alphabetical order

Output

Mortal Kombat

Pump it Up

Speed Racer

Street Fighter II

Python:

import sys

line = sys.stdin.readline()

print(line)

Sonja is writing a program to compare two numbers and print the larger number. Which of these should be used?
a while loop
if and else
if, elif, and else
a string variable

Answers

Answer:

if and else

Explanation:

if (num1 > num2):

   print(num1)

else:

   print(num2)

What is the value in y2 when the code show below executes?
x1 = [ 5 3 1 7 9]; [y1 y2] = min(x1)

Answers

Answer:

y2 = 3

Explanation:

This question needs us to give the value of y2 when we run this code in the question.

By min(X1) it is asking for the minimum value in the list of values that we have in the question.

Y1 is the first minimum value in the list and it is = 1

Our answer of interest in this solution is to, which is the second minimum value in the list after Y1

Therefore y2 = 3

Thank you!

A message with 3000 bytes gets encoded using the scheme Base64. What will be the size of the encoded message?

Answers

Answer:

4000 characters

Explanation:

Base64 encodes each set of three bytes into four bytes.

So 3000 * 4/3 = 4000 characters.

I get brainlist to whoever can help my computer is doing this and I have class and it’s not working and I got it wet yesterday but it was fine in homeroom help please

Answers

Answer:

try putting a lot of rice on the screen.

Explanation:

if it got water in it that should help it.

did u try rice? how about turning it off and back on again?

Chief technology officers can influence a company's current and future ____.

Answers

Answer: developments is my best guess

Explanation:

The Publisher-Subscriber design pattern is used to create __________________ communication between software objects and is used to build _____________ components.

Answers

Answer:

indirect, reusable

Explanation:

The Publisher-Subscriber design pattern is used to create indirect communication between software objects and is used to build reusable components.

Name and define two ways an IDS connects to a network.

Answers

Answer:

The two ways an IDS connects to a network are:

1. Signature-based detection uses patterns by establishing a unique identifier for the detection of future cyber attacks, using the IDS sensors and consoles.

2. Statistical anomaly-based detection, as an expert system, relies on the identification of anomalies in the network traffic by comparing against established baselines.

Explanation:

Organizations use the Intrusion Detection System (IDS) as a software program to detect a computer network attack in an effort to stop the attack.  The program analyzes the network traffic for signatures of known cyberattacks and the delivery of network packets.  There are two types: NIDS and HIDS.  Whereas a Network Intrusion Detection System (NIDS) is designed to support multiple hosts, a Host Intrusion Detection System (HIDS) is set up to detect illegal cyber actions in a host's operating system files.


1. Avoid unnecessary sliding of T-square or triangles across the drawing

Answers

Answer:

The answer is "True".

Explanation:

It is vertical or ambiguous districts are called a triangle. It typically comes in different sizes but is made of photographic film or plastic. Its triangles more widely shown are 45 grades and 30 grades were x 60. The following illustrations illustrate their correct use of T-square or triangle graph lines. The T-Place a designing tool, which is used to draw horizontal and vertical lines.

For which of the seven steps to solve a programming problem is the scientific method most useful?

Answers

Answer:

the planning stage

Explanation:

The scientific method would be most useful during the planning stage of solving a programming problem. This is because during this stage you are thinking of what the problem is and what are the possible solutions that may work. The scientific method is made to help scientists do just that, understand what the problem is, design a possible solution from a hypothesis and design a way to implement or test that solution. Which is the most important piece of solving a programming problem (designing a solution)

What is the purpose of creating folders in a file structure????
A. To store more than 256
location
B. To allow windows naming to be applied
C. To secure files
D. To store thousand organized way

Hurry I need help plzzzz!!!

Answers

Answer:

D

Explanation:

everything is about organised it's about how you store your things to find them faster when you need them

Why is it important in manufacturing to determine allowances? How do allowances relate to tolerance dimensioning?​

Answers

Answer:

Sry I can’t really help you with this one

Explanation:

An algorithm is Group of answer choices The part of the computer that does the processing A complete computer program The inputs and outputs of a program A finite set of steps to solve a problem

Answers

Answer:

A finite set of steps to solve a problem

Explanation:

From the list of given options, option D describes an algorithm

Other options such as:

(A) describes the CPU of a computer;

(B) describes a written program which is achieved with the use of one or more programming languages

and (C) which describes the data that is being supplied into the program and also the information expected from the program.

Hence:

(D) is correct

How do I retrieve the number from an old home phone? Someone called my home phone (it is not a cellular phone) and they did not leave their phone number. Any advice welcome.

Answers

Answer: Use recent Callers function

Explanation:

Now all home phones have different ways of getting there, but should you see a settings, or functions button, or even a button that looks out of place in the middle of the phone right underneath the screen, that is the button that you will select. Go through the options available and you will see a option called "Recent Callers" and there you will be able to find all the recent callers whom called your home phone.

5. Describe the concept behind a digital signature and explain how it relates to cybersecurity by providing a hypothetical example of a situation in which a digital signature could enhance cybersecurity

Answers

Answer:

Could help when two doctors have to approve a patients treatment, or when two workers of the same company are working on classified information.

Explanation:

A digital signature creates a stamp on a document, that has time, location and is used to assure that the right person was the one that signed off the document and that no one changed the message or the content of the document between the signer and the receiver.

This helps in providing security and a legal frame to digital documents.

Which utility is used to transform a standalone Windows Server 2012 R2 system into an Active Directory domain controller?

Answers

Answer:

The utility that is used to transform a standalone Windows Server 2012 R2 system into an Active Directory domain controller is called:

PowerShell Command Line 6.

Explanation:

An Active Directory Domain Controller is the box that holds the keys to the Active Directory, centrally managing the access for users, PCs, and servers on the network.  It responds to the authentication requests and verifies the users on computer networks.  The Active Directory is the database that organizes the company's users and computers.

Which of the following is true of operations within a spreadsheet program’s built-in functions?
Operations within parentheses, then multiplication and division, and then addition and subtraction are computed.
Operations within parentheses, then addition and subtraction, and then multiplication and division are computed.
Multiplication and division, then addition and subtraction, and then operations within parentheses are computed.
Addition and subtraction, then multiplication and division, and then operations within parentheses are computed

A. Operations within parentheses, then multiplication and division, and then addition and subtraction are computed.

Answers

Answer:

a is the answer

Explanation:

Docker is focused on ______ containerization.

Answers

Answer:

Application

Explanation:

Docker is a known container technology platform that can help in the packaging of an application by a developer. It is a platform that is used by software developers to build applications based on containers. Using this containerization platform would enable the application to run without issues In any environment. That is either development, test or production environment.

Advanced Search forms make it easier for you to _____. Select all that apply. A. find webpages published within a certain time frame B. search a specific website C. search your computer D. find webpages written in a specific language

Answers

Answer:

The correct answers are A, B and D. Advanced Search forms make it easier for you to find webpages published within a certain time frame, search a specific website and find webpages written in a specific language.

Explanation:

Advanced Search is called the specific search filters that the different internet search engines have, such as Goo.gle or Yah.oo, by means of which parameters can be established within which the search engine will collect information in a more precise way for the user. Thus, the user selects temporal, territorial, idiomatic parameters, etc., on which to focus their search, obtaining more specific results than those that a generic search would yield.

Advanced search forms make it easier to find webpages published within a certain time frame, search a specific website, and find webpages written in a specific language (Options A, B and D).

Advanced search forms enable the generation of search queries by employing specific content fields and/or segments.

The advanced search forms are useful to search any type of specific information in an easy user-friendly manner.

This type of search (advanced search) can be used to customize and filter search results in a dynamic manner, including a given period of time, different languages, etc.

In conclusion, advanced search forms make it easier to find webpages published within a certain time frame, search a specific website, and find webpages written in a specific language (Options A, B and D).

Learn more in:

https://brainly.com/question/3198358

Which tool adds different amazing effects to a picture.

(a) Paint

(b) Lines tool

(c) Magic tool​

Answers

Answer:

magic tool

Explanation:

When is historical data not useful

Answers

Answer:

to address for setting cost increase of a resource to determine the amount of money needed for a future project to plan for future years operation costs to predict sales based on past growth

Which of these is a super class of wrappers Double & Integer?
a. Long
b. Digits
c. Float
d. Number

Answers

A I’d believe sorry if it wrong

pls help ...
Consider the code given below:
public class Testone {
public static void main (String[] args) throws Exception {
Thread.sleep (3000);
System.out.println("sleep");
}
)
What is the result?
Select one:
a. The code executes normally and prints "sleep".
b. The code executes normally, but nothing is printed.
a
C. A RuntimeException is thrown at runtime
d. Compilation fails
e. An exception is thrown at runtime.
Next pag​

Answers

Answer:

You open the class, and print sleep after thread 3000So A
Other Questions
Why the authoritarian system wants full power? In a large population, very close to 25% of the observations will fall below the25th percentile (Q1), and close to 75% fall below the 75th percentile (Q3). TheWeb site of the Educational Testing Service reports that on the SATMathematics test, with a possible perfect score of 800, the 96th percentile of1,475,623 scores nationwide is a score of 720.What is the best estimate of exactly how many scores were below 720?A. 84B. 1,417,000C. 557D. 80%E. 192,000PREVIOUS Identify the dependent clause in the following sentence and determine if it is an adjective (ADJ) or adverb(ADV) clause.Leonardo da Vinci was the artist who painted the Mona Lisa.. Leonardo da Vinci was the artist--ADJ clause. Leonardo da Vinci was the artist--ADV clausewho painted the Mona Lisa --ADJwho painted the Mona Lisa --ADV A town's population of children increased from 376 to 421 during the past year.Which equation shows how to find the percent increase? I need hellp please help me Charmaine must choose a number between 49 and 95 that is a multiple of 4, 8, and 12. Write all the numbers that she could choose. p l p d i s d u m m a $ $p e r s o n w a n t p l p t o s p a m t h e m i g h t y n o t h e r e d a l i n k https://brainly.com/question/20498136?answeringSource=feedPublic%2FhomePage%2F6 In multicellular organismscells that become specialized to perform a specific function are called?A. OrganelleB. TissueC. OrganD. Epithelial I need help graphing -2x+y=8 I WILL GIVE BRAINLIEST!!!!!Now Moses kept the flock of Jethro his father-in-law, the priest of Midian: and he led the flock to the backside of the desert and came to the mountain of God, even to Horeb. And the angel of the Lord appeared unto him in a flame of fire out of the midst of a bush: and he looked, and, behold, the bush burned with fire, and the bush was not consumed. And Moses said, I will now turn aside, and see this great sight, why the bush is not burnt. And when the Lord saw that he turned aside to see, God called unto him out of the midst of the bush, and said, Moses, Moses. And he said, Here am I.Exodus 3:16,Holy BibleThe bush was not consumed meansa.the bush burned up.b.the bush only looked like it was burning.c.the bush was not burned up.d.the bush was not eaten.Please select the best answer from the choices providedABCD helllllllllllllllllllllllllllpppppppppppppp plzzzzzzzzzzzzzzzzzzz nowwwwwwwwwwwwww What is the value of the expression 4+(-2) -3+3 using the periodic table complete the table to describe each atom type in your answers. (IM TIMED)A rule of law should limit the power of the king.Certain basic rights should be protected.Government should be based on an agreement between the ruler and the ruled.According to the information above, which of the following is most influenced by the Magna Carta?A) FederalismB) FeudalismC) Judicial reviewD) Limited Government Solve for x x-5=-7 X=-2X=-5X=-1X=-3 deep water can ______? piece of plastic has a mass of 6.9 kg and a volume of 722 cm3. What is its density in g/cm3? Q1.Suggest 2 ways in which we can end discrimination against women from society.Why is it important to stop this kind of discrimination?(2) A gas was at STP. If the pressure increased to 3.5 atm, what would the newtemperature be? How does nanomatirials or structure effect light