Tony Stark wants to build a 1000 meter high tower as quickly as possible. He has unlimited resources and an unlimited budget and is willing to spend any amount to get the job done.

He has chosen to build the tower with blocks that are 100 meters long and 100 meters wide, but only 1 meter tall. The blocks interlock on top and bottom (like legos). They cannot be stacked sideways.

Using special lifters, putting one block on top of another block takes one week. Putting a stack of up to 100 blocks on top of another stack of 100 or less also takes a week. If either stack is more than 100, it takes two weeks.

What is the shortest amount of time that it will take to build the tower?
Why is your answer the shortest amount of time?
How did you solve the problem? What is your algorithm?

Answers

Answer 1

Answer:

10 weeks

Explanation:

100 blocks stacked over 10 weeks will be 1000 meters tall

1000 divided by 100 equals 10

Answer 2

The shortest amount of time it will take to build the tower is 10 weeks.

How can the tower be built in the shortest amount of time?

To minimize the construction time, Tony Stark can follow a strategy where he first builds 10 stacks of 100 blocks each, which will take 10 weeks.

Then, he can stack these 10 stacks on top of each other in a single week since they are all 100 blocks or less. By doing so, he can complete the tower in a total of 10 weeks.

Read more about tower construction

brainly.com/question/30730573

#SPJ2


Related Questions

How does a computer interact with its environment? How is data transferred on a real computer from one hardware part to another? Describe the importance of the human interaction in the computing system.

Answers

Answer:

Explanation:

A computer system can interact with its environment using hardware that does so such as cameras, robotic arms, thermometers, smart devices etc. These hardware devices gather information from the environment and transfer it to the computer system in a format known as bits through binary electrical impulses. If the system is designed to be autonomous then the only human interaction needed would be the initial setup of the system and its hardware, once this is done the system does not need any more human interaction as long as nothing breaks.

What is a service that allows the owner of a domain name to maintain a simple website and provide email capacity

Answers

Answer:

Domain name hosting

Explanation:

Domain name hosting or otherwise called web hosting, can be defined as a service that allows the owner of any domain name the capacity and ability to maintain any simple website or it's equivalent, also granting them the capability to provide email. This is important because most, of not all websites on the network, requires web service hosting. The most important job or work of domain name hosting is to make the website's address accessible through a user or client to directly type in the Uniform resource locator(URL) tab bar of the web browser making them access the website in an easy and efficient way.

what is the use of buffer?​

Answers

Answer:

pH buffer or hydrogen ion buffer) is an aqueous solution consisting of a mixture of a weak acid and its conjugate base, or vice versa. ... Buffer solutions are used as a means of keeping pH at a nearly constant value in a wide variety of chemical applications.

Explanation:

there is your answer i got this one correct

hope it is helpful

Answer:

Limits the pH of a solution

Explanation:

A P  E X

What is the output, if userVal is 5? int x; x = 100; if (userVal != 0) { int tmpVal; tmpVal = x / userVal; System.out.print(tmpVal); }

Answers

Answer:

The output is 20

Explanation:

This line divides the value of x by userVal

tmpVal = x / userVal;

i.e.

tmpVal = 100/5

tmpVal = 20

This line then prints the value of tmpVal

System.out.print(tmpVal);

i.e 20

Hence, The output is 20

Write (define) a function named count_down_from, that takes a single argument and returns no value. You can safely assume that the argument will always be a positive integer. When this function is called, it should print a count from the argument value down to 0.

Examples: count_down_from(5) will print 5,4,3,2,1,0, count_down_from(3) will print 3,2,1,0, count_down_from(1) will print 1,0,

Answers

Answer:

Written in Python

def count_down_from(n):

    for i in range(n,-1,-1):

         print(i)

Explanation:

This line defines the function

def count_down_from(n):

This line iterates from n to 0

    for i in range(n,-1,-1):

This line prints the countdown

         print(i)


If the post office delivered mail exactly like the routers deliver messages on the Internet, which of the following statements would be true? (Choose all that apply)

Answers

