You are to write a program name elevator.java that simulates one elevator services in a 12-floor building. note: there is only one elevator working this building.

Answers

Answer 1
See the attachment, if I copy if it into the Response field it gets all jumbled. Rename it to elevator.java

Related Questions

"write a program that reads two floating point numbers and prints their sum difference and product."

Answers

int main() { float a; float b; float sum; float difference; float product; printf("enter 2 numbers"); scanf("%f%f",&a,&b); sum= a + b; difference = a - b product =a*b; printf("\nsum: %f" , sum); printf("\ndifference: %f, difference); printf("\nproduct : %f, product ); }

Your license can be canceled if you __________
A. accumulate 12 or more points on your license.
B. give incorrect information when applying for your license.
C. you reach age 75.

Answers

its B i think hope this helps ! 
It’s b hope that helps

Write a copy assignment operator for carcounter that assigns objtocopy.carcount to the new objects's carcount, then returns *this. sample output for the given program:cars counted: 12

Answers

Answer: int main() { CarCounter frontParkingLot; CarCounter backParkingLot; frontParkingLot.SetCarCount(12); backParkingLot = frontParkingLot; cout << "Cars counted: " << backParkingLot.GetCarCount(); return 0; }

A(n) _______________ loop usually occurs when the programmer forgets to write code inside the loop that makes the test condition false.

Answers

infinite





,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Final answer:

An infinite loop occurs when a loop's test condition is never made false due to the omission of changing the iteration variable within the loop's body. Effective loop design incorporates iteration variable changes or a break statement to prevent infinite loops.

Explanation:

A infinite loop usually occurs when the programmer forgets to write code inside the loop that makes the test condition false. In programming, particularly when using while-loops, the loop's body should modify the value of the iteration variable so that the looping condition eventually becomes false, allowing the loop to terminate. Without this modification to the iteration variable, such as in a simple loop where the condition is set to True, the loop will execute endlessly, resulting in what is known as an infinite loop.

For effective loop design, it's important to include a means of modifying the iteration variable within the loop's body or to use a break statement to exit from the loop when a certain condition is met. This ensures that the loop doesn't run indefinitely, avoiding potential program hang-ups or crashes. Infinite loops are sometimes deliberately used for situations where the duration of looping is not predetermined, but they require careful handling to ensure they can be exited appropriately.

Your grandmother tells you a dollar doesn’t go as far as it used to. She says the “purchasing power” of a dollar is much less than it used to be. Explain what she means. Try to use and explain terms like inflation and deflation in your answer.

Answers

What she means is that a dollar does not buy the same amount of things as it used to. Take a .05 cent candy as an example, in year one the candy costs 5 cents which means you can buy 20 candies. In year 2 the price is .08 cents and you can buy 1/.08 = 12.5 or simply 12 candies. Assuming the candy hasn't increased in quality, this is known as inflation.

Tim is trying to explain to his aunt how her computer works, but she does not understand what a CPU does. Which description will most likely help Tim’s aunt understand the CPU’s role?
-The CPU guides the function of the hardware.
-The CPU stores data for the transfer of information.
-The CPU processes commands from software.
-The CPU translates operating system data

Answers

The CPU processes commands from software

Answer: The CPU processes commands from software.

Explanation:  CPU(Central processing unit) is the main unit for processing the commands that are obtained from program of computer. It contains the processing and control unit for performing tasks like arithmetic operations , I/O operations etc.

Thus, Tim should explain about CPU by stating it as the main processor for carrying out commands that are gained from software programs.

Other options are not appropriate as functioning of hardware is done by user as well through external commands, translation of data and data storage is done by other processing unit such as memory(e.g.-RAM).

When using words order of operations subtraction is performed before division true or false

Answers

When using words order of operations subtraction is performed before division = False
PEMDAS still applies also in computer languages with the exception of Excel.

Can you subnet the 172.16.128.0/17 network address to support this subnet?

Answers

