Wwrite a program that displays the dimensions of a letter-size (8.5dz x 11dz) sheet of paper in millimeters.

Answers

Answer 1

The program given below defines two functions: `inchesConversion` and `displayOut`. The `inchesConversion` function takes a value in inches and multiplies it by a constant conversion factor to convert it to millimeters.

```
// Define the conversion factor as a constant
const MILLIMETERS_PER_INCH = 25.4;

// Define the inchesConversion function
function inchesConversion(inches) {
 return inches * MILLIMETERS_PER_INCH;
}

// Define the displayOut function
function displayOut() {
 // Calculate the dimensions in millimeters
 const widthInMillimeters = inchesConversion(8.5);
 const heightInMillimeters = inchesConversion(11);

 // Format the output string
 const output = `A letter-size sheet of paper is ${widthInMillimeters} mm wide and ${heightInMillimeters} mm tall.`;

 // Display the output using console.log()
 console.log(output);
}

// Call the displayOut function to run the program
displayOut();
```

The `displayOut` function calls `inchesConversion` twice to calculate the dimensions of a letter-size sheet of paper in millimeters, formats the output string with these values, and displays the result using `console.log()`. Finally, the program runs by calling the `displayOut` function.

Learn more about programs on converting units here:

https://brainly.com/question/12973247

#SPJ11

Full question is:

Write a program that displays the dimensions of a letter-size (8.5 x11) sheet of paper in millimeters.

The program must include a function, inchesConversion(inches), that accepts a single value in inches, and returns the inches converted to millimeters. The function must also use a constant variable for the conversion factor.

The program must also include a second function, displayOut(), and uses console.log() to display the required formatted output. You will need to call the inchesConversion() function from the displayOut() function to calculate the millimeters in 8.5 inches and 11 inches. The output should be displayed using the console.log() function.


Related Questions

Create a program that will calculate and print to the screen a sales receipt

Answers

Answer:

The Code:

print('Invoice Bill')

table = Table(['Item Name', 'Item Price'])

total = 0

while(1):

   name = input('Enter Item name:')

# "x" to exit and print the table

   if(name != 'x'):

       price = int(input('Enter the Price:'))

       # store all the prices in "total"

       total += price

       table.add_row([name, price])

       continue

   elif(name == 'x'):

       break    

table.add_row(['TOTAL', total])

print(table)

print('Your total bill amount is ', total, '/-')

Explanation:

This program is written in the PYTHON language.

The user needs to enter the item name and price as much as they want; this will print the item name, item price and total in tabular form.

#SPJ2

A person who creates a computer virus is a (1)system analyst (2) techician(3) programmer​

Answers

Answer:

a person who creates a computer virus is a programmer

Answer: hacker

Explanation:

A writing guide in making a project correctly.

a.project proposal
b.project plan
c.project format
d.project template ​

Answers

Answer:

b

Explanation:

B Project plan hope this helps

Output values below an amount Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follow. Then, get the last value from the input, which indicates a threshold. Output all integers less than or equal to that last threshold value. Assume that the list will always contain fewer than 20 integers. java

Answers

The program that first gets a list of integers from input, gets the last value from the input, which indicates a threshold, and outputs all integers less than or equal to that last threshold value is:

import java.util.Scanner;

public class LabProgram {

 /* Define your methods here */

public static void main(String[] args) {

Scanner scnr = new Scanner(System.in);

int[] userValues = new int[20];

int upperThreshold;

int numVals;

numVals = scnr.nextInt();

GetUserValues(userValues, numVals, scnr);

upperThreshold = scnr.nextInt();

OutputIntsLessThanOrEqualToThreshold(userValues, numVals, upperThreshold);

}

}

Read more about java programming here:

https://brainly.com/question/26952414

#SPJ1

What is a "Top-Level Domain Name"?

Answers

A top-level domain is known to be an aspect of a domain that quickly follows the last dot symbol that is seen in a domain name.

What is a "Top-Level Domain Name"?

This is known to be the biggest level in terms of the hierarchical Domain Name System of the Internet.

