Write a Raptor program that will generate a random number between 1 and 10; do not display the randomly generated number. Let the user guess within 3 tries what the random number is. Display hints to help the user, for example "Your guess was too high!". Display appropriate messages based on each try, for example, "1 remaining try" or "You guessed correctly!"

Answers

Answer 1

Answer:

Using javascript, explanation with javascript comment

Explanation:

function guessNumber(){

var randomize= math.random()*10;

var roundrand= math.floor(randomize);

var getInput= prompt("guess number from 1 to 10");

var x= 3;

do(

if(getInput>roundrand){

Console.log("your guess is too high");

guessNumber();

}

if(getInput<roundrand){

Console.log("your guess is too high");

guessNumber();

}

else{

Console.log("you are correct pal!");

break;

}

)

while(x<=3)

}

/*Observe that we have used a recursive function that calls the function guessNumber again inside the function definition if the input fails the if condition and doesn't guess correctly. It checks for a correct number 3 times with the do... while loop and breaks out of the function once the user enters a correct input.*/


Related Questions

if person is male their username is the last 3 letters of their surname and the first 2 letters of their first name if a person is female their username is the first 3 letters of their first name and the last 2 letters of their last name. write an algorithm to output a username (Could you answer in Python pls)​

Answers

gender = input("What's your gender? (`male` or `female`): ")

firstname = input("What's your firstname?: ")

surname = input("What's your surname?: ")

username = ""

if gender == "male":

   username += surname[-3:]

   username += firstname[0:2]

elif gender == "female":

   username += firstname[0:3]

   username += surname[-2:]

print(f'Your username is {username}')

You notice a growing number of devices, such as environmental control systems and wearable devices, are connecting to your network. These devices, known as smart devices, are sending and receiving data via wireless network connections.
Which of the following labels applies to this growing ecosystem of smart devices?
A. The smartnet
B. Internet of smart devices
C. *Internet of things*
D. Dynamic environment

Answers

Answer:

*Internet of things*

Explanation:

A network with multiple physical smart devices are known as things on the network

How is kerning used in Word?

to adjust the spacing between two paragraphs
to adjust the spacing between words in a paragraph
to adjust the spacing between characters that make up a word
to adjust the spacing between a paragraph and the page border

Answers

Answer: To adjust the spacing between characters that make up a word

Explanation: Kerning refers to the way spacing between two specific characters is adjusted. The idea is to give a better looking result by reducing the spacing between characters that fit together nicely (such as "A" and "V") and increasing the spacing between characters that don't. Select the text that you want to change.

Answer:

C. To adjust the spacing between characters that make up a word

Explanation:

hope this helps :)

When you evaluate the use of digital media, how has it affected the newspaper business? The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online. The rise of digital media has had no measurable effect on newspaper subscriptions. The rise of digital media has caused newspaper subscriptions to increase because it has inspired people to care more about news. The rise of digital media has caused newspaper subscriptions to fluctuate depending on the time of year.

Answers

Answer:

The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online.

It is A

Answer:

The rise of digital media has caused newspaper subscriptions to decline significantly because people are finding their news online.

write fade in shorthand​

Answers

Answer:

"Fade In is a Class Act" Macworld says: "Fade In makes it easy to just write...It has all the features you'd find in the more expensive apps, such as Final Draft and Movie Magic Screenwriter, and there's even free and paid iPhone, iPad, and Android apps available

Explanation:

The place on the computer where information is stored temporarily so the processor can access it quickly is called what? Memory Kernel Mode Driver

Answers

Answer:

The answer is Memory

Which is not true about climatic normals?

Multiple choice question.

A)
They can differ from daily weather conditions.

B)
They are gathered at one location.

C)
They are averaged over a 30-year period.

D)
They describe average conditions.

Answers

Answer:

I think c is correct answer

Explanation:

hope it's help yu

Short Questions: a) What is website? How can we browse internet using website?​

Answers

Answer:

A website is a set of related web page or pages located under a single domain name. These pages contain specific information which was all provided by one person or entity and traces back to a common Uniform Resource Locator or (URL).

Explanation:

There are millions of Websites around the world and contain information about everything.

write down the appropriate technical term of following statements.​

Answers

Answer:

it is not seeing full. please give full

Draw a circuit with a 12-volt battery, a 100 ohms resistor in series, and two resistors (each of value 200 ohms) in parallel. What is the total resistance of the circuit?

Answers

Answer:

200 Ω

Explanation:

Hi there!

Please see below for the circuit diagram.

1) Find the total resistance of the resistors in parallel