Address: 172.16.128.0 10101100.00010000.1 0000000.00000000
Netmask: 255.255.128.0 = 17 11111111.11111111.1 0000000.00000000
Wildcard: 0.0.127.255 00000000.00000000.0 1111111.11111111
=> Network: 172.16.128.0/17 10101100.00010000.1 0000000.00000000 (Class B)
Broadcast: 172.16.255.255 10101100.00010000.1 1111111.11111111
HostMin: 172.16.128.1 10101100.00010000.1 0000000.00000001
HostMax: 172.16.255.254 10101100.00010000.1 1111111.11111110
Hosts/Net: 32766 (Private Internet)

Which two jobs have high demand need for practitioners( have a skill shortage)

Answers

Skill shortages exist in a company when there are not enough people with the needed skills to meet the demand of jobs. They are caused by many factors like there are not enough workers to do the work, some do not have the required skills, etc. 

Other than software engineers and developers, the other jobs in the world in need of practitioners are electronics engineers, mechanical engineers and nurses. They are the top 4 most-in demand jobs around the world. 

____ are software programs that hide in other computer programs and reveal their designed behavior only when they are activated. select one:

a. viruses

b. worms

c. trojan horses

d. back doors

e. alien software

Answers

C
Trojans only show when the damage has been done, no sooner.

Using features on demand results in saving potentially significant amounts of disk space. features on demand becomes a third installation state per feature in windows server 2012 r2. while previous versions allowed only enable or disable, features on demand provides _______.

Answers

The answer is Disabled with payload removed
The development is extremely crucial in the age where we contstantly receive access to overload of content.
Large hardisk means that we could store much more of the amount of data that we could put without compromising the performance.

A(n) ____ backup only archives the files that have been modified since the last backup.

Answers

The answer is incremental backup as this is the one responsible of having to provide a backup with files that are modified since the last backup it has received, it is considered to be a backup in which is a type of security copy.

In cell h5 enter a formula that will calculate the percentage of attendees tjat went ro altmonte speings job gair in 2018

Answers

Let the number of attendees who went to the job fain in 2018 be x.
Let the total number of attendees be y.

To find the percentage of attendees in 2018, we will divide the number of attendees in 2018 by the total number of attendees and then multiply the quotient by 100 to get the percentage.

Based on this, the formula would be as follows:
(x/y) * 100

Once i have internet connection do i need anything else to surf the web

Answers

 no, no you do not
havee a great day

Write the html to create a fragment identifier at the beginning of a web page designated by "top".

Answers

<p name="top"> This could be at the top of the page</p>

This is link could be at the bottom of the page and when clicked on it will take the user to the top of the page.
<a href="#top"> Go to top</a>

To create a fragment identifier at the beginning of a web page designated as "top," you can use an anchor tag with the id attribute set to "top." Here's the HTML code -

<a id="top"></a>

How to use this code

You can place this code at the desired location within the <body> section of your web page.

This creates an anchor point that can be used as a reference for linking or scrolling to the top of the web page using the fragment identifier "#top".

Learn more about html  at:

https://brainly.com/question/4056554

#SPJ2

What is the function of a programming language?
A) It makes it possible for users to easily customize game play to suit their interests
B) It tells computers what to do and allows communication through the Internet
C) It allows programmers from different countries to communicate on the job
D) It creates a standardized way for people in all stages of creation to discuss the game

Answers

Answer: its b

programming language

the language used to build the game that tells computers what to display and allows communication through the Internet

Explanation:

Final answer:

A programming language is a tool that allows programmers to give instructions to computers and enables communication through the Internet. It is used to write software programs and control the behavior of computer systems.

Explanation:

A programming language is a tool that allows programmers to give instructions to computers and enables communication through the Internet. It is used to write software programs and control the behavior of computer systems. For example, programming languages like Python, Java, and C++ are used to create applications, websites, and video games.

Which is the correct formula to add the values in cells A1 and B1? A. SUM(A1+B1) B. =SUM(A1+B1) C. =SUMA1+B1 D. A1+B1

Answers

The answer to this question

is B

Out of the choices provided above, it can be concluded to state that the correct formula in Excel for adding the values in cells A1 and B1 is ''=SUM(A1+B1)''. Therefore, the option B holds true.

What is the significance of Excel formulae?

