The ACME Online Store offers different preferred customer discounts for customers who are "None", "Bronze", "Silver" and "Gold".

The variable customer_category is a string that is one of these 4 values.

0 for "None"
5 for "Bronze"
10 for "Silver"
20 for "Gold"
Your colleague wrote the following program (Program C). Does the program that he/she wrote have the correct logic to assign the correct discount for each of the 4 valid values of customer_category?

Program C:

if customer_category == "None":

discount = 0

if customer_category == "Bronze":

discount = 5

if customer_category == "Silver":

discount = 10

if customer_category == "Gold":

discount = 20

Answers

Answer 1

Yes, the written program has the correct logic to assign the correct discount for each of the 4 valid values of customer_category

What is a Program?

This refers to the sequence of instructions that are keyed into a computer to execute user-specific commands.

Hence, we can see that based on the variable customer_category that has a string that is one of these 4 values:

0 for "None"

5 for "Bronze"

10 for "Silver"

20 for "Gold"

The program uses the correct syntax as it gives the correct discount based on the assigned values of the variable customer_category as executed with the syntax above.

Read more about programs here:

https://brainly.com/question/1538272

#SPJ1


Related Questions

When is it appropriate to save a file locally and When is it appropriate to save remotely ?

Answers

It is appropriate to save a fil elocally when:=

the file will be used primarily on a single device or computer, andthere is no need for the file to be accessed or edited by multiple users or devices, andthere is no need for a backup of the file in case the device or computer is lost or damaged.

When should you store remotely?

It is appropriate to save a file remotely when:

the file needs to be accessed or edited by multiple users or devices,there is a need for a backup of the file in case the device or computer is lost or damaged,you want to access the files from different location.

In general, it is best to save important or critical files remotely to ensure that they can be accessed and recovered in case of device failure or loss.

Read more about storage here:

https://brainly.com/question/24227720

#SPJ1

Ursa Major Solar needs to fulfill the following requirements:
A custom object must be created to capture account survey data.
Users need the ability to select an account from the survey record and view related surveys on the account record.
Which two actions can an administrator configure to meet these requirements?
Choose 2 options.

Answers

1. To collect data from the account survey, create a custom object.

2. Set up a lookup relationship between the custom object and the account object to allow users to choose an account from the survey record and view associated surveys on the account record.

To collect account survey data, an administrator can construct a custom object in Ursa Major Solar. The date of the survey, the results, and survey comments are just a few possible fields for this custom object. In order to enable users to read related surveys on the account record, the administrator can also establish a relationship between the custom object and the account object. Lookup relationship a user can choose an account from the survey record and view related surveys on the account record by configuring a lookup relationship between the account object and the custom object. Users will be able to examine all surveys linked to a certain account thanks to this, making it simpler to follow survey data and take wise decisions. The administrator can also configure options for filtering and sorting to make it easier for users to identify the pertinent surveys fast.

To know more about Ursa Major Solar Please click on the link:

https://brainly.com/question/30112327

#SPJ4

How can an input/output table help you? A. by providing multiple answers to the same equation using different variables B. by providing you with formulas to use on your math homework C. by providing the input and output of every equation D. by providing the order of operations

Answers

The input/output table help you by providing multiple answers to the same equation using different variables. The correct option is A.

What is input/output table?

A statistics table called the input-output (I-O) table was created by American economist Wassily Leontief. Using transaction values between industries, the table tracks the movements of commodities and services.

The mathematical operation or operations that are applied to the input to produce the output constitute the rule for an input-output table.

The rule can be quite straightforward, like adding 1, or extremely complex, like squaring the amount and taking 17 out. Keep in mind that an input-output table is comparable to a production machine.

Thus, the correct option is A.

For more details regarding input/output table, visit:

https://brainly.com/question/30200945

#SPJ1

Let X a 3D point of coordinates X =(X,Y,Z)transpose its projection onto the spherical space, of two central cameras related by rotational R and translational t displacement, is given by the spherical points 5,- (X) Y) 21 and S-(XYZ)

1 Give the relationship between the spherical image coordinates of the viewed 3D point 1

