5.10.4: Snake Eyes

My code:


var SENTINEL = 1;




function start(){


var diceOne;


var diceTwo;




while(true) {

println("" + diceOne + "," + diceTwo);


diceOne = Randomizer.nextInt(1,6);


diceTwo = Randomizer.nextInt(1,6);




if (diceOne && diceTwo == SENTINEL){

println("" + diceOne + "," + diceTwo);


break;


}


}

}






What am I doing wrong here?

Answers

Answer 1

Answer:

You didn't specify what the function actually does. BTW, good luck coding, I love coding and it is lots of fun, just stick with it!

Explanation:


Related Questions

please help
match the features with the software
Word Processor, Spreadsheet, Database

- addiction of images, drawings, tables and graphics to text
- centralized data management
- data security
- digital version accounting sheets
- supports multiple users for adding data simultaneously
- visual representation of data
- digital version of a typewriter

Answers

Answer:

word processor- addition of images, drawing tables, and graphics to texts and digital version of a typewriter. spreadsheet- digital version of accounting sheets and visual representation of data. database- centralized data management, data security, and supports multiple users for adding data simultaneously

Just switch the two I got wrong and you'll get the correct answers. :)

essay about important of

education
and discipline?​

Answers

Answer:

Importance of Education & Discipline

Explanation:

Education is an enlightening learning process.

It enhances knowledge & perspective towards selves & outside world. It enriches our capabilities, virtues & minimises our vices.

Education is a crucial strong tool, which can empower & transform individuals & society, make world better.

Discipline is obedience to appropriate code of behaviour.

It is very integral to maintain orderliness, no chaos in life. It is interconnected with good qualities of dedication (commitment) to goal & hard work. So, it helps attain desired goal with positive outlook & sense of self accomplishment.

When planning your App what difficulties did come across and why?

Answers

Answer:

1. An engaging app idea

2. Sufficient funds

3. Cross-platform apps

4. Interactive apps

5. Application content management

ETC...

There are a lot difficulties you might come across but thats based on your knowledge