Excel formulae can be referred to or considered as the ones which can be entered into cells on the Excel-Sheets in order to perform different functions and commands. These formulae contain mathematical capacities, and are able to do complex calculations with ease.

Summation is a simple function in Excel, which can be performed using the SUM function. In order to perform this function, the user has to enter the =SUM(A1+B1) in the cell where he wants to derive the value of the summation of the both the cells A1 and B1.

Therefore, the option B holds true and states regarding the significance of Excel formulae.

Learn more about Excel formula here:

https://brainly.com/question/20497277

#SPJ6

The first window displayed when you install opensuse is the ____ window.

Answers

is the Boot Options window.

What feature could you use to automatically shade cells containing a negative value in red? A. Fill Color B. Orientation C. Conditional Formatting D. Sort & Filter

Answers

You could  use Conditional Formatting to automatically shade cells containing a negative value in red. Correct answer: C

This tool in excel is used for additional formatting options and colors, for exploring and analyzing data, detecting critical issues, and identifying patterns and trends.

PowerPoint presentations make use of pages known as 

Answers

it is well known as slides

the correct answer is slides

When a typist changes from a conventional typewriter to a word processor, his typing schema will have to _____ to incorporate the new techniques needed for the new equipment?

Answers

Final answer:

A typist transitioning from a typewriter to a word processor needs to adapt their typing schema to effectively use the new features and functionalities offered by word processing software, enhancing productivity and document quality.

Explanation:

When a typist changes from a conventional typewriter to a word processor, his typing schema will have to adapt to incorporate the new techniques needed for the new equipment. The transition from a conventional typewriter to a word processor involves learning how to utilize features such as variable width fonts, WYSIWYG (what you see is what you get), and leveraging higher resolution output devices like laser and inkjet printers. This adaptation is crucial for taking full advantage of the productivity gains offered by modern word processing software, which can significantly increase the number of pages a typist can produce per hour compared to both manual and electric typewriters.

When working in an office program, one of the first things that you need to do is create and save a _____.

Answers

...copy. This ensures that the project is, first and foremost, named, and also makes it easier to save later on (all you would need to do is press Ctrl-S).

Using Powerpoint or Impress guarantees that your presentation will do the following

A) Stay on schedule and end on time

B) Be clear and understood

C) Keep your audience engaged and excited

D) None of these

Answers

The key word in this question is "guarantees". I can speak from experience that using a PowerPoint does not guarantee that the audience will understand everything included or end on schedule. Anyone who has sat through a PowerPoint-driven lecture can tell you that being engaged and excited depends a lot more on content and delivery than the fact that a PowerPoint was used.

While a PowerPoint may help the presentation stay on schedule, be clear and understood, and keep the audience engaged, the mere fact that a PowerPoint was used guarantees none of these. 
Answer is D

Answer:

D) None of these

Explanation:

Remember that this is a question where you have to think in your experiences, powerpoint can help you make more dynamic a presentation or have a more engaging presentation, but you that doesn´t actually help you or guarantees that your presentation will be engaging and be clear, that all depends solely on you or the presentator that is doing the presentation.

Which of these is not a form of customization?
a. Assembly
b. Design
c. Travel
d. Fabrication

Answers

c. travel is the correct answer i believe

Among the given options, travel is not a form of customization. Thus, the correct option for this question is C.

What is Customization?

Customization may be defined as the process of constructing or altering something according to the need or demand of the user or buyer. Each and every industry from clothing to the internet follow this concept of customization in order to make their product's customer based.

There are numerous aspects of customization through which the company or manufacturers modify their products and make them attractive to buyers. This strategy of the company and manufacturers are depend on the assembly, design, and fabrication of products or items.

Therefore, among the given options, travel is not a form of customization. Thus, the correct option for this question is C.

To learn more about Customization, refer to the link:

https://brainly.com/question/3520848

#SPJ2

Using a "word" of 3 bits, list all of the possible signed binary numbers and their decimal equivalents that are representable in:

Answers

The sign bit is the high order bit, so that leaves two bits for the value. Two bits can represent 0-3. 2^2 possibilities.

Final answer:

Using a 3-bit word, the possible signed binary numbers range from -4 to +3, with the most significant bit indicating the sign. The numbers are 000 (+0), 001 (+1), 010 (+2), 011 (+3), 100 (-4), 101 (-3), 110 (-2), and 111 (-1) in binary and their corresponding decimal values.

Explanation:

The question involves listing all of the possible signed binary numbers and their decimal equivalents using a 3-bit word. In signed binary using 3 bits, we can represent a limited range of numbers, from -4 to 3. We use the most significant bit (MSB) as the sign bit where 0 denotes non-negative and 1 denotes negative.

It is important to note that using two's complement, the binary sequence 100 represents -4, which is the minimum value for a 3-bit signed binary number.

Udp is the only connectionless transport protocol true

Answers

False = SPX is also connectionless and so are many (older protocols) others.

________ software is used in a linux environment to mount and write data only to ntfs partitions.​

Answers

Before a user can access a file on a Unix-like machine( or linux), the file system that contains it needs to be mounted with the mount command.mounting NTFS partitions is a bit complicated. This involves installation of addition software such as fuse and ntfs-3g. In both cases you probably need to use package management tool such as yum, apt-get, synaptic etc. and install it from standard distribution repository.

HELP! Answer to question 2?

Answers

One advantage of Binary Search Algorithm
Compared to Linear search it is much faster because linear search starts its searching right from the first value but binary searches for something by splitting the array in two again and again and again. 

One disadvantage of Binary Search Algorithm:
Have to be sorted, unlike linear search that doesn't have to be. 

The optimum number of members in a small group is _____.

Answers

Answer: five to seven

Explanation: on odyssey the excerpt is: “Usually, the optimum number of members is between five and seven.”

You have a unique id number, which is represented by the variable id, containing a string of numbers. write a program that continuously takes strings to standard input. if the string is not your id number, print "this is not your id number." if it is, print "this is your id number: " followed by the number, and terminate the loop.

Answers

idNumber = "123456"
idNo = input("Enter the unique ID number: ")
while idNumber != idNo:
print("This is not your ID number.")
idNo = input("Enter the unique ID number: ")
print("This is your ID number: ", idNo)

Output:

sh-4.3$ python3 main.py                                                                                                                                                                                                                                                

Enter the unique ID number: 2345                                                                                                                                                                                                                                       

This is not your ID number.                                                                                                                                                                                                                                            

Enter the unique ID number: 4563                                                                                                                                                                                                                                       

This is not your ID number.                                                                                                                                                                                                                                            

Enter the unique ID number: 12345                                                                                                                                                                                                                                      

This is not your ID number.                                                                                                                                                                                                                                            

Enter the unique ID number: 123456                                                                                                                                                                                                                                     

This is your ID number:  123456

To print a unique ID number which is represented by a variable and it contains string of numbers . For this, first declare the unique ID then create a variable that take inputs from the keyboard. After this, create a loop that will match with your unique number (ID). Lastly, display a message if ID is matched then print ‘This is your ID number’ and if it is not matched then print ‘This is not your ID number’.

Further Explanation:

Code:

The complete code in python language for the given problem is shown below:

# Your unique ID number

id = "12345"

# Enter the ID  number

number = input ("Enter an ID: ")

# Loop to match the ID number with input

while id !=number:

# Print the message

print ("This is not your ID number")

number = input ("Enter an ID: ")

print("This is your ID number:", number)

Output:

Run the commands in python, the output will be looking as below:

Enter the unique ID number: 24345

This is not your ID number

Enter the unique ID number: 1345                                                    

This is not your ID number

Enter the unique ID number: 12345  

This is your ID number

Enter the unique ID number: 35645                                                

This is not your ID number

Learn more:

1. A company that allows you to license software monthly to use online is an example of ? brainly.com/question/10410011  

2. Prediction accuracy of a neural network depends on _______________ and ______________. brainly.com/question/10599832  

Answer details:

Grade: College Engineering

Subject: Computer Science and Engineering

Chapter: Python Programming

Keyword:

Python, input, output, programming, statements, if-else, loops, print, scan. while, body, main body, char, int, variables, unique, ID number, match

