8.10.8 guess the passcode codehs

Answers

Answer 1

Answer:

sorry its late

Explanation:

/*

* Write a program that guesses every possible 4 digit passcode

* combinations until the correct passcode is guessed.

*

* The passcode is randomly generated and stored in the variable

* secretPasscode.

*

* Print out how many guesses it took to guess the correct passcode.

*/

function start() {

   var correctCode = generateRandomPasscode();

   var b = 0;

   while(true){

       var guessCode = generateRandomPasscode();

       b++;

       if(isCorrect(guessCode, correctCode)){

           println("The correct passcode was " + guessCode);

           println("It took you " + b + " tries to guess it");

       break;

       }

   }

}

function isCorrect(guessCode, correctCode) {

   return guessCode == correctCode;

}

function generateRandomPasscode() {

   var randomPasscode = "";

   for(var i = 0; i < 4; i++) {

       var randomDigit = Randomizer.nextInt(0, 9);

       randomPasscode += randomDigit;

   }

return randomPasscode;

}


Related Questions

Write an algorithm to calculate the cube of a number

Answers

Explanation:

step 1 - Start

step 2 - Input l

step 3 - Cube =l×l×l

step 4 - Print the cube

step 5 - End

What is the difference in the outputs that you get when you use the following operators =; == ; and ===.

Answers

Note that the = operator is used for assignment, while == is used for equality comparison. The === operator checks for strict equality, including type.

What is the rationale for the above response?

The = operator assigns a value to a variable. The == operator compares values, converting types if necessary. The === operator checks for strict equality, comparing values and types. Using the appropriate operator is important for accurate comparisons and avoiding unexpected behavior in code.

Operators are important in programming as they enable the computation and manipulation of data, facilitating complex logic and functionality.

Learn more about operators:

https://brainly.com/question/29949119

#SPJ1

30 points for this.
Any the most secret proxy server sites like “math.renaissance-go . Tk”?

Answers

No, there are no most secret proxy server sites like “math.renaissance-go . Tk”

What is proxy server sites

A proxy server functions as a mediator, linking a client device (such as a computer or smartphone) to the internet.  Sites operating as proxy servers, otherwise referred to as proxy websites or services, allow users to gain access to the internet using a proxy server.

By utilizing a proxy server site, your online activities are directed through the intermediary server before ultimately reaching your intended destination on the web.

Learn more about   proxy server sites from

https://brainly.com/question/30785039

#SPJ1

the process of taking components from data sources and analytics platforms to create a more user-friendly experience that makes finding critical insights easier is called

Answers

The process of taking raw data from various sources and transforming it into useful and actionable information is known as data visualization.

Data visualization refers to the process of converting complex data sets and information into graphical representation, using various tools and techniques, in order to make it easier for the users to understand and analyze. It involves taking data from various sources and analytics platforms, cleaning and transforming it, and finally, presenting it in a way that is easily accessible and understandable for the end user. This can be done through the use of charts, graphs, maps, and other graphical representations that provide an intuitive, interactive, and engaging experience to the user. Data visualization is an essential tool in the business world, as it helps organizations make informed decisions, track performance, and identify key trends and patterns in their data.

To know more about Data visualization Please click on the given link

https://brainly.com/question/14467658

#SPJ4

What is presentation

Answers

To present something infront of a crowd

Answer:

Presentation is the giving of something to someone, especially as part of a formal ceremony.

Explanation:

a variable of type unsigned int stores a value of 4,294,967,295 if the variable value is incremented, what exception will occur? overflow. no exception. underflow.

Answers

If the variable of type unsigned int stores a value of 4,294,967,295 and it is incremented, no exception will occur. This is because an unsigned int has a maximum value of 4,294,967,295 and when it is incremented, it will wrap around to 0. This behavior is known as overflow and it is a feature of the unsigned int data type.