2 Deduce the Essential matrix relationship between two spherical images

3. When the Essential matrix is degenerate?

4 Consider that the 30 point belongs to a planar object, that can be expressed through a unit normal vector n= (y) and a distance d Give the new relationship between the two spherical points S and S Recall that a 30 point belong to the plane as defined before, verify the following relationship

n X-d 5. Give answers from 1 to 4 by considering a perspective camera

6 What you can conclude?

Answers

1. The relationship between the spherical image coordinates of the viewed 3D point is given by S1 - S2 = R(X - t).

2. The Essential matrix relationship between two spherical images is given by E = Rt, where R is the rotation matrix and t is the translation vector between the two cameras.

3. The Essential matrix is degenerate when the rotation matrix R is not invertible.

4. The new relationship between the two spherical points S and S is given by S1 - S2 = R(X - t) - n(d - n X).

5. For a perspective camera, the relationship between the two spherical points S and S is given by S1 - S2 = R(X - t) - (1/f) n(d - n X), where f is the camera's focal length.

6. We can conclude that the Essential matrix relationship between two spherical images is dependent on the camera's focal length and the plane's unit normal vector and distance from the origin.

What is a 3D point of coordinates?

A 3D point is a set of coordinates (x, y, z) that represents a specific location in three-dimensional space. These coordinates can be used to define the position of the point relative to a coordinate system. The x, y, and z values represent the point's position along the x-axis, y-axis, and z-axis, respectively.

Therefore, the correct answers are as given above.

learn more about point of coordinates: https://brainly.com/question/24394007

#SPJ1

Declare double variables x1, y1, x2, and y2, and read each variable from input in that order. find the midpoint between point (x1, y1) and point (x2, y2) and assign the result to xmidpoint and ymidpoint.
The calculation is midpoint = (x1+x2/2) + (y1+y2/2)
Ex: If the input is 2 0 1 5 3 5 4 0 the output is
(2.75, 2.75)

Answers

True. (1(x1)+1(x2)1+1,1(y1)+1(y2)1+1) = (x1+x22,y1+y22) is the midpoint of the line connecting the points (x1,y1) and (x2,y2). Download the app to access an endless number of solutions. Q.

The slope formula, or the ratio of the change in the y values to the change in the x values, is m=(y2-y1)/(x2-x1). The initial point's coordinates are x1 and y1, respectively. The second points' coordinates are x2, y2. Which point you designate as the first and which as the second is irrelevant. As stated, (x, y) = [(x1 + x2)/2, (y1 + y2)/2] is the midpoint formula. where the x-coordinates axis's are x1, x2. The y-coordinates axis's are y1, y2.

To learn more about midpoint click the link below:

brainly.com/question/28224145

#SPJ4

fill in the blank
for i in _________:
print("A dalmatian dog number", i, "!")

Answers

for i in range(1,101):

print("A dalmatian dog number", i, "!")

A user entered a help desk ticket stating the latest calendar updates have not appeared on the user's corporate mobile device for several days, even though updates do appear on the user's laptop. Which of the following actions will MOST likely enable calendar alerts?
answer choices
Checking that the ringer volume on the device is high enough to be audible
Ensuring the corporate password is saved correctly in the calendar application
Installing a third-party calendar application and synchronizing it with the corporate calendar
Remotely wiping the mobile device and reinstalling all applications

Answers

Many of a customer's mobile device customers regularly misplace their devices while using them at work.

A mobile phone, cellular phone, handphone, cellphone, handphone, or pocket phone is a portable telephone that can be used to make and receive calls while the user is on the move inside of a telephone service area. Sometimes, these phrases are shortened to just "mobile," "cell," or "just phone." The radio frequency link connects the switching systems of a mobile phone operator and provides access to the public switched telephone network (PSTN). Because modern mobile telephone services use a cellular network design, mobile phones are known as cellular telephones or cell phones in North America. A number of other services, in addition to calling, are made possible by digital mobile phones (2G), including text messaging, multimedia messaging, email, Internet access, and short-range wireless communications (infrared, Bluetooth).

Learn more about Mobile here:

https://brainly.com/question/30019634

#SPJ4

4. When using the ps -x command to check the status of a process in Linux, how would you
know if a process is suspended (stopped)?
O There is a letter S under the COMMAND field.
O There is a letter R under the STAT field.
O There is a letter S under the STAT field.
O There is a letter T under the STAT field.

Answers

O There is a letter T under the STAT field.

When you use the "ps -x" command in Linux to check the status of a process, the STAT field will indicate the current state of the process. If a process is suspended or stopped, it will be indicated by a letter "T" in the STAT field. This indicates that the process is in the "stopped" or "traced" state.

There is a letter T under the STAT field  would you know if a process is suspended. Hence, option D is correct.

What is ps -x command?

The flexible ps command can be used to see which programs are currently executing on the system and how much system resources they are consuming. It shows statistics and operational data on system processes, including process or thread ID, I/O activity, CPU, and memory usage.

The command prompt now begins with a PS prefix to signify that you are using Windows PowerShell.

All currently active processes on the system can be listed using the ps command's -ef option. In reality, we frequently don't require the complete list. Instead, we wish to verify the data of specific procedures. In order to perform some filtering, we often feed the output of ps to the grep tool.

Thus, option D is correct.

For more information about ps -x command, click here:

https://brainly.com/question/30067892

#SPJ2

Can you guys tell me what this script does in my game on lua

Answers

Lua scripting is used to dynamize forms and reports. It's a software workshop that allows you to create real database management applications.

Can you code games with Lua?

Most of the code for the hugely popular game Angry Birds is written in Lua. Attend a presentation by Jaakko Lisalo at the 2011 Game Design Expo. With Lua, Snort, a well-known network intrusion prevention and detection system, may be scripted.

Lua can be used to script Celestia, a real-time 3D representation of space. As a programming language, Lua is not as challenging to learn as some others. After only a little bit of education, many students are able to start integrating it into their applications.

There are numerous options for pupils to learn Lua because it is such a well-liked and generally simple language. Game development is becoming more and more popular with the Lua programming language.

To learn more about Lua scripting refer to:

https://brainly.com/question/14523217

#SPJ1

Which of the following tools can be used to determine if a network cable is good? Choose all that apply.
a. Cable tester
b. Crimper
c. Loopback plug
d. Network multimeter

Answers

A cable tester and a network multimeter can be used to determine if a network cable is good.

A network cable's quality can be checked using a number of tools. A cable tester is one of the most frequently used tools. In order to check for continuity and appropriate wiring, a cable tester is a device that attaches to both ends of a cable and transmits a signal across the cable. A multimeter, which can measure a cable's resistance and continuity, is another useful instrument. In addition, cable faults such open or short circuits can be measured length and location using a Time Domain Reflectometer (TDR). A network multimeter is a specific kind of multimeter that may be used to gauge the voltage, current, and resistance of a network cable, among other electrical characteristics. These tools are necessary for network technicians to check that cables are operating correctly and to spot and resolve any potential problems.

To know more about network

brainly.com/question/13102717

#SPJ4

you are working in a spreadsheet and use the sumif function in the formula below as part of your analysis.Which part of this formula indicates the range of values to be added?O =SUMIFO E2:E10O >=50O D2:D10

Answers

These justifications are used in the formula: The range of cells to which the criteria should be applied is indicated by the necessary argument range.

Explain about the sumif function?

Only values that fulfil one set of criteria are added by the SUMIF function. Multiple numbers are added together by the SUMSQ function after each of them has undergone a square mathematical process. Only values that fulfil one set of conditions are counted using the COUNTIF function.

Using a true or false condition, the SUMIF function in Excel calculates the sum of the values in a range. Criteria are the requirements, and they might include things like: You can apply the criterion to one range and then add the appropriate numbers in another range if you'd like. If a number is greater than another number > If a number is less than another number

To learn more about sumif function refer to:

https://brainly.com/question/26965606

#SPJ4

You are assigned to an Offshore Development Center (ODC), which is a restricted area. Your access is not yet enabled but you need to attend a meeting inside. What will you do?