In your own words! Give me an example of Digital Literacy? (50 words
No links or I will report!!!!!!!

Answers

Answer: See explanation

Explanation:

Digital literacy is when an individual can compose, find, and evaluate, a clear and composed information on digital platforms.

It involves possessing the skills that one need to live, and learn, through the use of digital platforms such as social media, mobile

Example of digits literacy is the use of search engines, understanding how web browser can be used or sending of emails. etc

Match each role to the corresponding web development task.

Answers

Answer:

1. Art director: selecting color palettes.

2. Web project manager: creating budget spreadsheets.

3. Usability lead: researching target audiences.

4. Developer: coding.

Explanation:

HTML is an acronym for hypertext markup language and it is a standard programming language which is used for designing, developing and creating web pages.

Generally, all HTML documents are divided into two (2) main parts; body and head. The head contains information such as version of HTML, title of a page, metadata, link to custom favicons and CSS etc. The body of the HTML document contains the contents or informations of a web page to be displayed.

The various role performed during the web development process (task) includes;

1. Art director: selecting color palettes. This individual is saddled with the responsibility of choosing the color that best fits a website.

2. Web project manager: creating budget spreadsheets. He or she is responsible for performing tasks such as creating a financial (budget) plan, start and finish date (timing), procurement, etc.

3. Usability lead: researching target audiences. This individual is saddled with the responsibility of surveying and collecting data from the demography for which the website is designed.

4. Developer: coding. This is the technical expert referred to as a web developer and is responsible for writing the set of instructions (codes) that enables the website to work properly and serve a purpose.

Select the correct answer. In which item is energy stored in the form of gravitational potential energy? A. a slice of bread B. a compressed spring C. an apple on a tree D. a stretched bow string

Answers

Answer:

C. an apple on a tree

Explanation:

Energy can be defined as the ability (capacity) to do work. The two (2) main types of energy are;

a. Kinetic energy (KE): it is an energy possessed by an object or body due to its motion.

b. Gravitational potential energy (GPE): it is an energy possessed by an object or body due to its position above the earth.

Mathematically, gravitational potential energy is given by the formula;

[tex] G.P.E = mgh[/tex]

Where;

G.P.E represents gravitational potential energy measured in Joules.

m represents the mass of an object.

g represents acceleration due to gravity measured in meters per seconds square.

h represents the height measured in meters.

In an apple on a tree, energy is stored in the form of gravitational potential energy.

I just played slither.io and got a length of 50632! Can you beat that? http://slither.io



I WANNA SEE YOU BEAT ME ¯\_(ツ)_/¯ if my name is on the leader board it's kirishima​

Answers

Answer:

Nice

Explanation:

Answer:

well yes

Explanation:

can you plz tap the thanks button and rate 5 stars thx

Best beginner racing drones?

Answers

One that are somewhere between 200-400 for the good quality

Answer:

Walkera Runner 250

Explanation:

This drone is durable, and offers a lot of features while not totally being over the top!

Why do computers use binary code?

Answers

Answer:

To make sense of complicated data, your computer has to encode it in binary. Binary is a base 2 number system. Base 2 means there are only two digits—1 and 0—which correspond to the on and off states your computer can understand

Answer:

It has two clearly distinct states that provide a safety range for reliability and the least amount of necessary circuitry, which results in the least amount of space, energy consumption, and cost.

List three differences between word and excel

Answers

Answer:

Word: A word processor

           File extension is .doc

          Images, texts, and graphic styles can be added

Exel: A spreadsheet software

       Comprises rows and columns which combine to form cells

       File extension is .xls

I hope i helped! xoxo

What protects your computer so that it doesn't get a computer virus?

Answers

Answer:

an anti-virus program such as avg

An anti virus program or a vpn also protects your information and makes all of the stuff on your computer safe

who doesn't like reeses

Answers

Answer:

I like Reeses. but then sometimes I don't

literally nobody lol

Abby wants a high-end computer system for her home office that can be upgraded. Which of the following should she choose?
Laptop
Gaming Console
Desktop
Server

Answers

Desktop, it can be customised more and laptops are poorly made often, gaming console makes no sense same with server

Use parallel and highway in a sentence

Answers

Answer:

The road ran parallel to the highway, with the Uncompahgre River separating the unpaved road from the main thoroughfare to the east.

Answer:

QUESTION:

Use parallel and highway in a sentence

ANSWER:

We were on the highway parallel to the train tracks.

Explanation:

Hope that this helps you out! :)  

If any questions, please leave them below and I will try my best and help you.  

Have a great rest of your day/night!  

Please thank me on my profile if this answer has helped you!

Sampson runs his own online business, and much of his success depends on the reliability and accuracy of various online data needed to run that business. How does integrity help to ensure that Sampson can trust the online data he is using?

because integrity takes steps to ensure Sampson's information cannot be altered or deleted by unauthorized people and that it stays intact, no matter where it goes

because integrity refers to a process that makes it impossible for anyone but Sampson to see the data that he is using

because integrity blocks all hackers from interfering with Sampson's data and what he does with it

because integrity allows Sampson to access and move data on an unsecure network

Answers

Answer:

because integrity takes steps to ensure Sampson's information cannot be altered or deleted by unauthorized people and that it stays intact , no matter where it goes.

Which part or section of the website will enable Lana to add her company name and logo to the top of every page of the website?

Answers

Answer:

Header section of  the website.

Explanation:

Header is the main part of the website located on the top of the webpage which has important links and logo of the company. The header includes different pages of the website which a user might want to navigate before purchasing or making a query. They have same items on every page so that a user can navigate easily from one page to other.

Answer:

header section

Explanation:

I NEED THIS ASAP!!! I"LL GIVE 30 PTS.!!!

2 things are required to make a loop: a. ______________ b. _____________

Answers

Answer:

(not quite sure what the question is asking seems you need, but bare minimum is)

