Answers

Answer 1

The code that configures Higher /Lower (Guessing Game) is

secret_number = 3.3312

while True:

guess = float(input("Enter a guess: "))

if round(guess, 2) == round(secret_number, 2):

print "Correct!"

break

elif (guess > secret_number):

print "Too high!"

else:

print "Too low!"

How does the above code work?

The Python code implements a guessing game where users enter their guesses.

It compares the guesses to a secret number and provides feedback if the guess is too high or too low. The game continues until the correct guess is made, displaying "Correct!" as the output.

Learn more about code at:

https://brainly.com/question/26134656

#SPJ1


Related Questions

dofemines the colour Hoto to Windows - Frome​

Answers

You can use these techniques to figure out the colour photo in Windows. Open the image or photo file on your Windows computer first.

Then, check for choices or tools linked to colour settings or modifications, depending on the picture viewer or editor you're using.

This could be found under a menu item like "Image," "Edit," or "Tools." You can adjust a number of factors, including brightness, contrast, saturation, and hue, once you've accessed the colour options, to give the shot the appropriate colour appearance.

Play around with these options until you get the desired colour result.

Thus, if necessary, save the altered image with the new colour settings.

For more details regarding Windows, visit:

https://brainly.com/question/17004240

#SPJ1

Your question seems incomplete, the probable complete question is:

determine the colour photo to Windows

In business writing, you should always use a formal tone when addressing an audience.

Question 4 options:
True
False

Answers


i would say true. my reasoning behind this is that if you use an informal tone, it may take the focus away from your subject or it may make the writing seem less serious.
hope this helped

Which of the following can the reverse outlining technique help to identify? Select one.

Question 6 options:

Opportunities for humor


The quality of the author’s ideas


Improper citations


Overlap in ideas


Missing keywords

Answers

Answer:

The reverse outlining technique can help identify overlap in ideas.

Which of the following can the reverse outlining technique help to identify? Select one.

Question 6 options:

Opportunities for humor


The quality of the author’s ideas


Improper citations


Overlap in ideas


Missing keywords

Answers

The reverse outlining technique can help to identify overlap in ideas.

Understanding Reverse Outlining

Reverse Outlining is a technique used to analyze and organize the structure of a written piece, such as an essay or a research paper. It involves creating an outline of the existing work after it has been written, rather than before.

By going through the process of reverse outlining, writers can gain a clearer understanding of the structure and organization of their work

Learn more about reverse outlining here:

https://brainly.com/question/13282881

#SPJ1

When using for loops to iterate through (access all elements of a 2D list), the outer loop accesses the __________.

Answers

Answer:

When using for loops to iterate through (access all elements of a 2D list), the outer loop accesses the iterates over the sublists of the 2D list, enabling you to conduct actions on individual rows or access specific components inside rows. The inner loop is then used to iterate through each sublist or row's items.

Which of the following accurately describes “tone”? Select all that apply.

Answers

The accurate descriptions of "tone" are:

Tone can have unintended consequences depending on the context or timing.Tone helps to create a level of intimacy with a target audience.

Descriptions of "tone"

Tone does not refer to the action the audience takes after reading the message. the audience's actions are typically influenced by the content and intent of the message, but not by the tone alone.

Tone does not refer to the exact emotion an author is feeling while writing. while the author's emotions may influence the tone, the tone itself is the overall attitude or style conveyed in the message, not the specific emotions of the author.

Tone does not refer to the central topic of a message. The central topic is the subject or theme of the message, while tone relates to the way the message is expressed or the attitude conveyed.

Learn more about tone at

https://brainly.com/question/12176973

#SPJ1

consider the pre- and postplanning needs of a film production, as well as what you will need to do during the actual filming of the video. Your action plan should be at least 150 words in length.

Answers

During the initial stages of a movie-making process, you must craft a script, formulate a financial blueprint, obtain funding, employ vital staff members like the director and film crew, search for ideal filming spots, and organize a shooting calendar.

What is postplanning?

Postplanning refers to the process of arranging post-production tasks, such as refining, sound manipulation, and enhancing visual elements.

Additionally, it involves developing and implementing promotional and delivery tactics.