Answers

If your access is not yet enabled but you need to attend a meeting inside. The thing that you need to do are:

Contact my supervisor or the person in charge of granting access to the ODC. Explain the situation and provide the details of the meeting, including the date and time, as well as the names of the attendees.

If possible, provide any necessary documentation, such as an invitation or confirmation of the meeting, to support my request for access.

What is the restricted area about?

If I were an employee assigned to an Offshore Development Center (ODC) and my access was not yet enabled but I needed to attend a meeting inside, I would follow these steps:

Follow up with my supervisor or the person in charge regularly to ensure that my request for access is being processed and to inquire about the status of my access.

If my access is not granted in time for the meeting, I would ask my supervisor or the person in charge if there are any alternative options, such as attending the meeting via teleconference or video conference.

Therefore, It is important to be proactive and communicate clearly to ensure that your access is granted in a timely manner, and to make alternate arrangements if necessary to ensure that your work is not affected.

Learn more about restricted area from

https://brainly.com/question/28287283

#SPJ1

question 6 a data analyst reviews a database of wisconsin car sales to find the last car models sold in milwaukee in 2019. how can they sort and filter the data to return the last five cars sold at the top of their list? select all that apply.

Answers

By ranking a particular sorted column, the Sort Sheet is used to arrange all of the data in a spreadsheet.

In the column you wish to sort, choose a cell. Click Sort under the Sort & Filter group on the Data tab. Select the column you wish to sort by a custom list in the Sort dialogue box's Column section, under the "Sort by" or "Then by" box. Go to Order and choose Custom List. Placing items from a collection in some form of order is the process of sorting. A list of words, for instance, might be arranged alphabetically or by length. A list of cities might be sorted by region, zip code, or population.

To learn more about Sort Sheet click the link below:

brainly.com/question/28138049

#SPJ4

An employee receives a phone call from someone saying they are from a bank. The person claims the purpose of the call is to verify online security information including passwords and account numbers. What kind of call is this?

Answers

Answer:

Phishing

Explanation:

Answer: Scam and phishing would be the answer as they are scamming by purposing they are the bank and phishing because they are looking for personal information to use for them selves or to use against you.

hope i helped

Explanation:

Adjusting the line spacing adds more space or less space between lines of text. Which feature would you use to adjust line spacing?

Question 2 options:

Inserting


Shading


Editing


Formatting

Answers

Note that adjusting the line spacing adds more space or less space between lines of text, and the feature that you would you use to adjust line spacing is:  "Formatting" (Option D)

What is Line Spacing?

The gap between text lines is referred to as line spacing. Line spacing of 1 implies the line spacing will be as wide as one line, line spacing of 2 means the line spacing will be as wide as two lines, and so on.

Line spacing is adjusted using the formatting option, which allows you to raise or reduce the gap between lines of text.

Learn more about Formatting:
https://brainly.com/question/21934838?

#SPJ1

briefly explain additive manufacturing.​

Answers

Answer:

Additive manufacturing, also known as 3D printing, is a manufacturing process in which a digital model is used to create a physical object by adding successive layers of material. The process begins with a digital model created using computer-aided design (CAD) software or a 3D scanner. This model is then used to create a physical object by depositing or solidifying successive layers of material, such as plastic, metal, or ceramic, according to the design.

In general, an API(application programming interface) call is the method an application uses when it makes a request of the OS. A. True
B. False

Answers

In general, an API(application programming interface) call is the method an application uses when it makes a request of the OS is true

What is API?

APIs are mechanisms that enable two software components to communicate with each other using set of definitions and protocols. For example, the weather bureau's software system contains daily weather data. The weather app on your phone “talks” to this system via APIs and shows you daily weather updates on our phone

API stands for “Application Programming Interface.” An API is software intermediary that allows two applications to talk to each other. In other words, an API is the messenger that delivers your request to the provider that you're requesting it from and then delivers response back to you.

There are four different types of APIs commonly used in web services:- public, partner, private and composite. In this context, API "type" indicates the intended scope of use

learn more about API at

https://brainly.com/question/12987441

#SPJ4