Note that TLD (top-level domain) is said to be the most generic domain that is seen on the Internet's hierarchical DNS (domain name system) as A top-level domain is known to be an aspect of a domain that quickly follows the last dot symbol that is seen in a domain name.

Learn more about Domain Name from

https://brainly.com/question/13437432

#SPJ1

Write a loop that will take in 5 numbers from the user and output the average. Round your answer to two decimal places.
Sample Run:

Enter a number: 2
Enter a number: 7
Enter a number: 11
Enter a number: 4
Enter a number: 5
The average is 5.8

Hurry please!! will mark brainliest!!

Answers

I’m gonna do it in the form of a pseudocode.

Pseudocode 1: Number_Average
Declare sum, num, num_count, average
START
sum = 0
num_count = 0
average = 0
Display “Enter a number”
Read num
Display “Enter a number”
Read num
Display “Enter a number”
Read num
Display “Enter a number”
Read num
Display “Enter a number”
Read num
While(count = 5)
DO
num_count = 0+1
sum = 0+1
average = sum/5
ENDWHILE
STOP

Question #6
Multiple Choice
What tag is used to contain information about a web page, such as the title and related pages?

O
O

Answers

Answer:   b; head

Explanation:

Answer: <head>

Explanation: EDGE '23

The developers have used the results from the model to choose a computer controlled flood defense system. It will have a barrier which can open or close. describe the role of the microprocessor in such a system​
key word sensor , ADC , microprocessor, Preset , higher and lower barrier

Answers

The role of the microprocessor in a computer controlled flood defense system are:

The flood signal makes the microprocessor to start a flood control work or function that tends to interrupts the constant operating cycle that is known to be executed.

Note that  if any, and it start and keeps the operation of a drain cycle until the water is known to have returns to the constant level for a a given period of time.

What is the role of the microprocessor?

The Functions of Microprocessor are:

It helps to control or monitors all the parts of the machine and it often sends timing signals.It helps to move data between memory and I/O devices.It helps to bring back data and instructions from a given memory.

The microprocessor is known to be one that acts as the central unit of a computer system that carries out duties such as the arithmetic and logic operations.

Hence, The role of the microprocessor in a computer controlled flood defense system are:

The flood signal makes the microprocessor to start a flood control work or function that tends to interrupts the constant operating cycle that is known to be executed.

Note that  if any, and it start and keeps the operation of a drain cycle until the water is known to have returns to the constant level for a a given period of time.

Learn more  about microprocessor from

https://brainly.com/question/614196

#SPJ1

Gui screen usually contain elements that are called?

Answers

Answer: Widgets

Components

Controls

Explanation:

scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of previous CPU bursts.

Answers

SJF scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of previous CPU bursts.

What is SJF in operating system?

SJF is a term that connote Shortest Job First. It is said to be a type of CPU scheduling whose algorithm is linked with each as it is said to process the length of the next CPU burst.

Note that for one to be able to know the time for the next CPU burst to take place, one need to take the SJF into consideration as that is its function.

Hence, SJF scheduling is approximated by predicting the next CPU burst with an exponential average of the measured lengths of previous CPU bursts.

See options below

A) Multilevel queue

B) RR

C) FCFS

D) SJF

Learn more about scheduling from

https://brainly.com/question/19309520

#SPJ1

What are the three advantages of using blockchain technology? multiple choice all of the answer choices are correct. digital trust internet of things integration immutability

Answers

The  three advantages of using blockchain technology are:

digital trust internet of thingsimmutability

What is blockchain technology?

A Blockchain is known to be a kind of a chain of blocks that is made up of information.

Note that the data that are said to be stored inside a block is one that is based on the type of blockchain. Blockchain  is seen as a kind of a shared, form of immutable ledger that quickens the process of putting down or recording transactions and helps in the tracking of assets in a business network.

Hence, The  three advantages of using blockchain technology are:

digital trust internet of thingsimmutability

Learn more about blockchain technology from

https://brainly.com/question/25700270

#SPJ1

Define a function SwapRank() that takes two char parameters passed by reference and swap the values in the two parameters. The function does not return any value. Ex: If the input is A C, then the output is: C A

Answers

The program that takes two char parameters passed by reference and swap the values in the two parameters is illustrated below.