While filming, your role would involve supervising the setting, collaborating with the cast and crew, handling intricate technicalities such as lighting and camera work, ensuring adherence to the script, and tackling any unforeseen obstacles that surface on set to facilitate a seamless production experience.

Read more about postproduction here:

https://brainly.com/question/31651152

#SPJ1

Declare an array to store objects of the class defined by the UML. Use a method from the JOptionPane class to request the length of the array from the user.

Answers

Answer:

it's a test ?                                                  

The showInputDialog method is a part of the JOptionPane class in Java Swing, which provides a set of pre-built dialog boxes for displaying messages and obtaining user input.

Here's an example of how you can declare an array to store objects of a class, and use a method from the JOptionPane class to request the length of the array from the user:

import javax.swing.JOptionPane;

public class MyClass {

   // Define your class according to the UML

   public static void main(String[] args) {

       // Request the length of the array from the user using JOptionPane

       String lengthInput = JOptionPane.showInputDialog("Enter the length of the array:");

       // Parse the user input to an integer

       int arrayLength = Integer.parseInt(lengthInput);

       // Declare the array to store objects of the class

       MyClass[] myArray = new MyClass[arrayLength];

       // Now you have an array of the desired length to store objects of your class

       // You can proceed to instantiate objects and store them in the array

   }

}

In this example, we use the showInputDialog method from the JOptionPane class to display an input dialog box and prompt the user to enter the desired length of the array. The user's input is then parsed into an integer using Integer.parseInt() and stored in the arrayLength variable.

Therefore, an array myArray of type MyClass is declared with the specified length, ready to store objects of the MyClass class.

For more details regarding the showInputDialog method, visit:

https://brainly.com/question/32146568

#SPJ2

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.

Answers

There is an `ElectionTest` class that contains the `main` method. Inside the `main` method, use the `JOptionPane.showInputDialog` method to display a dialog box and request the length of the array from the user. The entered value is then parsed as an integer and stored in the `arrayLength` variable.

How did we declare it?

To declare an array to store objects of the class defined by the given UML diagram and request the length of the array from the user using a method from the `JOptionPane` class, use the following Java code:

java

import javax.swing.JOptionPane;

public class ElectionTest {

public static void main(String[] args) {

// Request the length of the array from the user

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

// Declare the array to store Election objects

Election[] elections = new Election[arrayLength];

// Perform operations with the Election objects as required

// ...

}

}

class Election {

private String candidate;

private int numVotes;

public Election() {

// Default constructor

}

public Election(String candidate, int num Votes) {

this.candidate = candidate;

this.numVotes = num Votes;

}

public void set Candidate(String candidate) {

this.candidate = candidate;

}

public void set NumVotes (int num Votes) {

this.numVotes = num Votes;

}

public int getNumVotes() {

return num Votes;

}

at Override

public String toString() {

return "Candidate: " + candidate + ", Votes: " + numVotes;

}

}

