Write the program code to find the cube of numbers from 1-5. Also do the dry run by using the trace table. (Javascript)

Answers

Answer 1

Answer:

Following are the JavaScript program

< html >

< body >

<  script >

var k,t; // variable declaration

for (k = 1; i < 6; k++)  // iterating the loop

{  

t=k*k*k;// find the cube of number

document.write(k);   // display the cube root

document.write(" < / br > " );  // moves to the next line

}

< / script >

< / body >

< / html >

Output:

1

8

27

64

125

Explanation:

We used the script tag for creating the JavaScript program. Declared the variable "k" in the script tag.Iterating the for loop .In the for loop the k variable is initialized by the 1 This loop is executed less then 6 .In each iteration we find the cube of number in the "t" variable and display that number by using document .write ().


Related Questions

Identify at least five different Information Technology careers that you could pursue in your home state, and choose the three that appeal to you
the most. Out of the three, write a one-page essay describing which one would be your career choice and the educational pathway that you would
have to follow in order to obtain that career. Finally, identify at least three colleges, universities, or training programs that are suited to that career
choice. You can use the following resources to help you:​

Answers

Answer:Five careers within the Information Technology cluster that would be interesting to me are video game designer, software developer, database administrator, computer science teacher, and business intelligence analyst. Of those careers, being a video game designer, software developer, or business intelligence analyst sounds the most appealing to me. Out of all those choices, I think that being a business intelligence analyst seems the most interesting.

Business intelligence analysts work with computer database information, keeping it updated at all times. They provide technical support when needed and analyze the market and customer data. At times, they need to work with customers to answer any questions that they have or fix things as needed. The part that I would find most interesting would be collecting intelligence data from reports for the company for which I work. To complete the job, I would need to have great customer service skills, communication skills, critical thinking skills, and knowledge of computers.

Before I could find work as a business intelligence analyst, I would need to complete a bachelor’s degree in computer science to learn how to do computer programming and use other applications that I would need to know for the job. Some of the schools that have a great program for computer science are the University of California at Berkeley, Georgia Institute of Technology, and California Institute of Technology. Once I have completed a bachelor’s degree, I would continue on to get a master’s degree in the field, which would help me advance in my career and get promotions.

Explanation:

On hearing my name, you might be reminded of long queues at metro stations or food courts. Just as a human body has a name for each of its parts, similarly I am an entity that identifies the part of the program like keywords, operators, identifiers, punctuation, etc

Answers

Answer: The correct answer is STACK

Explanation: Stack is an abstract data type that serves as a collection of elements, with two principal operations: push and pop. Push adds an element to the collection while pop removes the most recently added element that was not yet removed.

In computing is a data structure used to store a collection of objects.

when asking a question how do u add a photo for others to also see​

Answers

Click on the bottom button

Answer:

click on the thing that looks like a paper clip and select a file (microsoft computers)

Explanation:

Write a program to read customer number, Name, loan amount, interest rate and time of repayment. Calculate and display the EMI .To calculate EMI, calculate interest amount using formula: Interest amount = loan amount(1+ rate/100)time . Then add Interest amount to loan amount and divide by time (in months).

Answers

Answer:

The programming language is not stated; however, I'll answer this question using Python programming language.

This program doesn't make use of comments (See Explanation Section for detailed explanation)

The program is as follows

name = input("Customer Name: ")

number = input("Customer Number: ")

loan = float(input("Loan Amount: "))

rate = float(input("Interest Rate: "))

time = int(input("Repayment Time [in months] : "))

Interest = loan * (1 + rate/100) ** time

EMI = (Interest + loan)/time

print("EMI: ", end='')

print(round(EMI,2))

Explanation:

This line prompts for customers' name

name = input("Customer Name: ")

This line prompts for customers'number

number = input("Customer Number: ")

This line prompts for loan amount

loan = float(input("Loan Amount: "))

The line prompts for the interest rate

rate = float(input("Interest Rate: "))

This line prompts for time of loan repayment

time = int(input("Repayment Time [in months] : "))

Using the given formula, this line calculates the interest amount

Interest = loan * (1 + rate/100) ** time

The EMI is calculated using this line

EMI = (Interest + loan)/time

This line prints the string "EMI: " without the quotes

print("EMI: ", end='')

The last line of the program prints the calculated value of EMI, rounding it up to 2 decimal places

print(round(EMI,2))

Which statements are true? Check all that apply.

A number line from 0 to 1. There are 10 unnumbered points between 0 and 1. There is a circle is on the third, seventh, and tenth points.

Two-elevenths is the smallest value plotted on the number line.
Eight-elevenths is between Seven-elevenths and Ten-elevenths.
Five-elevenths is greater than Seven-elevenths.
Ten-elevenths is equal to 1 whole.
Two-elevenths is less than Three-elevenths.

Answers

Answer:

Eight-elevenths is between Seven-elevenths and Ten-elevenths.

Two-elevenths is less than Three-elevenths.