Which type of list is most approprite for giving instructions on how to build a bird
house?
Bucket List
Numbered List
Bulleted List
Marked check list

Answers

Use a bulleted list for unordered items; use a numbered list for ordered items.

What is bulleted list?A bulleted list is an unordered list of items where every item has a graphical bullet. The bullets may be characters of different fonts, as well as graphical icons.Bulleted lists help the author structure the text in a better way - provide a list of application components, list of usage scenarios, etc. When the order of elements is not important and you don't need to refer to a list element later in the text, it's good to use bulleted lists. They help avoid the perception of the elements order importance.When the order of elements is important (instruction steps, list of itemns ordered by importance), you can use a numbered list instead.

To learn more about bulleted list refer to:

https://brainly.com/question/26707368

#SPJ1

Using output devices you can:
Input data
Scan data
Store data
View or print data
None of these

Answers

Explanation:

Using output devices one can view, hear, print or get data.

true/false. a technician services mailing machines at companies in the phoenix area. depending on the type of malfunction, the service call can take one, two, three, or four hours. the different types of malfunctions occur at about the same frequency.

Answers

The number of outcomes is duration of service call which can be 1 2, 3 or 4 hours. Each outcome has equal probability. Since, the sum of all probabilities has to be 1, the probability of each outcome will be 0.25

Duration of the service call

1

2

3

4

Relative Frequency

f(x)

0.25

0.25

0.25

0.25

total = 1

learn more about probability at

https://brainly.com/question/13604758

#SPJ4

Kaggle's datasets and Data explorer allow to do which task?
Allow you to. 1. search for, asses, and upload datasets. 2. Conduct research, complete data projects, and share your accomplishments with others in data science community's

Answers

Yes. Although Kaggle datasets are open-sourced, you must first review their licence to determine how and for what reasons they may be used. Some datasets are not appropriate for commercial or scholarly publishing.

On Kaggle, a fresh dataset is posted each day. Each dataset serves as a mini community where people may interact and debate data, locate relevant publicly available code, and develop Kernels projects. The prediction problem can occasionally be solved in notebooks that contain methods for a particular dataset. You must first compress your primary dataset file in order to upload a dataset. Then, under the Datasets section, select "New Dataset." Upload your zip file and give your dataset a name (Figure 4.5). The end of that.

To learn more about Kaggle datasets click the link below:

brainly.com/question/30236949

#SPJ4

Which of the following drawings are matched with the project specifications to form the bulk of the contract documents?

Answers

Answer:

A. Drawings showing the overall layout of the project site

B. Drawings showing the proposed structure, building, or other structure

C. Drawings showing the proposed mechanical, electrical, and plumbing systems

D. Drawings showing the proposed landscape design

A, B, and C. Drawings showing the proposed landscape design are not typically part of the contract documents.

Explanation:

Of the following, which is considered changing lanes?

Answers

Blind spots are absent from vehicles with two outside mirrors. Explanation Check your mirrors, over your left or right shoulder, and signal before changing lanes to ensure that the lane next to you is clear.

Which of the following describes how to change lanes safely?

Signal, check all of your mirrors, and check for traffic in front of and behind you before changing lanes. Make sure the lane you want is clear by looking behind you in the direction you intend to move. Verify for automobiles and motorcycles.

What does the term "changing lanes" mean?

Changing lanes The act of moving a vehicle from one lane to another where both lanes are traveling in the same direction is known as a lane change.

To know more about Blind spots visit :-

brainly.com/question/28216276

#SPJ1

The complete question is-

Before changing lanes, check your side and rearview mirrors for traffic approaching you from behind. Then, use your turn signal to let other drivers know you plan to change lanes. Check for other drivers who also may be moving into the same lane. Just before you begin moving into the other lane, quickly glance over your shoulder and check for any vehicles that may be in your blind spot.

Will mark brainliest if correct!
Code to be written in python

A deferred annuity is an annuity which delays its payouts. This means that the payouts do not start until after a certain duration. Notice that a deferred annuity is just a deposit at the start, followed by an annuity. Your task is to define a Higher-order Function that returns a function that takes in a given interest rate and outputs the amount of money that is left in a deferred annuity.