Other Questions
1. How is the valuation of current assets affected if the company follows IFRS?a. Valuation is based on historical cost.b. Valuation is based on market adjustments.c. Valuation is based on LCM accounting.d. Assets are expensed immediately.2. Many of the accounting standards in GAAP for current asset accounts are _________ with the international standards.a. convergedb. accordantc. accruedd. converted3. Unearned subscription revenue occurs on the balance sheet as aa. long term assetb. long term investmentc. current asset of long term investmentd. current liablity of long term liablity4. Interest payable is shown on the a. income statementb. balance sheet as a long term liablityc. balance sheet as a current liablity d. balance sheet as a long term asset The environment or situation in which a speech occurs is known as In parallelogramMNOP , PK=5x and KN=x214 .What is PN ?73670100 Solve the equation. 2x + 4 = 3x 2 6 7 3 2 A low-pass first-order instrument has a time constant of 20 ms. find the frequency, in hertz, of the input at which the output will be 93% of the dc output. The united states has a budget deficit of over $18 trillion dollars. a budget deficit occurs when a nation The Congress members bill is an example of which type of legislation? A: A rider B:A concurrent resolution C: A simple resolution D: A public bill What is the probability that Eric rolls an even number or draws an ace from a standard deck of cards? A hypothetical poison prevents nucleoli from carrying out their functions. Which organelles would be affected by this poison? What would the cell be unable to do? Explain. An animal cell lacking carbohydrates on the external surface of its plasma membrane would likely be impaired in which function? In The Next Adventure, how does Malik change from the time he finds out hes moving to Japan to the end of the story? Use specific details and evidence from the text to support your response. Your response should be one to two complete paragraphs. I don't understand this. Please help!:::: Provide an answer for a, b, c, and d. Which equation can be used to find the answer? A playground with four sides has a perimeter of 52 ft. Three of the sides have lengths of 9 ft, 16 ft, and 19 ft. What is the length of the fourth side? A. s 9 + 16 + 19 = 52 s =26 26 ft B. s + 9 + 16 + 19 = 52 s = 8 8 ft C. s 52 = 9 + 16 19 s = 58 58 ft D. s 9 16 19 = 52 s = 96 96 ft Between 1640 and 1660, the nature of european immigration into north america changed, for reasons including: What is the measure of angle PSQ? NEED HELP! Will mark brainiest, heart, 5star, anything!Question 1The cell cycle is a repeating series of events that include growth, DNA synthesis, and cell division. A.TrueB. FalseQuestion 2During which stage of the cell cycle does the cell condense chromosomes and break down the nuclear envelope? Anaphase Interphase Metaphase TelophaseQuestion 3Which is the third stage of mitosis? Anaphase Interphase Metaphase TelophaseQuestion 4How is cytokinesis different in animals and plants? Animal cells get pinched into two daughter cells by the cell membrane; the plant cell has to form a cell plate before it can create daughter cells. Animal cells give daughter cells a full set of chromosomes at the time of division; plant cells give daughter cells a half set of chromosomes. Animal cells require an extra growth phase before cytokinesis; plant cells move straight to cytokinesis. Animal cells begin cytokinesis during anaphase; plant cells begin around the same time as telophase.Question 5During which stage of interphase does the cell grow to nearly its full size? First gap Second gap Prophase SynthesisQuestion 6Which of the following is one stage of the cell cycle? Cellular respiration Mitosis Multiplication PhotosynthesisQuestion 7Explain why it is important for daughter cells to have a full set of chromosomes. Use complete sentences. An exoplanet has four times the mass and one-fourth the radius of the earth. find the acceleration due to gravity on its surface, in terms of g, the acceleration of gravity at earth's surface. The XYZ company is seeing it's worth declining at a rate of 3.2% per year. If the current worth is 2,300,000, what will the value be in 5 years?A.) about $1,954,810B.) about$2,692,318C.) about $1,932,000D.) about $1,951,836 The european explorers who followed columbus to north america Alone in the woods, kristof hears a noise. he thinks he sees a bear coming toward him. kristof's heart starts pounding and then, a moment later, he realizes how frightened he is. this sequence of events is best explained by which theory of emotion? Steam Workshop Downloader