What is a program?

A computer program is a sequence of instructions in a programming language for a computer to execute.

The program is illustrated below:

void SwapGrade(char &g1, char &g2)

{

char t = g1;

g1= g2;

g2 = t;

}

Output

B

C

C B

Learn more about program on:

https://brainly.com/question/26642771

#SPJ1

Write a written report about the possible input devices of the future?

Answers

Answer:

Its inevitable, people will make errors while using your input device. It is crucial that you measure how many of each of these types of errors are made, so you are able to use techniques to effectively counter them: 1. Mistakes —User uses the wrong method to achieve the tasks 2. Slips — The method used carried out incorrectly.

Explanation:

Figure shows a multiplexer in a synchronous TD slot is only 10 bits long (3 bits taken from each input plus is the output stream? The bits arrive at the multiplexer arrows.

Answers

The solution to the bits arrive at the multiplexer arrows is shown in the image attached.

What is a multiplexer used for in computing?

A multiplexer is known to be a kind of a device that is same to be one that is able to take a lot of analog signals and also helps to forwards the input that were taken into a single line.

Note that they are seen as devices that are often used to to boast the amount of data that are known to be passed over a network.

A good example of  a given non-electronic circuit of a multiplexer is known to be the single pole multi-position switch.

Therefore, The solution to the bits arrive at the multiplexer arrows is shown in the image attached. because it accurately tells the the arrangement of the 10 bits  in the arrow.

Learn more about multiplexer from

https://brainly.com/question/15052768

#SPJ1

Assembler Language
CSCI 360-1 Assignment 4 Name_____________________
Spring 2019 ABENDs and Dump Reading
25 points
This programming assignment does not require any further coding or documentation than what is provided. The program will ABEND and your task is to learn how to investigate what happened so that you can debug your own Assembler programs in the future. To begin, run the following program on the Marist mainframe using the ASSIST JCL used previously. Be sure you type it or copy it EXACTLY as shown below:
DUMP1 CSECT
USING DUMP1,15 ESTABLISH REG 15 AS BASE REG
*
SR 2,2 CLEAR REG 2
*
LA 3,NUM1 LOAD ADDRESS OF NUM1 INTO REG 3
LA 4,NUM2 LOAD ADDRESS OF NUM2 INTO REG 4
*
A 2,0(,3) ADD NUM1 TO REG 2
A 2,0(,4) ADD NUM2 TO REG 2
*
LA 5,SUM LOAD ADDRESS OF SUM INTO REG 5
ST 2,0(,5) STORE THE SUM OF NUM1 & NUM2 AT SUM
*
XDUMP , SET REG 2 TO 35
*
LTORG
*
SUM DC F'0' FULLWORD OF ZERO TO LATER HOLD SUM
*
NUM1 DC F'1206000000' VARIOUS FULLWORD INTEGER VALUES
NUM2 DC F'972460'
NUM3 DC F'1344335922'
*
END DUMP1
Use the resulting ABEND dump output to answer the questions below. Each is worth 2 points except question 11 which is worth 5 points.
Did this error occur (a) while the program was being assembled or (b) when it was being run?
________________________________________________________________________________
What is the address of the next instruction which would have been executed?________________________________________________________________________________
What is the value of the condition code at the time of the ABEND?
________________________________________________________________________________
What is the length of the instruction that caused the ABEND (number of bytes)?
_______________________________________________________________________________
What is the address of the instruction that caused the abend?
_________________________________________________________________________________
What type of error occurred (number and name)?
_________________________________________________________________________________
What usually causes this error?
_________________________________________________________________________________
What does the value in register 2 represent at the time of the ABEND dump?
__________________________________________________________________________________
What instruction needs to be added to fix this ABEND?
_________________________________________________________________________________
What does the value stored at location counter value 00002C represent?
_________________________________________________________________________________
What exactly happened here to cause the ABEND? Be detailed but succinct in your description.
_________________________________________________________________________________

_________________________________________________________________________________

_________________________________________________________________________________

_________________________________________________________________________________

_________________________________________________________________________________

Answers

hello thnks

Explanation:

If you would like to give another user permissions on your mailbox or to particular folders within your mailbox, which role should you configure?

Assignee
Client
Delegate
Manager

Answers

Answer:

I think it's B, Delegate

Explanation:

Cause the other options didn't seem to fit as the answer.

I really don't know though.

A delegate is someone who has been granted permission by another user to access. The correct answer would be an option (C).

What is a mailbox?

A computer-simulated mailbox that stores email messages. Mailboxes are saved on a disc as a message file or a message database.

A delegate is someone who has been granted permission by another user to access and manage their mailbox, including sending and responding to email messages on their behalf.

When you grant delegate access to another person, you are giving them the ability to access specific folders within your mailbox and perform specific actions, such as reading, sending, and deleting email messages.

Assignee, client, and manager are not terms typically used in the context of delegate access in email systems.

Thus, the correct answer would be option (C).

Learn more about the mailbox here:

https://brainly.com/question/28430685

#SPJ6

What is the 3 common keys used to access the BIOS.​

Answers

Answer:

To access your BIOS, you'll need to press a key during the boot-up process. This key is often displayed during the boot process with a message “Press F2 to access BIOS”, “Press <DEL> to enter setup”, or something similar. Common keys you may need to press include Delete, F1, F2, and Escape.

Accenture began its own Cloud journey in 2015, after our internal IT organization recognized the significant advantages to be gained in leveraging Cloud capabilities at scale. Today, which percentage of Accenture's infrastructure and processes are in the Cloud?

Answers

Answer: 95%

Explanation:

Accenture began its own Cloud journey in 2015, and invested in about $3 billion to move to cloud. This has helped the company in timely delivery and achieving organizational goals.

Today, the percentage of Accenture's infrastructure and processes that are in the Cloud is about 95%. Its HR, sales, finance, legal system etc are all in cloud.

The percentage of Accenture's infrastructure and processes that are stored or located in the Cloud is: 95%.

A Cloud can be defined as the elastic leasing of pooled computer resources (physical hardware) over the Internet and through the use of virtualization.

Accenture is one of the world's largest management and technological consulting company that provide services such as:

Database managementConsultingStrategy planningOutsourcing

Basically, Accenture help business organizations in the implementation of data governance and management policies, in order to ensure the organization's data is trustworthy and reliable.

In 2015, Accenture started its own Cloud journey after recognizing the significant advantages it stand to gain or benefit in leveraging Cloud capabilities at a larger scale.

Consequently, the percentage of Accenture's infrastructure and processes that are stored or located in the Cloud is 95 percent.

Read more: https://brainly.com/question/23844088

Computer professionals known as software engineers, or Blank______, use the software development life cycle to create software required for information systems.

Answers

Answer:

Computer professionals known as software engineers, or programmers use the software development life cycle to create software required for information systems.

Explanation:

Computer professionals are called software engineers and programmers because they develop and program software. Some additional titles for computer professionals are hardware engineers and iOS/Android developers.

PLEASE HELP ME! Sam was researching rocks and minerals. He thought the Web site looked unprofessional, so he looked for the author's information or credentials. He couldn't find any. Is this site reliable? A. Probably B. Probably not.

Answers

Answer:

B

Explanation:

If a site looks unprofessional and doesn't have any credentials, those are two signs that it's probably not very reliable.

What does this mean

Answers

Answer:

"Y YUR Y YUB I CUR YY 4 ME"

Explanation:

thats what i read lol, i dont know the meaning though

Which of the following allows you to copy
formatting of text from one part of your presentation
and apply it to text in another part of your
presentation?
Animation Painter
Animation
Format Painter
slide master
DONE

Answers

Answer:

format painter

Explanation:

PLS HELP ASAP) Omar is using the web to do research on diabetes. he needs to ensure that all of the information he finds regarding medications, treatments, and diets are accurate. the first websites he finds has a lot of information about a diet plan to help diabetic live healthy lifestyle. Omar can't figure out who the author of the site is and he notices that matches the one described on the website. Which of these are red flags that he should continue doing more research elsewhere? choose the right answer