In general, overflow occurs when the value stored in a variable exceeds the maximum value that can be stored in that data type. When an overflow occurs, the value wraps around to the minimum value that can be stored in that data type. This behavior can cause unexpected results in calculations and can lead to bugs in software if it is not handled properly. Underflow, on the other hand, occurs when the value stored in a variable is smaller than the minimum value that can be stored in that data type. Underflow can lead to unexpected results as well, and it is important to handle both overflow and underflow properly in software to ensure that calculations are correct and do not cause errors. In summary, if a variable of type unsigned int stores a value of 4,294,967,295 and it is incremented, no exception will occur because the value will wrap around to 0.

Learn more about software here-

https://brainly.com/question/985406

#SPJ11

how do u get rid of this (the grey box)

how do u get rid of this (the grey box)

Answers

Answer:

can't helpnyounddjdjzjzjsjejs jvm d

Press on the highlight color and put none

what is robotic technology

Answers

Answer:

according to britannica :

"Robotics, design, construction, and use of machines (robots) to perform tasks done traditionally by human beings. ... Robots are widely used in such industries as automobile manufacture to perform simple repetitive tasks, and in industries where work must be performed in environments hazardous to humans"

Explanation:

Which HTML tags will you use to display some HTML data in a table in tabular format?

Answers

To display HTML data in a table in tabular format, you can use the following HTML tags:

<table>: This tag is used to define the beginning and end of the table.<thead>: This tag is used to define the header section of the table.<tbody>: This tag is used to define the body section of the table.<tr>: This tag is used to define each row of the table.<th>: This tag is used to define header cells in the table.<td>: This tag is used to define data cells in the table.

This would create a table with two headers and two rows of data. The  tag creates the overall table structure, the  tag creates each row, thetag creates the headers, and the  tag creates the individual data cells. By using these HTML tags, you can display data in a tabular format.

Learn more about HTML: https://brainly.com/question/9069928

#SPJ11

What caused accident? into passive voice​

Answers

Accident was caused by what

11.5 Code Practice Edhesive??

In this code practice, we will continue to employ W3Schools tools to practice writing HTML. You should have already read through the tutorials for the four HTML topics below, found in Lesson 11.5. Now, complete the exercises linked below for each topic. Once you complete these exercises, move onto the next set of instructions below.

HTML Styles (Links to an external site.)
HTML Formatting (Links to an external site.)
HTML CSS (Links to an external site.)
HTML Links (Links to an external site.)
Create a web page that has two paragraphs. One of the paragraphs should be aligned to the center and have red text. The other paragraph should be aligned to the right and be in italics. Refer to the sample below for clarification.

11.5 Code Practice example

Your program should begin and end with the following tags:



# Insert your code here!


In the programming environment, you will notice that once you type one tag (for example, the html opening tag), the environment automatically populates the closing tag for you. Be careful not to double up on closing tags, otherwise your HTML will not run.

As you write your web page, you can click the "Run Code" button to view it in real time.

Answers

Answer:

<html>

<body>

<p style="text-align:center;color:red;">This is a paragraph.</p>

<p><i> "This text is italic</i></p>

</body>

</html>

Explanation:

I got a 75%. Hope this helps.

HTML codes are placed in segments called tags.

Tags are divided into two

The opening tagThe closing tag

Take for instance, the opening and closing tags of the paragraph tag are <p> and </p>, respectively.

Having explained what tags are, the required HTML code is as follows:

<html>

<body>

<p align="center"><font color="black"> This is a paragraph 1</font></p>

<p align="right"><i> This is a paragraph 2 </i></p>

</body>

</html>

The paragraphs are aligned using center and right alignments, while the text in the first paragraph is colored using the color tag

Read more about HTML at:

https://brainly.com/question/25055825

Python String Functions: Create a new Python Program called StringPractice. Prompt the user to input their name, then complete the following:
Length
• Print: “The length of your name is: [insert length here]”
Equals
• Test to see if the user typed in your name. If so, print an appropriate message