```

In this code, there is an `ElectionTest` class that contains the `main` method. Inside the `main` method, use the `JOptionPane.showInputDialog` method to display a dialog box and request the length of the array from the user. The entered value is then parsed as an integer and stored in the `arrayLength` variable.

Next, declare an array of type `Election` called `elections` with the specified length obtained from the user.

learn more about java code: https://brainly.com/question/25458754

#SPJ1

Which command would you use to replace all the Os and 1s in a spreadsheet
with As and Bs?
A. Alt + E
B. Alt + Tab
C. Ctrl + X (or Cmd + X on a Mac)
OD. Ctrl + F (or Cmd + F on a Mac)

Answers

The correct command to replace all the Os and 1s in a spreadsheet with As and Bs is: D. Ctrl + F (or Cmd + F on a Mac)

What is the command?

The Ctrl + F (or Cmd + F on a Mac) command is usually used to open the "Find and Replace" talk snare miscellaneous requests, including computer program programs like Microsoft Excel or G/o/o/gle Sheets.

The "Find and Replace" talk box supports a available habit to follow distinguishing quotation or principles inside a spreadsheet and change ruling class accompanying various manual or principles.

Learn more about   spreadsheet from

https://brainly.com/question/4965119

#SPJ1

With suitable example, illustrate the use of #ifdef and #ifndef.

Answers

Partitions are used to divide storage spaces into manageable segments.

Fixed partitions have a predetermined size, and they are used to allocate storage space based on the needs of an application. Fixed partitions are commonly used in mainframe systems, where applications require predictable amounts of storage.

For example, consider an organization that uses a mainframe system to manage its payroll. In this scenario, the organization may use fixed partitions to allocate storage space to the payroll application, ensuring that it has access to a specific amount of storage space at all times.

On the other hand, dynamic partitions allow the operating system to allocate storage space based on the requirements of an application. With dynamic partitions, the size of the partition is not fixed, and it can grow or shrink based on the needs of an application.

For example, consider a personal computer that is used to store and manage different types of data. In this scenario, dynamic partitions are used to allocate storage space to different applications based on their storage requirements.

As new applications are installed, the operating system dynamically allocates storage space to ensure that each application has sufficient storage space to function properly.

To know more about Partitions visit:

brainly.com/question/31672497

#SPJ1

Please Help me with this question.

Answers

We must compute the time required for data transfer and take the aforementioned constraints into account in order to determine the waiting time for both scenarios in the given network utilising circuit switching and packet switching.

Case: App Store

Circuit switching: In circuit switching, a single link is given exclusive use of the entire bandwidth until the transfer is finished.

a) From S to E, the transmission time is:

Data size = 250MB,

Bandwidth = 100Mbit/s

Transmission time = Data size / Bandwidth

= (250 * 8 * 1024 * 1024) / (100 * 10^6)

= 2048 seconds

W1 = Transmission time = 2048 seconds

W2 = 2 * Transmission time = 2 * 2048 seconds = 4096 seconds

W3 = 3 * Transmission time = 3 * 2048 seconds = 6144 seconds

Transmission time from S to E for each packet:

Given: Data size = 250MB = 250 * 8 * 1024 * 1024 bits

Packet size = 10KB = 10 * 8 * 1024 bits

Number of packets = Data size / Packet size

                                 = (250 * 8 * 1024 * 1024) / (10 * 8 * 1024)

                                 = 32,768 packets

Transmission time for each packet = Packet size / Bandwidth

                                                           = (10 * 8 * 1024) / (100 * 10^6)

                                                           = 0.008192 seconds

Thus, this can be concluded regarding the given scenario.

For more details regarding Transmission time, visit:

https://brainly.com/question/4348764

#SPJ1

An __________ hard drive is a hard disk drive just like the one inside your, where you can store any kind of file.

Answers

An external hard drive is a hard disk drive just like the one inside your computer, where you can store any kind of file.

These drives come in various sizes, ranging from small portable drives that can fit in your pocket to larger desktop-sized drives with higher storage capacities. They often offer greater storage capacity than what is available internally in laptops or desktop computers, making them useful for backups, archiving data, or expanding storage capacity.

Overall, external hard drives are a convenient and flexible solution for expanding storage capacity and ensuring the safety and accessibility of your files.

symetrical definition

Answers

exact matching sides and arrangements on opposite sides of a figure

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

Other Questions
For the following pair of expressions, find the substitution thatis the most general unifier [MGU], or explain why the two expressions cannot be unified.Here, A, B, C are constants; f, g are functions; w, x, y, z are variables; p is a predicate.(a) P(A, B, B) p(x, y, z) z L2 = P(A flow), B) 1 Example of Unification L = P(x, fly), z) subt[] Sub {x / A} Ci sub = PLA, f(y) =) Sub< [x/A, j/w PLA, f(w), z) ) La sub = PCA, flw), B) 11 Lisub La Sub=P(A, f(w), B) Sub IX/A, y lw, Z/B] Lisub= PLA, fw), B) La sub=P(A, f(w), B) True or False: Carrying capacity refers to the number of people that can be supported indefinitely in an area given the available physical resources and the way in which people use those resources. Which paragraph would be the best conclusion for Nathan's essay? Homework 9.2. Derive the local truncation error of the Simpson's 3/8 rule that approximates the function within the sub-interval [, +3] using a quartic. This method can also be obtain from the generalization of some Newton-Cotes methods (3-points 11 muito it ne please include all necessary stepsThe characteristic polynomial of a 5 x 5 is given. Find all eigenvalues and state the given multiplicities. 15-714-18A Which of the following is true about p-values?(Note: Choose one or more options.)a. They are used to determine the margin of error of confidence intervals.b. Together with the significance level, they determine whether or not we reject the H0.c. Their calculation in a hypothesis test depends on the alternative hypothesis HA.d. They are calculated assuming the null hypothesis H0 is true in a hypothesis test.e. They represent the probability that the null hypothesis H0 is true in a hypothesis test.f. They are between 0 and 1. The monitoring of a company's financial reporting is the responsibility of the audit committee, which is a sub-group of the board of directors of the company. It could involve internal finance and the disclosure process. In order for the audit committee to be successful, it is necessary for them to be knowledgeable of the procedures and controls that are in place inside the company.Required:Discuss FIVE roles and responsibilities of Audit Committees which could contribute to Corporate Governance and Accountability. Often, when its input costs rise, firms typically complain aboutit. Consider National Grids production function for natural gas:it buys natural gas, transports it, then puts it into a form forre Thesubject is operation researchFind the Shortest-route from V1 to V7 using Dijkstra's algorithm. V7 (B) 17 V 6 6 V (A) 15 10 V3 3 4 V4 4 5 V5 2 V6 Liabilities are debts or obligations arising from future transactions or events that require settlement at the present time. In the event of liquidation of the business, the claims of creditors have priority over the claims of owners. Long-term liabilities are due some time after 12 months from the balance sheet date. An estimated warranty liability is a kind of liability where you are certain as to whom you have to pay, but the amount is not known with certainty. As market interest rates rise, the price of the bond falls. If a bond is being issued at 98, it means that there is a 98% chance that the company will honor its interest commitment. Provide the definition of the left and right hand limits. [2) Find the indicated limits for the given function, if they exist. -{ 2+2, +6, if x < 2; if z 2. (i) lim f(x) (ii) lim f(x) (iii) 1-2- lim f(x). (3) Differentiate the following function. 2-1 f(x) = 2+2 f(x) = (3,3) [3,3,3] [5] Choose the incorrect statement on how banks manage their total credit risk.The revenue from borrowers that fully repay their loans might cover the loss of the non-defaulted borrowers from other risk groups.Within each risk group, clients pay similar interest rates.The revenue from borrowers that fully repay their loans covers the loss of the defaulted borrowers within the same risk group.The bank might lend different amounts to different risk groups. all of the following are vectors except: select one: a. mass b. velocity c. displacement d. acceleration There is a virus turning people into zombies who attack the living and never die.No one knows where it came from, but when the virus was first detected, it was 2 days after a group of 16 archaeologists had opened up an ancient tomb.Unfortunately, all 16 archaeologists had been turned to zombies.Authorities believe the virus is spread when infected people bite someone whos uninfected.Each zombie bites three uninfected people each day.a. How many zombies were there at day zero (i.e. t =0)?b. If the number of zombies Z(t) takes the form , where A is the number of zombies at t = 0, what is k, the estimated growth rate of the virus?c. How long will it take before the entire human population of the planet (which for this problem will be taken as 7 billion people) are turned into the undead? find a power series representation for the function. (give your power series representation centered at x = 0.) f(x) = x 3x2 1 8. The Enlightenment a. is a reference to Christ as the light of the world b. inspired/affected Neo-Classical and Romantic artists c. discourages the use of physical or empirical evidence d. all of the above Let S be a real symmetric matrix. Assume S has a negative eigenvalue. What is an SVD of S? 1. Write the equation of an ellipse in standard form, and identify the end points of the major and minor axes as well as the foci (10.1 11-26) 4x+24x + 16y2 - 128y +228 = 0 2. Write the equation for the hyperbola in standard form, and identify the vertices, foci and asymptotes. (10.2 11- 25) 4x8x9y2 - 72y + 112 = 0 3. Rewrite the parabola in standard for and identify the vertex, focus, and directrix. (10.3 11-30) y-24x + 4y - 68 = 0 3. (20 points) Think of a business study. For your study, state a research question. Identify the Dependent Variable, the Independent Variable, and at least one potential Moderating Variable relevant 6. the true cost of monopoly power to society is attributable to:___