a. the content is biased towards a particular diet plan that the site is advertising

b. Omar cant find the author so there is no proof that the writer can be trusted to provide medical advice.

c. both A and B

d. none of the above. the website can be trusted.


Nikolas is doing research on U.S visas for a school project. he has found conflicting information on two sites. the first site is travel.state.gov and the other is traveldocs.com which site should Nikolas trust more? choose the answer

a. Travel.state.gov

b. Traveldocs.com

Answers

Not sure on the first question, but the second would be answer choice a: Travel.state.gov since a website with .gov at the end tend to be trustworthy sources

Answer: 1. C. both A and B.

2.  Travel.state.gov

Explanation: i took the test!

Create a file name that to ensure the that the file is easy to find

Answers

Answer:

I always name mine something like HI

or YEET i dont know

why but it works

Explanation:

The File name would be : ABC!

If you connect to a network through your phone or cable company, then you probably connect through a________.

Answers

If you connect to a network through your phone or cable company, then you probably connect through an Ethernet crossover cable.

What is meant by the ethernet cable?

This is the type of cable that is known to be used for the wired types of connections. These types of cables are unlike the other types of connections such as the broadband which may be an internet type of connection that people use.

The ethernet cables are cables to connect using those devices that are in the the  local area networks. The popular example is the router. Hence we can say that If you connect to a network through your phone or cable company, then you probably connect through an Ethernet crossover cable.