Really appreciate the help.

Answers

#Swap this value by your name. Mine is Hamza :)

my_name = "Hamza"

#Get input from user.

inp = input("What's your name?: ")

#Print the length of his/her name.

print("The length of your name is",len(inp),"characters.")

#Check if the input matches with my name?

#Using lower() method due to the case insensitive. Much important!!

if(inp.lower()==my_name.lower()):

   print("My name is",my_name,"too! Nice to meet you then.")

1.Two robots start out at 426c cm. apart and drive towards each other. The first robot drives at 5 cm per second and the second robot drives at 7 cm. per second. How long will it take until the robots meet?

In your response below, please answer each of the following questions:
a. What is the question being asked?
b. What are the important numbers?
c. Are their any variables?
d. Write an equation.
e. Solve the equation.
f. Do you think your answer is reasonable? Explain.

1.Two robots start out at 426c cm. apart and drive towards each other. The first robot drives at 5 cm

Answers

Answer:

a. The time it will take for the two robots meet

b. The important numbers are;

426 (cm), 5 (cm/second) and 7 (cm/second)

c. Yes, there are variables

d. The equation is 5 cm/s × t + 7 cm/s × t = 426 cm

e. The solution of the equation is, t = 35.5 seconds

f. Yes, the answer is reasonable

Explanation:

a. The question being asked is the time duration that will elapse before the two robots meet

b. The important numbers are;

The distance apart from which the two robots start out, d = 426 cm

The  speed of the first robot, v₁ = 5 cm/second

The  speed of the second robot, v₂ = 7 cm/second

c. The variables are;

The distance apart of the two robots = d

The  speed of the first robot = v₁

The  speed of the second robot = v₂

The time it takes for the two robots to meet = t

d. The equation is;

v₁ × t + v₂ × t = d

Plugging in the known values of v₁, v₂, we have;

5 cm/s × t + 7 cm/s × t = 426 cm...(1)

e. Solving the equation (1) above gives;

5 cm/s × t + 7 cm/s × t = t × (5 cm/s + 7 cm/s) = t × 12 cm/s = 426 cm

∴ t = 426 cm/(12 cm/s) = 35.5 s

t = 35.5 seconds

f. The time it would take the two robots to meet, t = 35.5 seconds

The answer is reasonable, given that the distance moved by each robot in the given time are;

The distance moved by the first robot, d₁ = 35.5 s × 5 cm/s = 177.5 cm

The distance moved by the second robot, d₂ = 35.5 s × 7 cm/s = 248.5 cm

d₁ + d₂ = 177.5 cm + 248.5 cm = 426 cm.

studying computer science is really worth it for future?​

Answers

Yes, a computer science degree is worth it for many student also they make 74,762 annual salary
Yes, it is a vital job and they make very good money

reducing duplication of code is one of the advantages of using a loop structure. t/f

Answers

True, Using a loop structure has a number of benefits, one of which is a reduction in code duplication. You can carry out the same set of operations on a number of different values by employing a loop.

What kind of looping structure does that?

Until a condition is no longer met, a while loop repeatedly runs a block of code. Contrarily, for loops repeatedly run a block of code a predetermined number of times. So, a while loop comes in handy when you are unsure of how many times you want a block of code to run.

A looping structure is what?

You can repeatedly run one or more lines of code using loop structures in Visual Basic.

To know more about loop visit:-

https://brainly.com/question/30494342

#SPJ4

Write a short thesis statement about the IoT (Internent of things) I just need this just for ideas on my thesis statement. :)

Answers

The Internet of Things, or IoT for short, is a relatively new topic in the world of technology. This topic is both engaging and innovative for students pursuing their bachelor's and master's degrees. They can write their M.Tech. or Ph.D. thesis in this field. The internet has become an integral component of our everyday lives. The Internet of Things (IoT) concept is centered on the combination of comfort and the Internet.