Explanation:

There are 10 unnumbered points between 0 and 1. Since from 0 to 1 there would be 11 points, This means that each of the point is separated by one-elevenths. The first point is one-eleventh, the second point is two-eleventh and so on. The tenth point is ten-eleventh.

i) Since The first point is one-eleventh, the smallest value plotted on the number line is one-eleventh.

ii) Between Seven-elevenths and Ten-elevenths is eight-elevenths and nine-elevenths. Therefore Eight-elevenths is between Seven-elevenths and Ten-elevenths.

iii) Five-elevenths is less than Seven-elevenths becomes Five-elevenths comes before Seven-elevenths on the number line.

iv) Ten-elevenths is not equal to 1 whole

v) Two-elevenths is less than Three-elevenths because Two-elevenths comes before Three-elevenths on the number line.

A(n) _____ describes your core values and highest career goals. A. résumé B. objective statement C. qualifications profile D. personal mission statement

Answers

Answer: D.) Personal Mission Statement

Explanation: The personal mission statement refers to a write up which is usually written by an individual and it's tailored to embody one's complete definition in terms of core values, skills, attributes and most importantly present and future desires, goals and objectives. The statement of purpose is usually detailed and will showcase where an individual is currently placed while also showcasing how he or she intends to achieve future aspiration.

Answer:

The answer would be D.) Personal Mission Statement (APEX)

Other Questions
You still .......... (believe) in Santa Claus. simple present tense -Lab-"Why are cells so small" Pet Place sells pet food and supplies including a popular bailed hay for horses. When the stock of this hay drops to 20 bails, a replenishment order is placed. The store manager is concerned that sales are being lost due to stock outs while waiting for a replenishment order. It has been previously determined that demand during the lead-time is normally distributed with a mean of 15 bails and a standard deviation of 6 bails. The manager would like to know the probability of a stockout during replenishment lead-time. In other words, what is the probability that demand during lead-time will exceed 20 bails Give an example of a function from N to N that is: Hint: try using absolute value, floor, or ceiling for part (b). (a) one-to-one but not onto (b) onto but not one-to-one (c) neither one-to-one nor onto The amount of pollutants that are found in waterways near large cities is normally distributed with mean 8.5 ppm and standard deviation 1.4 ppm. 18 randomly selected large cities are studied. Round all answers to two decimal places.A. xBar~ N( ____) (____)B. For the 18 cities, find the probability that the average amount of pollutants is more than 9 ppm.C. What is the probability that one randomly selected city's waterway will have more than 9 ppm pollutants?D. Find the IQR for the average of 18 cities.Q1 = Q3 = IQR:2. X ~ N(30,10). Suppose that you form random samples with sample size 4 from this distribution. Let xBar be the random variable of averages. Let X be the random variable of sums. Round all answers to two decimal places.A. xBar~ N(___) (____)B. P(xBar 36)=E. Q3 for the xBar distribution = What is the result of 1816 2/3? Enter the result as an improper fraction and as a mixed number. What is the slope of the line with the twopoints A(-4, 8) and B(-9, 12)? U-boats were used primarily togather information about enemy movements by tracking warships.protect the German coast from attack by Allied ships and submarines.resupply troops with guns, ammunition, and food via sea rather than land.target Allied shipments on passenger ships, warships, and merchant ships. How did the story the sun parlor relate to the theme of forgiveness? Find the area of a triangle that has the base of 5 inches and a height of 3 3/4 inches Review the "Types of Distribution Channels" study material. Explain why the selection of distribution channels is essential to a successful marketing strategy. Provide an example of a well-known company's distribution channels and defend their choices. In replies to peers, agree or disagree with their assessment and justify your response. Find the area of the smaller sector.A6 in030Area = [? ]in?BRound your answer to the nearest hundredth. can you please help ? The American Ambassador to France during the Revolution was: A. Benjamin Franklin B. George Washington C. John Adams D. Thomas Jefferson Identify a situation where hearing the whole message might make a big difference in your response. Liability policies, such as personal liability, professional malpractice, or business liability insurance, do NOT protect the insured against a. a personal injury on the insured's property, such as the mail carrier who slips and falls on the owner's sidewalk. b. intentional harm caused by the insured. c. someone injured by the insured away from home or business. d. claims for property damaged by the insured. Number of multiples of 7 between 200 and 1000 3:7 ratio what fraction does he get Which statements explain the appeal of a video game as a type of media that can be used for persuasion? Select two options. Video games allow players to engage in role-playing in order to create negative associations with fantasy. Video games frequently raise awareness of important issues by including details about current events. Video games are visually stimulating, so players will be drawn to the exciting and memorable graphics. Video games provide entertainment, so unassuming players will not recognize any biased information. Video games are typically in color, which would make them stand out from other forms of propaganda. (((french))) Write a short essay of a time line of your childhood. Include 4-6 complete French sentences such as when I was 3 I went to elementary school, when I was 6, I played with my friends in the park, etc.