Read more on ethernet here: https://brainly.com/question/1637942

#SPJ1

the manager of a xyz organisation is preparing the organizational chart which feature of MS Excel /he will use to do so? also write the steps for this​

Answers

Answer:

Smart Art

Explanation:

The smart art feature in Microsoft excel allows for the creation of organizational chart on Microsoft excel. It readily allows for an hierarchical arrangement of an organization's personnel including the various departments on the system. The smartart allows the implementation of a graphical output which allows the display of an organization's personnel in order of hierarchy. To get started with smart art on excel, Clicking on the insert tab, the same are appears under illustrations. For an organizational chart, the Hierarchy smart art graphic type is selected and filled accordingly.

which computer can be used where is no electricity ?​

Answers

Answer:

mechanical computers

Explanation:

A mechanical computer is built from mechanical components such as levers and gears rather than electronic components. The most common examples are adding machines and mechanical counters, which use the turning of gears to increment output displays.

Answer:

Non-electric computers.

A mechanical computer is a computer built from mechanical components such as levers and gears rather than electronic components

During the merge sort operation for the list {90 7 9 43 62 12 21 36}, at what left and right partition position is 21 added to the temporary list

Answers

The point at left and right partition position to add 21 is Left position is 1 and right position is 7.

How do you solve merge sort?

The Algorithm for Merge Sort operations are:

First one need to find the middle index of the array. Then one has to Divide the array from the middle. Then do Call merge sort for the second half of the array. Then one can finally merge two sorted halves into one sorted array.

Hence, The point at left and right partition position to add 21 is Left position is 1 and right position is 7.

See Group of answer choices

Left position is 2 and right position is 6

Left position is 1 and right position is 7

Left position is 4 and right position is 7

Left position is 2 and right position is 5

Learn more about sort operation from

https://brainly.com/question/15090822

#SPJ1

When using spanning tree protocol. What is the first step in selecting paths through a network?

Answers

The first step in selecting paths through a network is STP must first select the root bridge, or master bridge.

Which one is the first step in STP operation?

The STP network convergence consists in three steps: elect a root bridge, elect root ports and elect designated and non-designated ports. When you enable STP, the first step in its convergence process is to elect a switch to act as a root bridge using the Spanning Tree Algorithm.

See more about STP at brainly.com/question/20039073

#SPJ1

Write a definition in your own words for Raster Graphic. Do not copy and paste please.

Answers

Answer:

Raster Graphic is a bitmap. They are basically a grid of small pixels that make an image.