Total resistance in parallel equation: [tex]\frac{1}{R_T} = \frac{1}{R_1} +\frac{1}{R_2}[/tex]

Both the resistors measure 200 Ω. Plug these into the equation as R₁ and R₂:

[tex]\frac{1}{R_T} = \frac{1}{200} +\frac{1}{200}\\\frac{1}{R_T} = \frac{1}{100}\\R_T=100[/tex]

Therefore, the total resistance of the resistors in parallel is 100 Ω.

2) Find the total resistance of the circuit

Now, to find the total resistance of the circuit, we must add the 100 Ω we just solved for and the 100 Ω for the other resistor placed in series:

100 Ω + 100 Ω = 200 Ω

Therefore, the total resistance of the circuit is 200 Ω.

I hope this helps!

pasagot po please need lang po

Answers

me I can not see it oooo re write it

Consider the following scenario. As you troubleshoot the problem, what motherboard device would be the first to check? A user reports that his computer fails the POST upon startup. ROM CMOS RAM Power supply Processor

Answers

Answer:

The correct answer Power Supply

Explanation:

The IT manager has tasked you with installing new physical machines. These computer systems are barebone systems that simply establish a remote connection to the data center to run the user's virtualized desktop. Which type of deployment model is being used

Answers

The type of deployment model that is used is referred to as Thin client.

A thin client is also referred to as lean client. It is a model that runs on the resources that are stored on a central server rather than in the resources if the computer.

A thin client is useful for shared services, and desktop virtualization. The work carried out by the server include storage of data, performing if calculation, launching software programs etc.

On conclusion, since the information given in the question explains that there's a remote connection to the data center to run the user's virtualized desktop, then the deployment model is a thin client.

Read related question on:

https://brainly.com/question/13934016

Once the CPU has fetched the data requested, what are the next steps in the process?

A
execute, articulate

B
perform, execute

C
decode, analyze

D
decode, execute

MULTIPLE CHOICE

Answers

Answer:

D. decode execute

Explanation:

Assume the existence of a Building class. Define a derived class, ApartmentBuilding that contains four (4) data members: an integer named numFloors, an integer named unitsPerFloor, a boolean named hasElevator, and a boolean named hasCentralAir. There is a constructor containing parameters for the initialization of the above variables (in the same order as they appear above). There are also two function: the first, getTotalUnits, accepts no parameters and returns the total number of units in the building; the second, isLuxuryBuilding accepts no parameters and returns true if the building has central air, an elevator and 2 or less units per floor.

Answers

Answer:

Explanation:

The following code is written in Java. The class ApartmentBuilding extends the assumed class of Building but does not call any of its methods since we do not have access to it. The ApartmentBuilding class contains all of the variables listed, as well as constructor and methods, including getter and setter methods for each variable. A test case for the class is provided in the image below with it's output.

class ApartmentBuilding extends Building {

   int numFloors, unitsPerFloor;

   boolean hasElevator, hasCentralAir;

   public ApartmentBuilding(int numFloors, int unitsPerFloor, boolean hasElevator, boolean hasCentralAir) {

       this.numFloors = numFloors;

       this.unitsPerFloor = unitsPerFloor;

       this.hasElevator = hasElevator;

       this.hasCentralAir = hasCentralAir;

   }

   public int getTotalUnits() {

       int total = this.numFloors * this.unitsPerFloor;

       return total;

   }

   public boolean isLuxuryBuilding() {

       if ((this.hasCentralAir == true) && (this.hasElevator == true) && (this.unitsPerFloor <= 2)) {

           return true;

       } else {

           return false;

       }

   }

   public int getNumFloors() {

       return numFloors;

   }

   public void setNumFloors(int numFloors) {

       this.numFloors = numFloors;

   }

   public int getUnitsPerFloor() {

       return unitsPerFloor;

   }

   public void setUnitsPerFloor(int unitsPerFloor) {

       this.unitsPerFloor = unitsPerFloor;

   }

   public boolean isHasElevator() {

       return hasElevator;

   }

   public void setHasElevator(boolean hasElevator) {

       this.hasElevator = hasElevator;

   }

   public boolean isHasCentralAir() {

       return hasCentralAir;

   }

   public void setHasCentralAir(boolean hasCentralAir) {

       this.hasCentralAir = hasCentralAir;

   }

}

Which are characteristics of a video with a higher
bit rate? Choose all that apply.
fewer frames per second
more frames per second
lower quality
higher quality
larger file size
smaller file size

Answers

Answer:

D and E.

Explanation:

Write an application that allows a user to input the height and width of a rectangle. It should output the area and perimeter of the rectangle. Use methods for entering the values, performing the computations, and displaying the results. Results should be formatted with one position to the right of the decimal and printed number aligned in a tabular display.

Answers

Answer:

Explanation:

This code is written in Java. It creates a Rectangle class that contains variables for the height and width. It also contains constructor, methods for calculating perimeter and area, and a printInfo method to print out all the results. A test case has been created in the main method which creates a Rectangle object and prints out the printInfo which calls the area and perimeter methods as well. The output can be seen in the attached image below. Due to technical difficulties I have added the code as a txt file below.

A company runs an application on a fleet of EC2 instances. The company wants to automate the traditional maintenance job of running timely assessments and checking for OS vulnerabilities. As a Cloud Practitioner, which service will you suggest for this use case

Answers

Answer:

AWS Systems Manager

Explanation:

AWS Systems Manager (https://aws.amazon.com/systems-manager/features/) is the service that allows to centralize operational data from multiple AWS services and automate tasks across AWS resources.

Which vendor owns the software platform Fusion?
A.
Microsoft
B.
Apple
C.
SAP
D.
Oracle

Answers

Answer: D

Explanation:

D. Oracle owns the software platform Fusion

what is DMTS. Explain it​

Answers

Answer:

DMT — or N, N-dimethyltryptamine in medical talk — is a hallucinogenic tryptamine drug. Sometimes referred to as Dimitri, this drug produces effects similar to those of psychedelics, like LSD and magic mushrooms. Other names for it include: fantasia.

Explanation:

Answer:

DMT, abbreviation of Dimethyltryptamine, powerful, naturally occurring hallucinogenic compound structurally related to the drug LSD (lysergic acid diethylamide). DMT blocks the action of serotonin (a transmitter of nerve impulses) in brain tissue. It is inactive when taken by mouth and produces effects only when injected, sniffed, or smoked. The hallucinatory action

Explanation:

Major plant genera containing DMT include Phalaris, Delosperma, Acacia, Desmodium, Mimosa, Virola, and Psychotria, but DMT has been found even in apparently innocuous sources, such as leaves of citrus plants (Servillo et al., 2012), and in the leaves, seeds, and inner bark of mimosa tenuiflora

write full information about first computer virus ?​

Answers

Answer:

A computer virus is a man made program just like other program.it is a harmful program developed intentionally to distrub the normal functioning of a computer.It can destroy data,information and other useful programs of the computer.As the result you will not get data,information and other useful progarams to use.when it destroy operating system software of a computer.

Answer:

The "Creeper system," the first computer virus, was an experimental self-replicating virus released in 1971. It was filling up the hard disk to the point that a computer could no longer function. BBN technology in the United States produced this virus. When the Creeper virus infects a computer, it causes it to output a file. It will then cease to function while it searches for another TENEX system. It creates a connection with the machine in question, and so on. Its last payload or impact when it's finished with a system is to display its message.

OAmalOHopeO

what means the data is still saved even if you turn the computer off or unplug it?​

Answers

Answer:                      

Explanation:

The hard drive is long-term storage, which means the data is still saved even if you turn the computer off or unplug it. When you run a program or open a file, the computer copies some of the data from the hard drive onto the RAM. When you save a file, the data is copied back to the hard drive.

Richard needs to copy information from another slide presentation that uses a different design template. To ensure that the information he is copying looks right, which option should he choose?

Answers

Answer:

Yes, you can copy the slides over into a presentation with master slide. Then, right-click each slide, and choose to apply an appropriate template from the master slide

(from vik7336: Hi, I'm not sure about my answer for your question. So I hope this might help)

what is a computer in daily life​

Answers

Answer:

The use of computers on a regular basis in our life is very important. Technically in daily life computer is used to convert raw facts and data into meaningful information and knowledge. Computer science is explored and challenged by humans daily. The computer is like an electronic magical device for our life.

Explanation:

Angelina has added page numbers to her report, but all of the pages are labeled "Page 1” at the bottom. What caused this issue?
She typed “Page 1” in the footer.
She added a header instead of a footer.
She did not create a numbered list in her footer.
She forgot to click the Continue Numbering option.

Answers

Answer:

She typed "Page 1" in the footer.

Explanation:

This occured because the footer only repeats the same message across the footers unless you enable page numbering.

Hope this helps!

a program in matchine language is called​

Answers

Answer:

mcq

Explanation:

machine code is a computer program written in a machine code

Write a program that takes the account's present value, monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function thatreturns the future value of the account, after the specified number of months. The program should print the account's future value.

Answers

Answer:

Assuming this is going to de made with python:

def main():

   currentValue = float(input("Current value of account: "))

   monthlyInterestRate = float(input("Monthly interest rate: "))

   monthsToWait = int(input("Amount of months the money will be left in the account: "))

   monthlyInterestRateToPercent = monthlyInterestRate / 100

   futureValue = float(round((currentValue + currentValue * monthlyInterestRateToPercent * monthsToWait), 2))

   print("The future value of this account will be " + str(futureValue))

main()

Explanation:

Hope this helped. Also, if this is incorrect please tell me what needs to be added so I can add it for future viewers. Have a good day :)

Next, Sue decides to embed a chart from Microsoft Word. She copies and pastes data from a table that she has already created in a Word document. The table includes the results of her paper towel experiment. After reviewing her work, she realizes she needs to update one of the values.
How can she change that value so it is reflected in the chart in her presentation?
She can change the value in the original table in Word.
She can change the value directly on the chart in PowerPoint.
She can change the value using the Current Selection command group.
She can change the value in the mini- spreadsheet for the chart in PowerPoint.

Answers

Answer:

She can change the value in the mini- spreadsheet for the chart in PowerPoint.

Answer:

Answer is D

Explanation:

What is generation of computer ?​

Answers

I HOPE THIS INFORMATION WILL HELP YOU A LOT......

Generation in computer terminology is a change in technology a computer is/was being used. Initially, the generation term was used to distinguish between varying hardware technologies. Nowadays, generation includes both hardware and software, which together make up an entire computer system.

Hope this answer helps you..!!

..

..

Plz select it as the BRAINLIEST..!!

Which of the following is an example of sharing personal information in a risky manner?
posting about your favorite clothing brand
sending an e-mail to a recipient you know
using Microsoft Excel to create a spreadsheet
searching for a restaurant on

Answers

The example of sharing personal information in a risky manner would be

searching for a restaurant online.

How is this an example of sharing personal information in a risky manner

While the other options mentioned do not  inherently involve sharing personal information  in a risky manner searching for a restaurant online may involve providing personal information such as your location or contact details if you're making a reservation or placing an order.

It's important to be cautious while sharing personal information online and ensure that you're using secure and trusted platforms when providing sensitive details.

Learn more about personal information at

https://brainly.com/question/27034337

#SPJ1

Other Questions
find the missing side lengths Evaluate Sigma 5 n=1 3(-2)^n-1Answer choices-93-333393 How were the views of France and the United Kingdom similar at the end of World War I?They each planned to adopt President Wilsons Fourteen Points.They believed that Germany needed to rebuild its economy.They were opposed to taking part in secret agreements.They wanted Germany to be punished for the destruction caused during the war. Lmk if you understand thanks The president of the math club is conducting a survey to see where the 12th grade class wants to go to their field trip. Instead of asking the whole class, she surveys only the 12th grade members of the math club. She records the choices and plans to present the results to the school principal. what kind of sampling did she use? What is the slope of the line? An _____________________________ is an answer that falls outside of the domain of the function. Two cars that are 600km apart are moving towards each other. Their speeds differ by 6km per hour and the cars are 123km apart after 4.5 hours. Find the speed of each car Which of the following are characteristics of the Baroque Period?A emotion and religious fervorB psychological exploration and virtuously C movement spender and ornate stylingD all of the above A word's connotation is ---O its part of speechO its dictionary definitionO the emotions or associations that are evoked by the wordits context in a sentence Choose the correct answer.Websites that are not well known may have a?great source of informationlibrarian that can help youO hidden agendaO database to help you find great information Which sentence most clearly makes an ethos appeal?A. Evidence shows that four day work weeks improve productivityB. Clearly, you can't have farmland without first finding good soil.C. More cash is better than less cash; that's just common sense,OOD. As a doctor, I have seen many similar cases, this is nothing new.SUM 1/4 + 4/10 what is the answer plz give correct what factors shape the poets identities? que fuentes de energia limpias recomendarias aprovechar para que a partir de ella se puede generar energia electrica? porque? To make concrete, the ratio of cement to sand is 1 : 3. If cement and sand are sold in bags of equal mass, how many bags of cement are required to make concrete using 15 bags of sand? what do you understand by the term life? how many books were not written by Michael Crichton.A. ItB. The OutsiderC. The Long WalkD. PreyE. The Dark HalfF. The State Of Fear When conducting a chemotaxis assay to test if the experimental RNAi treatment affected C. elegans, what is the purpose of using sodium azide on the chemotaxis assay plates Is it grammatically correct to say "He will return back my phone before noon"?