Define a function new_balance(principal, gap, payout, duration) that returns a single-parameter function which takes in a monthly interest rate and outputs the balance in a deferred annuity. gap is the duration in months before the first payment, payout is monthly and duration is just the total number of payouts.

Hint: Note that duration specifies the number of payouts after the deferment, and not the total duration of the deferred annuity. You are NOT ALLOWED to use string formatting and YOU SHOULD USE previous definitions of deposit and balance to answer this question!

def new_balance(principal, gap, payout, duration):
# Complete the function
return

Definitions of previous functions deposit and balance:

def deposit(principal, interest, duration):
total = principal * ((1+ interest )** duration)
return total

def balance(principal, interest, payout, duration):
for i in range(duration): #iterating for duration number of times
principal = principal*(1+interest) #compounding the principat
principal = principal-payout #subtracting payout from principal
return principal

How to run your code?
# e.g.
# test_balance = new_balance(1000, 2, 100, 2)
# result = test_balance(0.1)

Test Case:
new_balance(1000, 2, 100, 2)(0.1)
output: 1121.0

Answers

Using the knowledge in computational language in python it is possible define a function new_balance that returns a single-parameter function which takes in a monthly interest rate and outputs the balance in a deferred annuity.

Writting the code:

def new_balance(principal, gap, payout, duration):

'''

Function to calculate the balance in a deferred annuity.

principal: the amount deposited at the start

gap: the duration in months before the first payment

payout: monthly payout

duration: the number of payouts after the deferment

'''

# define the inner function

def balance(rate):

 '''

 Function to calculate the balance, given the monthly interest rate

 '''

 # first calculate the interest earned during the deferment period

 interest = principal * (1 + rate) ** gap - principal

# then calculate the balance after the first payout

 balance = interest + principal - payout

# then loop through the remaining payouts, calculating the balance after each one

 for i in range(duration - 1):

  balance = balance * (1 + rate) - payout

 # finally, return the balance

 return balance

return balance

test_balance = new_balance(1000, 2, 100, 2)

result = test_balance(0.1)

print("{:.1f}".format(result))

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

#SPJ1

Identify the examples of experiences. Select three options

Answers

Examples of experiences are traveling to numerous countries, making numerous friends, and Marion's employment and skill set. Daryl has traveled to numerous foreign nations, Alfonso has made many close friends, and Marion has held jobs that have helped him enhance his time-management abilities.

What is an individual experience?

First, when someone has "occupation-specific experience," it means that they have a certain amount of time working in the same field as their new employment.

Why does experience outweigh knowledge?

Knowledge is theoretical, but experience is different since it allows you to put what you have learned from a book into practice. Additionally, it offers you the chance to put your knowledge to the test.

To know more about Examples of experiences visit :-

https:/brainly.com/question/29641237

#SPJ1

The complete question is :

Identify the examples of experiences. Select three options.

Connie has good hearing ability.

Daryl has visited many other countries.

Alfonso has developed many strong friendships

Thelma has decided to audition for a role in a television show.

Sherry has set a goal of reading fifty books in a year.

Marion has worked at jobs that improved his time-management skills.

a linux user report that an application will not open and gives the error only one instance of the application may run at one time. a root administrator logs on ot the device and opens terminal. which of the following pairs of tools will be needed to ensure no other instance of the software are correctly running?

Answers

The tool enables users to define security policies for a specific organization-interacting application instance.

Their Cloud Inline and Next Generation Secure Web Gateways' instance awareness technology fills the gap between simple allow-or-deny regulations, enabling granular administration across SaaS apps. Without the ability to construct controls based on the application's instance-level classification, it is difficult to implement the level of specificity inside policy definitions. Therefore, option b, "Instance awareness," is the appropriate selection.  Instance awareness is a technology that enables users to create security policies for an instance of an application that interacts with a single organization while adhering to various security standards. The best choice is b. Their Cloud Inline and Next Generation Secure Web Gateways' instance awareness technology fills the gap between simple allow-or-deny regulations, enabling granular administration across SaaS apps.