Other Questions
If calcium ions, each of which has a charge of +2 (Ca2+), moved OUT OF a neuron, and no other ions were moving, what would be TRUE? a. The area outside the neuron would be become more negatively charged. b. The concentration of Ca2+ inside the cell would increase. c. The neuron would become more negative. d. The neuron would become more positive In the fetal pig body, the bile duct and pancreatic duct Select one: a. empty into the duodenum like in the human body b. empty into the duodenum unlike in the human body c. empty into different places like in the human body d. empty into different places unlike in the human body Which single transformation could be used to map quadrilateral e f g h to equilateral e f g h Using the least-squares criterion, the researcher obtained the following estimated multiple regression equation: y = 1,087 20x3 + 48x4 + 16x5 The coefficient 16 in the estimated multiple regression equation just given is an estimate of the change in average given month (in thousands of dollars) corresponding to a ___ change in rebate amount printer sales in a when ___ of the other independent variables are held constant. If the rebate amount increases by 14 units under this condition, you expect printer sales to increase on average by an estimated amount of ___ determine the values of the following quantities: a. t.1,15 b. t.05,15 c. t.05,25 d. t.05,40 e. t.005,40 A candle (h_o = 0.38 m) is placed to the left of a diverging lens (f = -0.077 m). The candle is d_o = 0.22 m to the left of the lens. Randomized Variables h_o = 0.38 m f = -0.077 m d_o = 0.22 m Write an expression for the image distance, A certain first rate reaction is 45.0 one in 65 s. what is the rate constant and the half life? question that directs the interviewee to answer in a certain way, often by indicating the answer the interviewer wants to hear When hydroxylapatite, Ca, (POA), OH, dissolves in aqueous acid, which resulting component will participate in multiple equilibria? Select the correct answer below: O Ca? + O PO O OH O none of the above e of the angle between the two planes with normals 1=1,0,1 and 2=8,9,5, defined as the angle between their normal vectors. a system does 1090 j of work on the environment. in the process, his internal energy decreases by 2190 j. determine the value of q, including the algebraic sign. What is the proper coefficient for water when the following equation is completed and balanced for the reaction in basic solution?C2O4^2- (aq) + MnO4^- (aq) --> CO3^2- (aq) + MnO2 (s) Find the Maclaurin series for f(x)=x417x3f(x)=x417x3.x417x3=n=0[infinity]x417x3=n=0[infinity]On what interval is the expansion valid? Give your answer using interval notation. If you need to use [infinity][infinity], type INF. If there is only one point in the interval of convergence, the interval notation is [a]. For example, if 0 is the only point in the interval of convergence, you would answer with [0][0].The expansion is valid on Calculate the vapor pressure of octane at 38 degrees Celsius knowing that Hvap = 40 kJ/mol and octane has a vapor pressure of 13.95 torr at 25 degrees Celsius and vapor pressure of 144.78 torr at 75 degrees Celsius. TRUE/FALSE. In analysis of variance, large sample variances reduce the likelihood of rejecting the null hypothesis. Let ci be the constant marginal and average cost for firm i (so that firms may have different marginal costs). Suppose demand is given by P = 1 Q.a. Calculate the Nash equilibrium quantities assuming there are two firms in a Cournot market. Also compute market output, market price, firm profits, industry profits, consumer surplus, and total welfare.b. Represent the Nash equilibrium on a best-response function diagram. Show how a reduction in firm 1s cost would change the equilibrium. Draw a representative isoprofit for firm 1. How long will it take to deposit 2.32 g of copper from a CuSO4(aq) solution using a current of 0.854 amps?A. 120 minutes B. 137 minutes C. 65 minutes D. 358 minutes E. 358 minutes At 23, becky has just received her b. S. In horticulture from a state college. She has been interested in flowers and gardening since grade school. While in high school, she won several state-fair ribbons for her flowers, which she grew in her spare time while working part-time at a fast-food restaurant and going to school. She continued working at the restaurant while in college. What advice would you give becky as she prepares her rsum in order to apply for a full-time position as a horticulturist for the local county extension service? the x-z plane is the boundary between two media. if the surface current density is 2 3 s j x y = . on the boundary, what is h2 ? Regarding Encoder-Decoder, which of the following statements is NOT true? An Encoder-Decoder model can always be replaced by a single sequence-to-sequence RNN is language processing. The Decoder is a vector-to-sequence network. The Encoder is a sequence-to-vector network. The Encoder-Decoder model concatenates the Encoder network with the Decoder network.