Answer:

The mailman would sometimes take a different path to deliver each letter to your home.

Explanation:

Options:

The mailman would sometimes take a different path to deliver each letter to your home.

Letters would be written on the outside of envelopes for all to read instead of letters put inside envelopes.

Routers work in different ways and they take the fastest route no matter what is the direction they have to take, so they travel to several servers trying to find the fastest path to their destination, it changes almost everytime because of the use of servers and the conection speed of the different routes they can connect to, so that would be the option.

The reading element punctuation relates to the ability to

pause or stop while reading.

emphasize important words.

read quickly yet accurately.

understand word definitions.

Answers

Answer:

A

Explanation:

Punctations are a pause or halt in sentences. the first one is the answer so do not mind the explanation.

semi colons, colons, periods, exclamation points, and question Mark's halt the sentence

most commas act as a pause

Answer: (A) pause or stop while reading.

Explanation:

Write two statements to read in values for my_city followed by my_state. Do not provide a prompt. Assign log_entry with current_time, my_city, and my_state. Values should be separated by a space. Sample output for given program if my_city is Houston and my_state is Texas: 2014-07-26 02:12:18: Houston Texas Note: Do not write a prompt for the input values. 1 current_time = '2014-07-26 02:12:18:' 2 my_city = "' 3 my_state = "" 4 log_entry - "' 1 test passed 6 print(log_entry) All tests passed Run Run

Answers

Answer:

Here is the program:

current_time = '2014-07-26 02:12:18:'  

my_city = ''

my_state = ''

log_entry = ''

 

my_city = input("")   #reads in value for my_city

my_state = input("")  #reads in value for my_state

log_entry = current_time + ' ' + my_city + ' ' + my_state   #concatenates current_time, my_city and my_state values with ' ' empty space between them

 

print(log_entry)

Explanation:

You can also replace

log_entry = current_time + ' ' + my_city + ' ' + my_state  

with

log_entry = f'{current_time} {my_city} {my_state}'

it uses f-strings to format the strings

If you want to hard code the values for my_city and my_state then you can replace the above

my_city = input("")

my_state = input("")

with

my_city = "Houston"

my_state = "Texas"

but if you want to read these values at the console from user then use the input() method.

The screenshot of the program along with the output is attached.

In this exercise we have to use the knowledge of the python language to write the code, so we have to:

The code is in the attached photo.

So to make it easier the code can be found at:

current_time = '2014-07-26 02:12:18:'

my_city = ''

my_state = ''

log_entry = ''

my_city = input("")   #reads in value for my_city

my_state = input("")  #reads in value for my_state

log_entry = current_time + ' ' + my_city + ' ' + my_state   #concatenates current_time, my_city and my_state values with ' ' empty space between themlog_entry = current_time + ' ' + my_city + ' ' + my_state

log_entry = f'{current_time} {my_city} {my_state}'

my_city = input("")

my_state = input("")

my_city = "Houston"

my_state = "Texas"

See more about python at brainly.com/question/26104476

(d) Assume charArray is a character array with 20 elements stored in memory and its starting memory address is in $t5. What is the memory address for element charArray[5]?

Answers

Answer:

$t5 + 5

Explanation:

Given that ;

A character array defines as :

charArray

Number of elements in charArray = 20

Starting memory address is in $t5

The memory address for element charArray[5]

Memory address for charArray[5] will be :

Starting memory address + 5 :

$t5 + 5

Documents files should be saved as a _____ file

Answers

Answer:

PDF

Explanation:

Using the drop-down menus, correctly complete the sentences.
A(n)_____
is a set of step-by-step instructions that tell a computer exactly what to do.
The first step in creating a computer program is defining a(n)_____
the next step is creating a(n)______
problem that can be solved by a computer program.
A person writing a computer program is called a(n)
DONE

Answers

Wait I know u still need the answer or not anymore

Answer:

I'm pretty sure these are right:

1. algorithm

2. problem

3. math

4. computer programmer