Show that the following language over Σ = {1, 2, 3, 4} is not context-free:
{w : w contains the same # of 1’s and 2’s, and the same # of 3’s and 4’s}

Answers

To prove that the language {w : w contains the same # of 1’s and 2’s, and the same # of 3’s and 4’s} over Σ = {1, 2, 3, 4} is not context-free, we can use the pumping lemma for context-free languages. Assume that the language is context-free and let p be the pumping length. Consider the string s = 1^p2^p3^p4^p.

Since |s| = 4p, s belongs to the language. By the pumping lemma, we can write s as uvxyz, where |vxy| ≤ p, |vy| ≥ 1, and uv^nxy^n belongs to the language for all n ≥ 0. Let vxy consist entirely of 1’s and 2’s. Then, pumping vxy will change the number of 1’s and 2’s in s, causing it to no longer belong to the language. Therefore, the language is not context-free.
To show that the language over Σ = {1, 2, 3, 4} is not context-free, consider the language L = {w : w contains the same number of 1's and 2's, and the same number of 3's and 4's}. Assume that L is context-free. Then, by the Pumping Lemma for context-free languages, there exists a pumping length p for L.

Consider the string w = 1^p2^p3^p4^p, which belongs to L. According to the Pumping Lemma, w can be written as uvxyz, where |vxy| ≤ p, |vy| ≥ 1, and u(v^i)x(y^i)z is in L for all i ≥ 0. However, since |vxy| ≤ p, v and y cannot contain both the same number of 1's and 2's, and the same number of 3's and 4's. Pumping v and y will unbalance the counts of either 1's and 2's, or 3's and 4's, which means u(v^i)x(y^i)z is not in L, contradicting the Pumping Lemma. Therefore, L is not context-free.

To know more about Languages visit-

https://brainly.com/question/31133462

#SPJ11

Question 11 pts
What is output by the following code? Select all that apply.

c = 0




while (c < 11):

c = c + 6

print (c)
Group of answer choices

0

2

4

8

10

6

14

16

1

3

12

Flag question: Question 2
Question 21 pts
What is output by the following code? Select all that apply.

c = 2




while (c < 12):

print (c)
c = c + 3
Group of answer choices

3

4

6

7

9

2

10

5

12

8

1

11

Flag question: Question 3
Question 31 pts
What is output by the following code?

c = 1

sum = 0

while (c < 10):

c = c + 2

sum = sum + c




print (sum)

Answers

Answer:

12

Explanation:

S Solution

N Nine seconds to take time

M 0 minutes to take

How do you flatten a 2D array to become a 1D array in Java?

Answers

Answer:

With Guava, you can use either

int[] all = Ints.concat(originalArray);

or

int[] all = Ints.concat(a, b, c);

Explanation:

Use GUAVA

Type a message (like “sir i soon saw bob was no osiris”) into the text field in the asciitohex.com webpage. Which of the encodings (binary, ASCII decimal, hexadecimal, or BASE64) is the most compact? Why?

Answers

Answer:

BASE64

Explanation:

The encoding c2lyIGkgc29vbiBzYXcgYm9iIHdhcyBubyBvc2lyaXM= is the shortest.

Answer:

BASE64

Explanation:

BASE64 is the most compact encoding because it is the shortest encoding of "sir i soon saw bob was no osiris".

Does the directory virus depend upon operating system?​

Answers

A virus is a type of malware that can infect a computer or other device and replicate itself, often causing damage or disruption to the device's normal operation. Some viruses are designed to specifically target certain operating systems, while others are more general and can infect a variety of different types of devices and systems.

It is possible for a virus to specifically target a certain operating system, in which case it would depend on that operating system in order to function. However, many viruses are designed to be more general and can infect multiple types of operating systems.

The best way to protect against viruses is to use antivirus software, keep the operating system and other software up to date with the latest security patches, and practice safe browsing and email habits.

Jason is creating a web page for his school's basketball team. He just finished creating his storyboard. Which tool should he use to start coding?

Storyboard
Text editor
Web browser
Word processing document
You must check the box below prior to sub

Answers

Jason should use a text editor

Answer:

text editor

Explanation:

output device use for training presentation

Answers

Answer:

A projector should be the right answer here.

what are the advantages of customer relationship managment​

Answers

Answer:

Enhances Better Customer Service.

Facilitates discovery of new customers.

Increases customer revenues.

Helps the sales team in closing deals faster.

Enhances effective cross and up-selling of products.

Simplifies the sales and marketing processes.

Makes call centers more efficient.

Enhances customer loyalty.

PLZ HELP 60 points!! Minor changes to objects which only take effect at render time are called:
A: alterations
B:manipulations
C:transformations
D:modifiers

When an editing transition is used where one image morphs into another, what is it
called?
A:switch
B:degenerate
C:facial morphing
D:dissolves

In an existing scene, which of the following elements would you need to change in a
model of an adult to make them look like a child?
A:scale
B:proportion
C:fundamental body shapes
D:All of the above

What is a synopsis?
A:a brief summary of the plot
B:the words that the characters say to each other
C:how characters in a story change through time in the story
D:storyline of a film, book or other piece of fiction

What is procedural animation?

A:animation that is crested in real time to allow more options for game players play

B:creative works that have expired copyrights or were created betore the
copyright system went into place-they can be freely used

C:a work created by a paid artist/author to be owned by a company or another
author-the creator of the work has no rights to the work for hire product

D:any original work, be it writing, artwork, animation, software, characters, or
inventions

Answers

it’s literally all b

Which laptop has the larger non volatile storage capacity

Answers

There are many laptops available with different specifications and storage options. However, some of the laptops with larger non-volatile storage capacity include:

1. MacBook Pro (16-inch): This laptop offers storage options ranging from 512GB to 8TB.

2. Dell XPS 15: This laptop offers storage options ranging from 256GB to 2TB.

3. HP Spectre x360: This laptop offers storage options ranging from 256GB to 2TB.

4. ASUS ROG Zephyrus G14: This laptop offers storage options ranging from 512GB to 1TB.

5. Acer Aspire 5: This laptop offers storage options ranging from 256GB to 1TB.

It is important to note that the storage capacity of a laptop depends on the model and can vary.

What features of Word have you learned thus far that you feel
will benefit you in your careers? Be specific.

Answers

As of now, there are numerous Word features that I have learned that I feel will benefit me in my career.

These features include creating tables and inserting photos and charts. It is important to keep in mind that these features will come in handy regardless of what profession I pursue, as they are necessary for tasks such as creating professional documents and presentations.Creating tables: In Microsoft Word, tables are used to organize data and make it simpler to comprehend. They are essential in professions such as data analysis, finance, and marketing. The table feature is simple to use and can help to make a document appear more professional.

The user can choose the number of rows and columns they want and also insert them at any place in the document.
Inserting photos: A picture is worth a thousand words, which makes the ability to insert photos a valuable tool for any profession. Pictures can assist to break up a lengthy document and make it easier to read. They are critical in professions that rely heavily on visual representations, such as design, marketing, and advertising.

To know more about career visit:

https://brainly.com/question/32131736

#SPJ11

Configuration rules are instruction a system administrator codes into a security device to specify how it operates.Group of answer choicesTrueFalse

Answers

Configuration rules are instructions a system administrator codes into a security device to specify how it operates.True

Configuration rules

Network configuration rules are first done by assigning the preferred network settings, policies, flows, and controls. This changes the design of the device according to administrator or user specifications.

The two phases or steps of Configuration involves

Configuration phase Execution phase

Read more on Configuration rules in Network Systems here: https://brainly.com/question/13164289

A video conferencing application isn't working due to a Domain Name System (DNS) port error. Which record requires modification to fix the issue?

Answers

Answer:

Service record (SRV)

Explanation:

Service records (SRV record) are data records stipulating specifications of the DNS such as the port numbers, servers, hostname, priority and weight, and IP addresses of defined or cataloged services servers.

The SRV record is the source of information and the search site about the

location of particular services as such an application i need of such services will look for a related SRV record

A configured SRV is the source of the ports and personal settings for a new email client, without which the parameters set in the email client will be incorrect.

Design a program that has a two-dimensional integer array with 7 rows and 7 columns. The program should store a random number in each element. Then, the program should search the array for saddle points. A saddle point is an element whose value is less than or equal to all the other values in the same row, and greater than or equal to all the other values in the same column.

Answers

Answer:

#include <stdio.h>

#include <stdlib.h>

#include <math.h>

int saddle_Point_Value(int n, int arr[n][n])

{

int row, col = 0;

int k;

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

    row = arr[i][0]

    col = 0;

    for (int j = 1; j < n; j++) {

        if (row > arr[i][j]) {

            row = arr[i][j];

            col = j;

        }

    }

    for (k = 0; k < n; k++) {

       if (row < arr[k][col])

           break;

    }

    if (k == n) {

        printf("\nThe saddle point value is : [%d]\n", row);

        return 1;

    }

  }

  return 0;

}

int main()

(

   int n = 7

   int arr[n][n];          //Declaring 7 x 7 array

   int i, j;

   //Creating random numbers

   for (i = 0; i < n; i++) {

      for (j = 0; j < n; j++) {

         arr[i][j] = rand()%50; //Random numbers up to...

      }

   }

   printf("\n Array elements :\n ");

   for (i = 0; i < n; i++) {

      for (j = 0; j < n; j++) {

         print("%d\t", arr[i][j]);

      }

      print("\n");

   }

   if (!(saddle_Point_Value(n, arr)))

        printf('No Saddle Point.!!\n");

   return 0;

}

Explanation:

A properly functioning and running code is written in the answer. Just follow the steps.

Other Questions
p 2 + m; use m = 1, and p = 5 (2+2+2+2+2) 90^5 x 50 divided by 100 .. a bank of 16 floodlights together 4000 watts of power. how much power is used by each bulb? _______ will produce a rational answer when multiplied by 0.9 Environmental trends arise from all of the following forces except which?A)competitiveB)economicC)regulatoryD)geographicalE)social Calculate the pOH of a solution that contains 3.9 x 10-6 M H3O+ at 25C.Here is what I have worked out so far:(3.9*10^-6)[OH-] = (1.0*10^-14)[OH-] = (1.0*10^-14) / (3.9*10^-6) = 2.56*10^-9pOH = -log[OH-]pOH = -log(2.56*10^-9) = 19?with a result > 14 I don't think It's correct and am not sure what I am doing wrong. = 5 33 = -1Whats the value of y and x? Can someone please help me with this question? Find the area of the parallelogram with vertices:________. P(0,0,0), Q(4,-5,3), R(4,-7,1), S(8,-12,4). Which measurements of two similar triangles are the same? There were 5 chaperones assigned to gowith students on a field trip. Whatalgebraic expression represents the totalnumber of students and chaperones whowent on the field trip? Use the letter n torepresent the number of students on thefield tripField Trip ParticipantsNumber of Number ofStudents (n) Chaperones105155525 I need help with the question show, today is the end on the semesters. (write answers only) What characteristics ofa fox did Francis Marion demonstrate as aguerrilla leader? Which statement is true about the angles formed by these lines?Do not beg to be marked as brainliest. Otherwise, you wont be marked as brainliest. What is a different between part time and full time? please help me i really need help please Based on the information you gathered in the table, write a short paragraph comparing and contrasting the threereligions. How are they similar? How are they different? Please help me out I don't remember how to do this describe how you can tell wether a lines slope is greater than 1 equal to 1 or less than 1 pls help ill give you brainliest antecedents joined by nor or ormust be a singular nounTRUE OR FALSE