Learn more about Instance awareness here:

https://brainly.com/question/29641478

#SPJ4

Rajee has been assigned by her computer science teacher to create an animation to change the text "I am a
Good photoshop editor" into "I will soon screen a movie like AVATAR" How should she proceed?

Answers

Creating animation frames in Photoshop is done using the Timeline panel. A configuration of layers is shown by each frame. Remarkably, a timeline and keyframes can also be used to produce animations.

Is it better to animate in Photoshop or Adobe animate?

It depends on the kind of animation you want to make. Photoshop is a fantastic choice if you want to make 2D animations. Animate is a better option if you wish to make 3D animations. You may utilize Adobe Photoshop's video editing features to create appealing marketing videos.

Adobe Animate CC is a Good Program for New Users .For those who are new to creating animations, movies, or interactive material, Adobe Animate CC is a fantastic tool. It provides a user-friendly interface and strong features that make it simple to produce beautiful frame-by-frame animations. Actually, the earliest animation tool to show continuous movement was the phenakistoscope. It functions similarly to film and creates the illusion of motion by using the persistence of vision principle.

To learn more about Photoshop editor refer to :

https://brainly.com/question/16859761

#SPJ1

Now we are going to write our very first runnable JavaScript. Download a1.zip from D2L and extract the a1.html file. Rename it as a1_ Your FirstName.html. Inside the tags add the necessary JavaScript to create a word problem that includes a question and answer. • A sample word problem may look like: Q: John works for 34 weeks in a year and enjoys for the rest of the weeks. For how many weeks John enjoy? The next time the page loads, the numbers should change, so the problem may look like: assume 52 weeks in a year.
Q: John works for 26 weeks in a year and enjoys for rest of the weeks. For how many weeks John enjoy?
A: 26

Answers

To create a word problem that includes a question and answer in JavaScript, you can use the following code attached:

What is the coding  about?