Write a function that takes in a sequence s and a function fn and returns a dictionary. The values of the dictionary are lists of elements from s. Each element e in a list should be constructed such that fn(e) is the same for all elements in that list. Finally, the key for each value should be fn(e)
def group_by(s, fn):
""" >>> group_by([12, 23, 14, 45], lambda p: p // 10)
{1: [12, 14], 2: [23], 4: [45]}
>>> group_by(range(-3, 4), lambda x: x * x)
{0: [0], 1: [-1, 1], 4: [-2, 2], 9: [-3, 3]}
"""
Use Python

Answers

Answer:

Here is the Python function:

def group_by(s, fn):  #method definition

    group = {}  #dictionary

    for e in s:  #for each element from s

         key = fn(e)  #set key to fn(e)

         if key in group:  #if key is in dictionary group

              group[key].append(e)  #append e to the group[key]

         else:  #if key is not in group

              group[key] = [e]  #set group[key] to [e]

    return group #returns dictionary group

Explanation:

To check the working of the above function call the function by passing a sequence and a function and use print function to display the results produced by the function:

print(group_by([12, 23, 14, 45], lambda p: p // 10))

print(group_by(range(-3, 4), lambda x: x * x))

function group_by takes in a sequence s and a function fn as parameters. It then creates an empty dictionary group. The values of the dictionary are lists of elements from s. Each element e in a list is constructed such that fn(e) is the same for all elements in that list. Finally, the key for each value is fn(e). The function returns a dictionary. The screenshot of the program along with its output is attached.

Select content, click the Copy button, click the Paste button, and move the insertion point to where the content needs to be inserted.
Click the Copy button, select the content, move the insertion point to where the content needs to be inserted, and click the Paste button.
Select the content, click the Copy button, move the insertion point to where the content needs to be inserted, and click the Paste button.
Select the content, move the insertion point to where the content needs to be inserted, click the Copy button, and click the Paste button.

Answers

Answer:

what :)

Explanation:

Write an expression that will cause the following code to print "Equal" if the value of sensorReading is "close enough" to targetValue. Otherwise, print "Not equal". Hint: Use epsilon value 0.0001. Ex: If targetValue is 0.3333 and sensorReading is (1.0/3.0), output is: Equal

Answers

Answer:

The expression that does the comparison is:

if abs(targetValue - sensorReading) < 0.0001:

See explanation section for full source file (written in Python) and further explanation

Explanation:

This line imports math module

import math

This line prompts user for sensor reading

sensorReading = float(input("Sensor Reading: ")

This line prompts user for target value

targetValue = float(input("Target Value: ")

This line compares both inputs

if abs(targetValue - sensorReading) < 0.0001:

   print("Equal") This is executed if both inputs are close enough

else:

   print("Not Equal") This is executed if otherwise

The expression that will cause the following code to print "Equal" if the value of sensorReading is "close enough" to targetValue and print "Not equal" if otherwise is as follows;

sensorReading = float(input("write your sensor reading: "))

targetValue = float(input("write your target value: "))

if abs(sensorReading - targetValue) < 0.0001:

  print("Equal")

else:

  print("not Equal")

The code is written in python.

Code explanationThe variable sensorReading  is used to store the user's inputted sensor reading.The variable targetValue is used to store the user's inputted target value.If the difference of the sensorReading and the targetValue is less than 0.0001. Then we print "Equal"Otherwise it prints "not Equal"

learn more on python code here; https://brainly.com/question/14634674?referrer=searchResults

Which error produces incorrect results but does not prevent the program from running? a. syntax b. logic c. grammatical d. human e. None of the above

Answers

Answer:

Logic Error

Explanation:

I'll answer the question with the following code segment.

Program to print the smallest of two integers (written in Python)

num1 = int(input("Num 1: "))

num2 = int(input("Num 2: "))

if num1 < num2:

  print(num2)

else:

  print(num1)

The above program contains logic error and instead will display the largest of the two integers

The correct logic is

if num1 < num2:

  print(num1)

else:

  print(num2)

However, the program will run successfully without errors

Such errors are called logic errors

This assignment requires you to write a program to analyze a web page HTML file. Your program will read one character at a time from the file specifying the web page, count various attributes in the code for the page, and print a report to the console window giving information about the coding of the page.
Note that a search engine like Google uses at least one technique along similar lines. To calculate how popular (frequently visited or cited) a web page is, one technique is to look at as many other worldwide web pages as possible which are relevant, and count how many links the world's web pages contain back to the target page.
Learning Objectives
To utilize looping structures for the first time in a C++ program
To develop more sophisticated control structures using a combination of selection and looping
To read data from an input file
To gain more experience using manipulators to format output in C++
To consider examples of very simple hypertext markup language (HTML)
Use UNIX commands to obtain the text data files and be able to read from them
Problem Statement
Your program will analyze a few things about the way in which a web page is encoded. The program will ask the user for the name of a file containing a web page description. This input file must be stored in the correct folder with your program files, as discussed in class, and it must be encoded using hypertext markup language, or HTML. The analysis requires that you find the values of the following items for the page:
number of lines (every line ends with the EOLN marker; there will be an EOLN in front of the EOF)
number of tags (includes links and comments)
number of links
number of comments in the file
number of characters in the file (note that blanks and EOLNs do count)
number of characters inside tags
percentage of characters which occur inside tags, out of the total
Here is an example of a very simple HTML file:

Course Web Page
This course is about programming in C++.
Click here You may assume that the HTML files you must analyze use a very limited subset of basic HTML, which includes only the following "special" items: tag always starts with '<' and ends with > link always starts with " comment always starts with "" You may assume that a less-than symbol (<) ALWAYS indicates the start of a tag. A tag in HTML denotes an item that is not displayed on the web page, and often gives instructions to the web browser. For example, indicates that the next item is the overall title of the document, and indicates the end of that section. In tags, both upper and lowercase letters can be used. Note on links and comments: to identify a link, you may just look for an 'a' or 'A' which occurs just after a '<'. To identify a comment, you may just look for a '!' which follows just after a '' (that is, you do not have to check for the two hyphens). You may assume that these are the only HTML language elements you need to recognize, and that the HTML files you process contain absolutely no HTML syntax errors. Note: it is both good style because readability is increased, and convenient, to declare named constants for characters that are meaningful, for example const char TAG OPEN = ' Sample Input Files Program input is to be read from a text file. Your program must ask the user for interactive input of the file name. You can declare a variable to store the file name and read the user's response Miscellaneous Tips and Information You should not read the file more than once to perform the analysis. Reading the file more than once is very inefficient. The simplest, most reliable and consistent way to check for an end of file condition on a loop is by checking for the fail state, as shown in lectures. The eof function is not as reliable or consistent and is simply deemed "flaky" by many programmers as it can behave inconsistently for different input files and on different platforms. You may use only while loops on this project if you wish; you are not required to choose amongst while, do while and/or for loops until project 4 and all projects thereafter. Do not create any functions other than main() for this program. Do not use data structures such as arrays. You may only have ONE return statement and NO exit statements in your code. You may only use break statements inside a switch statement in the manner demonstrated in class; do not use break or continue statements inside loops. #include // used for interactive console I/O #include // used to format output #include // used to retrieve data from file #include // used to convert data to uppercase to simplify comparisons #include 11 for string class functions int main() { 1 //constants for analysing HTML attributes const char EOLN = '\n'; const char COMMENT_MARK = '!'; const char LINK='A'; //constants to format the output const int PAGEWIDTH = 70; const char UNDERLINE = '='; const char SPACE = const int PCT_WIDTH = 5; const int PCT_PRECISION = 2;

Answers

Answer:

bro it is a question what is this

Explanation:

please follow me

rray testGrades contains NUM_VALS test scores. Write a for loop that sets sumExtra to the total extra credit received. Full credit is 100, so anything over 100 is extra credit. Ex: If testGrades

Answers

Answer:

Replace

/* Your solution goes here */

with

sumExtra = 0;

for (i =0; i<NUM_VALS;i++){

if(testGrades[i]>100){

sumExtra = sumExtra - testGrades[i] + 100;

}

}

Explanation:

This line initializes sumExtra to 0

sumExtra = 0;

The following is a loop from 0 to 3

for (i =0; i<NUM_VALS;i++){

The following if condition checks if current array element is greater than 100

if(testGrades[i]>100)

{

This line calculates the extra credit

sumExtra = sumExtra - testGrades[i] + 100;

}

}

See attachment for complete question

Write a program that launches 1000 threads. Each thread adds 1 to a variable sum that initially is 0 (zero).

Answers

Answer:

The answer is below

Explanation:

Using Java programming language.

*//we have the following codes//*

import java.util.concurrent.ExecutorService;

import java.util.concurrent.Executors;

public class My_Answer {

private static Integer sum = 0;

public static void main(String[] args) {

 ExecutorService executor = Executors.newCachedThreadPool();

 for (int i = 0; i < 1000; i++) {

  executor.execute(new AddOne());

 }

 executor.shutdown();

 while (!executor.isTerminated()) {

 }

 System.out.println("sum = " + sum);

}

private static class Add_Extra implements Runnable {

 public void run() {

  sum++;

 }

}

}

What is the main purpose of software imaging?

a. to make compressed copies of complete systems
b. managing the project shift
c. photo distortion
d. software pirating​

Answers

A is the answer for your question

Explain why it is not necessary for a program to be completely free of defects before it is delivered to its customers?

Answers

Answer:

Testing is done to show that a program is capable of performing all of its functions and also it is done to detect defects.

It is not always possible to deliver a 100 percent defect free program

A program should not be completely free of all defects before they are delivered if:

1. The remaining defects are not really something that can be taken as serious that may cause the system to be corrupt

2. The remaining defects are recoverable and there is an available recovery function that would bring about minimum disruption when in use.

3. The benefits to the customer are more than the issues that may come up as a result of the remaining defects in the system.

Choose the word to make the sentence true. The ____ function is used to display the program's output.

O input
O output
O display

Answers

The output function is used to display the program's output.

Explanation:

As far as I know this must be the answer. As tge output devices such as Monitor and Speaker displays the output processed.

The display function is used to display the program's output. The correct option is C.

What is display function?

Display Function Usage displays a list of function identifiers. It can also be used to display detailed usage information about a specific function, such as a list of user profiles with the function's specific usage information.

The displayed values include the prefix, measuring unit, and required decimal places.

Push buttons can be used to select functions such as summation, minimum and maximum value output, and tare. A variety of user inputs are available.

A display is a device that displays visual information. The primary goal of any display technology is to make information sharing easier. The display function is used to display the output of the program.

Thus, the correct option is C.

For more details regarding display function, visit:

https://brainly.com/question/29216888

#SPJ5

There is a company of name "Baga" and it produces differenty kinds of mobiles. Below is the list of model name of the moble and it's price model_name Price reder-x 50000 yphone 20000 trapo 25000 Write commands to set the model name and price under the key name as corresponding model name how we can do this in Redis ?

Answers

Answer:

Microsoft Word can dohjr iiejdnff jfujd and

Microsoft Word can write commands to set the model name and price under the key name as corresponding model.

What is Microsoft word?

One of the top programs for viewing, sharing, editing, managing, and creating word documents on a Windows PC is Microsoft Word. The user interface of this program is straightforward, unlike that of PaperPort, CintaNotes, and Evernote.

Word documents are useful for organizing your notes whether you're a blogger, project manager, student, or writer. Because of this, Microsoft Word has consistently been a component of the Microsoft Office Suite, which is used by millions of people worldwide.

Although Microsoft Word has traditionally been connected to Windows PCs, the program is also accessible on Mac and Android devices. The most recent version of Microsoft Office Word.

Therefore, Microsoft Word can write commands to set the model name and price under the key name as corresponding model.

To learn more about microsoft word, refer to the link:

https://brainly.com/question/26695071

#SPJ5

You want to look up colleges but exclude private schools. Including punctuation, what would you
type?
O nonprofit college
O college -private
O private -college
O nonprofit -college

Answers

private-college. hope this helped :)

You want to look up colleges but exclude private schools. Including punctuation, The type is private -college. The correct option is c.

What are institutions of higher studies?

The institutions for higher studies are those institutions that provide education after schooling. They are colleges and universities. Universities, colleges, and professional schools that offer training in subjects like law, theology, medicine, business, music, and art are all considered higher education institutions.

Junior colleges, institutes of technology, and schools for future teachers are also considered to be part of higher education. There are different types of colleges, like government colleges and private colleges. Private colleges are those which are funded by private institutions.

Therefore, the correct option is c. private -college.

To learn more about excluding, refer to the link:

https://brainly.com/question/27246973

#SPJ2

Which query is used to list a unique value for V_CODE, where the list will produce only a list of those values that are different from one another?

a. SELECT ONLY V_CODE FROM PRODUCT;
b. SELECT UNIQUE V_CODE FROM PRODUCT;
c. SELECT DIFFERENT V_CODE FROM PRODUCT;
d. SELECT DISTINCT V_CODE FROM PRODUCT;

Answers

Answer:

d. SELECT DISTINCT V_CODE FROM PRODUCT;

Explanation:

The query basically lists a unique value for V_CODE from PRODUCT table.

Option a is incorrect because it uses ONLY keyword which does not use to list a unique value for V_CODE. Instead ONLY keyword is used to restrict the tables used in a query if the tables participate in table inheritance.

Option b is incorrect because it is a constraint that ensures that all values in a column are unique.

Option c is incorrect because DIFFERENT is not a keyword

Option d is correct because the query uses SELECT statement and DISTINCT is used to select only distinct or different values for V_CODE.

The query that should be used for a unique value is option d.

The following information should be considered:

The query listed the unique value for V_CODE arise from the PRODUCT table.Option A is wrong as it used ONLY keyword that does not represent the unique value. Option B is wrong as it is constraint where the columns values are considered to be unique.Option C is wrong as DIFFERENT does not represent the keyword. Option D is right as query applied SELECT and DISTINCT that represent different values.

Therefore we can conclude that the correct option is D.

Learn more: brainly.com/question/22701930

The following equations estimate the calories burned when exercising (source): Men: Calories = ( (Age x 0.2017) — (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184 Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184 Write a program with inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for men and women. Ex: If the input is 49 155 148 60, the output is:

Answers

In python:

age = float(input("How old are you? "))

weight = float(input("How much do you weigh? "))

heart_rate = float(input("What's your heart rate? "))

time = float(input("What's the time? "))

print("The calories burned for men is {}, and the calories burned for women is {}.".format(

   ((age * 0.2017) - (weight * 0.09036) + (heart_rate * 0.6309) - 55.0969) * (time / 4.184),

   ((age * 0.074) - (weight * 0.05741) + (heart_rate * 0.4472) - 20.4022) * (time / 4.184)))

This is the program.

When you enter 49 155 148 60, the output is:

The calories burned for men is 489.77724665391963, and the calories burned for women is 580.939531548757.

Round to whatever you desire.

The programming language is not stated. So, I will answer this question using Python programming language.

The program requires a sequence control structure, because it does not make use of conditions and iterations.

The program in python is as follows, where comments (in italics) are used to explain each line.

#This gets input for age, in years

age = int(input("Age (years): "))

#This gets input for weight, in pounds

weight = int(input("Weight (pounds): "))

#This gets input for heart rate, in beats per minutes

heart_rate = int(input("Heart Rate (beats per minutes): "))

#This gets input for time, in minutes

time = int(input("Time (Minutes) : "))

#This calculates the calories burnt for men

Men = ((age * 0.2017) - (weight * 0.09036) + (heart_rate * 0.6309) - 55.0969) * time / 4.184

#This calculates the calories burnt for women

Women = ((age * 0.074) - (weight * 0.05741) + (heart_rate * 0.4472) - 20.4022 ) * time / 4.184

#This prints the calories burnt for men

print("Men:", Men)

#This prints the calories burnt for women

print("Women:", Women)

At the end of the program, the program outputs the amount of calories burnt for men and women.

See attachment for sample run

Read more about Python programs at:

https://brainly.com/question/22841107

Write a function called matches that takes two int arrays and their respective sizes, and returns the number of consecutive values that match between the two arrays starting at index 0. Suppose the two arrays are {3, 2, 5, 6, 1, 3} and {3, 2, 5, 2, 6, 1, 3} then the function should return 3 since the consecutive matches are for values 3, 2, and 5.

Answers

Answer:

Written in C++

int matches(int arr1[], int arr2[], int k) {

   int count = 0;

   int length = k;

   for(int i =0; i<length; i++)     {

       if(arr1[i] == arr2[i])         {

           count++;

       }

   }

   return count;

}

Explanation:

This line defines the function

int matches(int arr1[], int arr2[], int k) {

This line initializes count to 0

   int count = 0;

This line initializes length to k

   int length = k;

This line iterates through the array

   for(int i =0; i<length; i++)     {

The following if statement checks for matches

       if(arr1[i] == arr2[i])         {

           count++;

       }

   }

This returns the number of matches

   return count;

}

See attachment for complete program

WILL GIVE BRAINIEST! Your users are young children learning their arithmetic facts. The program will give them a choice of practicing adding or multiplying. You will use two lists of numbers. numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]. numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]. If the user chooses adding, you will ask them to add the first number from each list. Tell them if they are right or wrong. If they are wrong, tell them the correct answer. Then ask them to add the second number in each list and so on. If the user chooses multiplying, then do similar steps but with multiplying. Whichever operation the user chooses, they will answer 12 questions. Write your program and test it on a sibling, friend, or fellow student.

Answers

In python:

numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]

numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]