an initial value and an increment or decrement

a condition where the loop stops

Explanation:

assuming you have the structure for the loop, depending on the language it could be a for, while or until command. You will always need the initial value for the variable your looping on, how it changes (increment or decrement) and then a condition when the looping in to stop.

e.g. say you want to add up the numbers from 1 to 10, inclusive

sum = 0

for I is 1 to 10 incremented by 1

sum=sum+I

end of loop

I need the answer ASAP. I’ll mark brainliest if right

Answers

Answer:

copy or repeat

Explanation:

Other Questions
Solve by substitution: y=3x and x+y=-32 Calculate the cash dividends required to be paid for each of the following preferred stock issues: Required: The semiannual dividend on 6% cumulative preferred, $62 par value, 8,200 shares authorized, issued, and outstanding. The annual dividend on $2.25 cumulative preferred, 130,000 shares authorized, 78,000 shares issued, 68,900 shares outstanding. Last year's dividend has not been paid. The quarterly dividend on 10.0% cumulative preferred, $90 stated value, $106 liquidating value, 78,000 shares authorized, 67,600 shares issued and outstanding. No dividends are in arrears. i need help with thisQuadrilateralKiteTrapezoidIsosceles TrapezoidNone of theseRectangleSquareParallelogramRhombusthose r the options At a plant that manufactures bars of steel, a machine is used to cut the bars to specific lengths. The machine has a dial that sets the length of the bars to be cut. However, the dial is currently out of alignment and the plant manager is collecting data to assess the situation. The following table shows 8 trials at different dial settings along with the actual output length of the bars that were cut. All measurements are in millimeters.(a) Use the following grid to construct a scatterplot in which dial setting is the explanatory variable and output length is the response variable. Based on your graph, does a linear model seem appropriate? Justify your answer.(b) Use the data to construct a least-squares regression line to predict output length from dial setting.(c) Assume that all conditions for inference are met. Indicate the hypotheses appropriate to test whether there is a linear relationship between output length and dial setting(d) The test statistic for the appropriate test is t=9.018. Do the data provide convincing statistical evidence that there is a linear relationship between output length and dial setting? Can someone help me with my English? Please follow the instruction below. What is to dissolve? Juan ran the lemonade stand for 3 more days after hisfirst day profit of $12. Each day, he used the moneyfrom sales to purchase more lemons, cups, and sugarto make more lemonade. The table shows how muchhe spent and earned each dayWhat is the expression needed to find his totaleamings?5216-7-22 - 12 - 18-916-22-18-7-12-916-22-18-7-12-916 - 7 + 22-12-18-9 Giving Brainlest !!!!! If your bank offered you 3% interest on $5,000 in your savings account , how much money would you have in your account at the end of the year after interest ? How can visual images be legally censored in the United States? if you take 50 white poeple in a bus , what is said bus called? The irrational number square root 67 is less than [blank] Write an equation for a line perpendicular to f(x)=5x1 and passing through the point (5,20) In corn plants, the allele for tall stalks (T) is dominant over the allele for short stalks (t). Suppose a cross between a tall corn plant and a short corn plant produces 43 tall offspring and 47 short offspring. If one of the tall offspring is crossed with one of the short offspring, what ratio of genotypes would be most likely in their offspring I need help to write a paragraph about art my topic is glass and I need help Find the area of the figure below.Use numbers only in your answer.The area is in. Explain how the continued development of Atlanta under mayors Maynard Jackson and Andrew Young impacted the state. which theory of ir provide most inside of past and present How do the general store men learn about the incident between Joe, Lena,and Spunk?They watched it happen out the general store window.BThey overheard Joe and Lena arguing about it.*Elijah tells them the story as he observed it.DSpunk bragged about it to the men. Describe the energy in nuclear fuel and the way in which its converted to electrical energy. Write 50 to 100 words. Coal, oil, and natural gas are called _______. A. fossil fuels B. renewable resources C. nuclear power D. solar energy