The code above creates a variable called "weeksInYear" that is set to 52, which represents the total number of weeks in a year. It then creates a second variable called "weeksWorked" that is assigned a random number between 0 and 51 (since we're using the Math.floor function, the random number will be a whole number).

The "weeksEnjoyed" variable is calculated by subtracting "weeksWorked" from "weeksInYear" and this tells us the number of weeks that John is enjoying. A variable called "name" is also defined and set to "John", this is used to construct the question.

The question is written to the HTML document using the document.write() method. The question includes the number of weeks worked and the name of the person. The answer is written to the HTML document using the document.write() method as well.

Learn more about coding from

https://brainly.com/question/22654163

#SPJ1

Month-end postings to control accounts in a computerized accounting system are not required because
a. control accounts are not used in computerized systems
b. transactions are posted to accounts immediately
c. transactions are posted at the end of the financial year
d. the input operator can choose to post to accounts at any time

Answers

The correct answer is b. transactions are posted to accounts immediately. Month-end postings to control accounts in a computerized accounting system are not required .

Moving all transactions from all Journals (transaction registers) to the Chart of Accounts is referred to as the "Post Transactions Process" (General Ledger). Moving a transaction or several transactions from a module into a Journal is sometimes referred to as "posting." The account that is debited is posted on the account's debit side, while the account that is credited is recorded on the account's credit side. Throughout the year, this procedure is followed, and at the conclusion of the fiscal year, the ledger accounts are closed, tallied, and balanced.

To learn more about accounts click the link below:

brainly.com/question/22917325

#SPJ4

Three notable developments of artificial intelligence in the 3rdgeneration

Answers

Answer:

1. National security

AI plays a substantial role in national defense. Through its Project Maven, the American military is deploying AI “to sift through the massive troves of data and video captured by surveillance and then alert human analysts of patterns or when there is abnormal or suspicious activity.” According to Deputy Secretary of Defense Patrick Shanahan, the goal of emerging technologies in this area is “to meet our warfighters’ needs and to increase [the] speed and agility [of] technology development and procurement.”

2. Criminal justice

AI is being deployed in the criminal justice area. The city of Chicago has developed an AI-driven “Strategic Subject List” that analyzes people who have been arrested for their risk of becoming future perpetrators. It ranks 400,000 people on a scale of 0 to 500, using items such as age, criminal activity, victimization, drug arrest records, and gang affiliation. In looking at the data, analysts found that youth is a strong predictor of violence, being a shooting victim is associated with becoming a future perpetrator, gang affiliation has little predictive value, and drug arrests are not significantly associated with future criminal activity.

3. Transportation

Transportation represents an area where AI and machine learning are producing major innovations. Research by Cameron Kerry and Jack Karsten of the Brookings Institution has found that over $80 billion was invested in autonomous vehicle technology between August 2014 and June 2017. Those investments include applications both for autonomous driving and the core technologies vital to that sector.

Other Questions
Design and implement symbol table management routines to store all the identifiers usedin a program. Specifically, you should have operations to:a. Add an identifier to the symbol table,b. Look up an identifier in the symbol table to see if it is there or not, returning thesymbol table entry information if it is, andc. Print the symbol table. Select the correct answer.total amount = P (1 + jRyan has an eight-year loan for $6,000. He is being charged an interest rate of 5 percent, compounded annually. Calculate the total amount that he will pay.TA.$7.657.69 .$8.815.97O c.$8,864.73 Use the definition of the Laplace transform to find L{f(t)}. (Enter your answer in terms of s.)f(t) =t,0 t < 12 t,t 1L{f(t)}= add a formula to cell b12 to calculate the monthly loan payment based on the information in cells b9:b11. use a negative number for the pv argument. In relation to the policy of containment, explain how it evolved during Eisenhower's administration, includingbrinkmanship, Mutually Assured Destruction, and "peaceful coexistence. " Given f(x)=4x^2 - 1 and g (x) = 2x- 1 , find each function1. ( f+g )( x )2. ( fg ) ( x )3. ( f^n ) ( x ) The complexity of 1^n + n^4 + 4n + 4 is? - logarithmic - linear - exponential - polynomial - constant substrate level phosphorylation accounts for approximately what percentage of the atp formed Near the surface of a certain kind of star, approximately one hydrogen atom per 10 million is in the first excited level (n = 2). Assume that the other atoms are in the n = 1 level. Use this information to estimate the temperature there, assuming that Maxwell-Boltzmann statistics are valid. (Hint: In this case, the density of states depends on the number of possible quantum states available on each level, which is 8 for n = 2 and 2 for n = 1.) the assumption regarding ordinary annuities is that cash flows occur at the end of each periodtrue or false list and describe the functions wholesalers perform that add value to both retailers and consumers. what is the process that is used to find patterns and relationships among data in large databases? Andy wrote the following steps to solve the equation 252 = 125 +1. He thinks he correctly solved the problem. Did he? Identify the errors and show the correct solution they hadn't expected so much rain,a) had they?b)did they ? a graph that plots the numbers of individuals who are alive at particular ages is called _________. Assuming that the resting potential of a sensory neuron is -70 mV, which of the following represents a depolarization? a. a change to -90 mVb. staying at -70 mV c. a change to -60 mV Which of the following statements are true regarding the Ottoman Empire?The empire spanned Europe, North Africa, and the Middle East.The empire influenced the emerging trade routes for people, goods, and money that spanned from England to China.The empire drove the search for sea routes to Asia, including the expeditions that discovered the Americas. Conceptual Question 32.4 A low-pass RC filter has a crossover frequency fc = 600 Hz. What is fc if the resistance R is doubled? Express your answer as an integer and include the appropriate units. D HA ? Value Units Submit Request Answer Part B What is fe if the capacitance C is doubled? Express your answer as an integer and include the appropriate units. ? for Value Units Submit Request Answer Part C What is fe if the peak emf En is doubled? Express your answer as an integer and include the appropriate units. THIHA 0 ? fc = Value Units Submit Request Answer if || = n, how many distinct events does the probability space have? calculate the mass of a solid gold rectangular bar that has dimensions of 3.00 cm 10.0 cm 23.0 cm. (assume the density of gold is 1.93 104 kg/m3.)