while True:

   i = 0

   userChoice = input("Adding or Multiplying? (a/m) ")

   if userChoice == "a":

       while i < len(numA):

           answer = int(input("What is {} + {} ".format(numA[i],numB[i])))

           if answer == numA[i] + numB[i]:

               print("Correct!")

           else:

               print("That's incorrect. The right answer is {}".format(numA[i] + numB[i]))

           i += 1

   elif userChoice == "m":

       while i < len(numA):

           answer = int(input("What is {} * {} ".format(numA[i], numB[i])))

           if answer == numA[i] * numB[i]:

               print("Correct!")

           else:

               print("that's incorrect. The right answer is {}".format(numA[i] * numB[i]))

           i += 1

The program will give them a choice of practicing adding or multiplying is true.

What is computer program?

Computer program is defined as a series of instructions written in a programming language that a computer may follow. Computers can obey a set of instructions created through coding.  Programmers can create programs, including websites and apps, by coding.

Python says:

numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]

numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]

though True:

I = 0

input("Adding or Multiplying? (a/m)") userChoice

when userChoice equals "a"

even when I = len(numA):

What is input("What is + ".format(numA[i],numB[i]))? answer = int

if response == numA[i] + numB[i]:

print("Correct! ")

else:

print( "That is untrue. The appropriate response is "Formatted as (numA[i] + numB[i])

I += 1

if userChoice == "m," then

even when I = len(numA):

answer = int("What is *? ".format(numA[i], numB[i]))

if the response equals numA[i] + numB[i]:

print("Correct! ")

else

print( "that is untrue. The appropriate response is ".format(numB * numA[i]

I += 1

Thus, the program will give them a choice of practicing adding or multiplying is true.

To learn more about program, refer to the link below:

https://brainly.com/question/11023419

#SPJ3

What does lurch mean

Answers

Answer:

lurch means make an abrupt, unsteady, uncontrolled movement or series of movements; stagger.

Answer:

uncontrolled movement or series of movements

Explanation:

You are given an array of integers, each with an unknown number of digits. You are also told the total number of digits of all the integers in the array is n. Provide an algorithm that will sort the array in O(n) time no matter how the digits are distributed among the elements in the array. (e.g. there might be one element with n digits, or n/2 elements with 2 digits, or the elements might be of all different lengths, etc. Be sure to justify in detail the run time of your algorithm.

Answers

Answer:

Explanation:

Since all of the items in the array would be integers sorting them would not be a problem regardless of the difference in integers. O(n) time would be impossible unless the array is already sorted, otherwise, the best runtime we can hope for would be such a method like the one below with a runtime of O(n^2)

static void sortingMethod(int arr[], int n)  

   {  

       int x, y, temp;  

       boolean swapped;  

       for (x = 0; x < n - 1; x++)  

       {  

           swapped = false;  

           for (y = 0; y < n - x - 1; y++)  

           {  

               if (arr[y] > arr[y + 1])  

               {  

                   temp = arr[y];  

                   arr[y] = arr[y + 1];  

                   arr[y + 1] = temp;  

                   swapped = true;  

               }  

           }  

           if (swapped == false)  

               break;  

       }  

   }

How is actual cost calculated?

Please answer

Answers

Answer:

One method of calculating product costs for a business is called the actual costs/actual output method. Using this technique, you take your actual costs — which may have been higher or lower than the budgeted costs for the year — and divide by the actual output for the year.

Explanation:

Other Questions
what is the value of 1+(-7)-(-2.5)? What was the purpose of the Mangna Carta what was seward's argument and what did he accomplish? 1/6 and 3/10 simplified Explain why the several different types of microscopes are all necessary. The pulmonary circulation carries blood between the heart and ______ 6. Leo walks his dog 78 mile. He walks his dog 3 times a day. Which of the following shows how repeated addition can be used to find how far Leo walks his dog every day? Which of the following is true of prokaryotic cells? In the desert air, sound travels at 358 meters per second (m/s). In the polar air, sound travels at 330 meters persecond (m/s). What can you conclude from this information?A - The speed of sound is constant.B - Sound waves travel fastest in a vacuum.C-The temperature of the air affects the speed of sound.D-Sound waves travel at the same speed everywhere on Earth.Please provide your answer below using CER1. Claim: What is your choice for the correct answer?2. Evidence: What evidence did you observe from the test-like question that made you decide on your answer?3. Reasoning: Provide an elaboration on your evidence, possible prior knowledge about your claim. 13. How many parts does the Declaration of Independence have?1. 2. 3. 4 At a distance of 10.0 m from a loudspeaker, the sound intensity level is measured to be 70 dB. At what distance from the source will the intensity be 40 dB? To narrow one's focus in order to become an expert at producing a particular good or service is to __________.A.specializeB.expandC.enlargeD.contractPlease select the best answer from the choices providedABCD The factor which most establishes an internet search as efficient and useful for a business is:A.the number of people who use it.B.the ancillary options it has (reverse image search, audio search, etc.).C. a well-curated index.D. how it monetizes searches. guys I need followers g A proton travels through uniform magnetic and electric fields. The magnetic field is in the negative x direction and has a magnitude of 1.97 mT. At one instant the velocity of the proton is in the positive y direction and has a magnitude of 1680 m/s. At that instant, what is the magnitude of the net force acting on the proton if the electric field is (a) in the positive z direction and has a magnitude of 4.34 V/m, (b) in the negative z direction and has a magnitude of 4.34 V/m, and (c) in the positive x direction and has a magnitude of 4.34 V/m What does negative 3 over 5 > 2 indicate about the positions of negative 3 over 5 and 2 on the number line? How much smaller is x3 than x+4? A physics student throws a softball straight up into the air. The ball was in the air for a total of 3.56 s before it was caught at its original position. What is the initial velocity of the ball? Consider upwards to be the positive direction. The table shows four account transactions. Find the account balance after the transactions when the account started with a balance of $55. Why was there great concern about admitting Missouri as a slave state? It meant that Maine could not have slaves. The Louisiana Purchase had required that there be no slave states within the territory. Transporting slaves to Missouri was difficult. There would be more slave states than free states.