What are some ways to cut down on repetitive code in your website?​

Answers

Answer 1

Answer:

using functions or loops

Explanation:

Functions allow you to repeat code execution simply by calling the function containing the code that needs to be repeated multiple times.

Loops also allow you to execute the same code repeatedly.


Related Questions

What are the two most common formats of a business letter?
Flyer and outline
Formal and informal
Corporate and LLC
Block and indented

Answers

The two most common formats of a business letter:

Block and indented

do you know zombsroyal.io

Answers

Answer:

nope. i might go look for it tho

Answer:

Yeah I play it

Explanation:

What's your tag? I'm kinda cracked

How comfortable are you relying on others to achieve your performence goals?

Answers

Answer:

Tbh I don't like to depend on people to achieve my goals but if I want to depend on someone I first have to know them really well and see if I can trust them so I'm really comfortable with people I know but if it's a a random person so I don't think I will be comfortable

1.
Given that the input A is true and the input B is false, what is the resulting value of
the output?


a. True
b. False

Answers

Answer:

Therefore, given that input A is true and the input B is false, then the resulting value of  the output will be 'False'.

Hence, option B is true.

Explanation:

Given

input A = T

input B = F

OR GATE:

INPUTS                    OUTPUT

A        B                         C

T        F                          T

It means when the inputs of the OR GATE is 'T' and 'F' respectively, the output would be 'T'.

Then if we implement NOT gate on the output 'T', the final output will be 'F'.

Because the NOT gate would just convert the 'T' into 'F'.

Therefore, given that input A is true and the input B is false, then the resulting value of  the output will be 'False'.

Hence, option B is true.

In the given question we use OR and NOT gate which can be explained as follows:

The OR gate is a type of digital logic gate that generates a 1 if any of its inputs is a 1, else it produces a 0. The OR gate functions analogously to two parallel switches that feed a light, so that when either switch is closed, the light is turned on.The NOT gate is a type of electrical circuit that produces an inverted replica of its input at its output. An inverter is another name for it. If the input variable is A, the inverted output is referred to as NOT A. It is alternatively represented as "A" or "A with a bar over the top," as seen in the outputs.

Explanation of code:

In this graph when A is "True" and B is not true, which means "False" and we pass both the value into OR gate its value will be "True".  

Therefore, the final answer is option a that is "true".

Learn more about the logic gate:

brainly.com/question/13283896

selling R frog for 50 r-obux on r-oblox!!! dont answer if u not gonna buy it
user: its_ninisuuuYT

Answers

No it’s not worth that much

Answer:

This is a complete waste of this site.

Explanation:

The whole point of this website is to provide answers for questions you have on schoolwork. Why not just go back to r-oblox and sell to your friends there? Aint nobody gonna buy nothing when you post about it on Brainly.

and
Why the computer is called dilligent
Versatile machine?give long answer ​

Answers

Answer:

The answer to this question is given below in this explanation section.

Explanation:

"Why the computer is called diligent

Versatile machine"

Computer is called versatile machine because it is used in almost all the fields for various purposes.Because it can perform the task repeatedly without loosing its speed and accuracy for a long time.They are versatile because they can be used for all sorts of task.They can also do many of the same tasks in different ways.Computer is the electronic device which perform the logical and mathematical calculation.Computer is known as the  versatile machine because it is very fast in every field and its part of life without it was cannot imagine life.

It can do the work faster and in every field the computer is used for making their work faster.

It can perform the work fast so it is called versatile machine.

Advantages of versatile machine:

Computer are very fast due to which thousand of job can be performed within the short period of time.Complex mathematical problems and logical operations can be solved by using this computer.As computer is versatile device,multiple task like communication,graphics,documentation can be done.

Disadvantages of versatile machine:

Computers are machine hence they have no brain so they work according to the program instruction set inside it.It is an electronic deice and it uses electronic sources to work,So it is very risk to store data and information on the computer independently because some electric and electronic damages may damage the data.So we have to make regular backup of the data.

photograph connect to globalization?​

Answers

Answer:

This globalisation may be through the World Wide Web, travelling exhibitions, television, or books, newspapers, and magazines. An off shoot of this international dissemination is the commercial, cultural, and political benefits that globalisation adds to the value of photography.

Explanation:

Why are asl tls and https necessary

Answers

Mark brainliest if satisfied
HTTPS is a secure extension of HTTP. Websites that install and configure an SSL/TLS certificate can use the HTTPS protocol to establish a secure connection with the server. The goal of SSL/TLS is to make it safe and secure to transmit sensitive information including personal data, payment or login information.

I
2.
Given that the input A is false and the input B is false, what is the resulting value of the output?


c. True
d. False

Answers

Answer:

True

Explanation:

Not(False) OR False = True OR False = True

In his paper, Mario rephrases his description of food deserts. Read his description below. Food deserts are places that lack access to healthy, fresh food. He wants to use another word for "access” in his description. How can Mario complete his task without leaving the Word application? Use a browser to find a synonym of the word. Use the Tell me bar to find a synonym of the word. Use the Thesaurus feature to find a synonym of the word. Use the Smart Lookup feature to find a synonym for the word.

Answers

Answer:

C.

Explanation:

Answer:

C.

Explanation:

I just took it

What is problem scoping

Answers

Answer:

the process that people use to figure out what problem they’re solving

Explanation:

discuss the various computer generation along with the key characteristics of computer of each generation​

Answers

Explanation:

Here are some pic . hope it may help you.

Explain the impacts of computer in education

Answers

Answer:

Please check the explanation.

Explanation:

The impact of computers in education has been absolutely phenomenal. Just imagine using your computer and having access to the internet, you can easily ask the question of a certain problem on Brainly, and many subject specialists on Brainly using their own computers can answer your query, helping you clear your concepts.

Some of the other advantages or positive impacts of computers in education.

Rapid communication between teachers, students, and administrationRapid internet reference may be more productive than exploring lengthy booksAudio-visual aids during learningquick information retrieval

Now, some of the negative impacts of computer in education

May encourage cheating opportunity Students may get lazy in class as they know they can get online supportE-books may extinct paper booksCertain only resources have made their resources a profit factory

Answer:

The Impact of Computers on Education The introduction of computers in education has positively affected the school in terms of student achievement, administrative and teaching methods. Computers have significantly altered student achievement. The computers in schools today are equipped with educational software that greatly aids learning.

Explanation:

Sara just started using the Internet she would like to be a little more efficient and 3 to 4 sentences give Saras some advice about how to be more efficient or using the web

Answers

Answer:

Explanation:

Efficiency with using the internet is mainly about practice. First, you should focus on making sure that your mouse and keyboard are comfortable devices for you and are positioned in a way that best suits your sitting style. Next would be using a browser that allows extension installing as there are many extension applications that drastically simplify everyday internet tasks such as closing a tab, or copying and pasting some text. Lastly, would be practice. Nobody is efficient when they first start learning to use something new, it takes practice. The more you do something the better you get at it.

Tori needs to turn her Turtle to the left 90 pixels. Which line of code should Tori use?

A tina(90)
B tina.back(90)
C tina.left(90)
D tina.right(90)

Answers

Answer: D tina right (90)

Explanation:

right

Answer:

D tina.right(90)

Explanation:

Your manager has asked you to improve network security by confining sensitive internal data traffic to computers on a specific subnet using access control lists (ACLs). On which device(s) should the ACLs be deployed

Answers

Answer:

computers

Explanation:

In cell B3, insert a nested MATCH function within an INDEX function that will look up the rental price in column D using the apartment number referenced in cell B2. With 101 entered in cell B2, the lookup function displays $950.00.

Answers

Solution :

Step 1:

Open the excel exploring_e07_grader_h1_Apartment.xlsx and save it as exploring_e07_grader_h1_Apartment_LastFirst.

Step 2:

At cell G8 in the Summary worksheet, insert the date function to the number of Years since remodel:

Compute the difference between the years 1/1/2018 value in the cell H2 and the Last remodel date present in cell F8 which returns the number of days.

Then, divide the resultant by 365 days to get the answer in the form of years.

The formula to compute the number of years since remodel at cell G8 is,

 =($H$2 - F8)/365.25

Copy the function used in the cell G8 to the cells G9:G57.

Step 3:

At cell H8 in the Summary worksheet, insert the function to compute the pet deposit.

Condition to check is whether the number of rooms that is at Cell C8 is greater than or equal to 2 and it is remodel less than 10 years ago.

If the condition is true, then pet deposit cost is $275 present at cell H4.

Otherwise the pet deposit cost is $200 present at cell H5.

So, the formula to apply at cell H8 is,

=IF(AND(C8>=2, G8<$H$3), $H$4, $H$5)

Step 4:

At cell I8 in the Summary worksheet, insert the function to display Need to Remodel:

Condition to check is whether the apartment is unoccupied depending on the cell E8(“Yes” or “No”) and last remodeled that is cell G8 is greater than 10 years (cell H3).

If the condition is true, then display as “No Change”.

Otherwise display as “Need to Remodel”.

So, the formula to apply at Cell I8 is,

=IF(_AND(_E8="No", G8>$H$3), "Need to Remodel", "No Change")

Step 5:

Copy the functions used in the cells H8:I8 to the cell range H9:I57.

Step 6:

At cell B3, to display the rental price:

By using Index function look up for the rental price present in Column D and check for the match of cell B2 with respective the Column Range A8:A57.

Syntax for INDEX function is:

=INDEX(Array, Row number, Column number)

Syntax for MATCH function is:

=MATCH(Loop up, Loop up array, Match type)

So, the function to be inserted at cell B3 is,

 =INDEX($D$8:$D$57, MATCH(B2, $A$8:$A$57,0))

Please Help ASAP. Marking Brainliest For Correct Answer.

Explore the program below, referring to the task description to know what task the chunk of code is supposed to execute. Explain why the program is not working as intended, then rewrite/rework the program so that it performs the intended task as stated in the description.

The following situation uses a robot in a grid of squares. The robot is represented by a triangle which is initially in the top left square and facing right. The robot may not travel through the black squares. The program below is intended to move the robot from its starting position to the gray square, but it is not currently working. The program segment uses the procedure called GoalReached , which evaluates to true if the robot is in the gray square and evaluates to false otherwise.

In complete sentences, explain why the program is not working as intended, and also provide a solution that allows the program to perform its intended task.

Answers

Answer: It is not working because it is missing the code needed to turn right.

Sentence :The robot would move forward two squares and would stay stuck there because it can not move forward nor turn left. You would need to add code for the robot to be able to turn right so that the robot can reach the goal

There are several reasons that could make a code segment not to work.

The attached code is not working because, the method ROTATE_RIGHT() is missing

From the given code segment, we have the following observations

The robot can turn left using ROTATE_LEFT()The robot can move forward using MOVE_FORWARD()

However, when there is a need for the robot to turn right, the code segment does not have a provision for that.

Hence, the reason the code is not working is because:

The method ROTATE_RIGHT() is missing

The solution to this is to provide a ROTATE_RIGHT() method in the code segment

Read more about debugging at:

https://brainly.com/question/23527739

What is Fill handle?

Answers

Answer: I copied and pasted my answer if you need the website to cite information let me know

Explanation:

Fill Handle is a feature in Excel that enables you to auto-complete a list in a row/column by simply dragging it using your mouse. A basic understanding of fill handle in Excel could save you some time and make you more productive.

The most commnonly used OS is ___.
MS-DOS
Windows
Mac
Linux

Answers

Answer:

Windows

Explanation:

The most commonly used OS today is Microsoft Windows. Microsoft's founder and President Bill Gates created the operating system way back then.

Windows is the default standard in most computers you see today and is in use in across millions/billions of devices.

Mac and Linux are similar; Mac OS, or SierraOS, is a custum Linux base OS. Both of these operating systems are popular now, but still not as widespread popular as Windows.

SierraOS only targets Mac/Apple Users. Linux targets coders.

it was field day for the upper grades at Rock Creek School,
Each grade had to choose a team name and a color for their tee-shirts,
Use the clues below to figure out what each grade chose for their team name and tee-shirt color,
each grade can chose one color and one team name.

- The third and fifth grades didn't choose an animal for their team name.
-The forth grade ended up with red tee-shirts with sharks on the.
-The fifth graders and tornadoes are not wearing teal.
-The bears are wearing green.

Some of the photo cut off sorry​

Answers

Answer: it’s green

Explanation:

Which statement describes what this command accomplishes when inside and outside interfaces are correctly identified for NAT? ip nat inside source static tcp 192.168.1.50 80 209.165.201.1 8080 extendable A. It allows host 192.168.1.50 to access external websites using TCP port 8080. B. It allows external clients coming from public IP 209.165.201.1 to connect to a web server at 192.168.1.50. C. It allows external clients to connect to a web server hosted on 192.168.1.50. D. It represents an incorrect NAT configuration because it uses standard TCP ports.

Answers

Answer:

The answer is "Option C".

Explanation:

The NAT accurately identifies the environment and internal interfaces, and main customers can link to a 192.168.1.50 Web server. When designed for, proxies examine input and output packages. IP nat "inside source" implies to encourage an outgoing parcel emanating from an "outside" application and behave accordingly.

JAVA

plzzz help...........​

Answers

Answer:

import java.util.Scanner;

class Main {

 public static void main(String[] args) {

   Scanner scan = new Scanner(System.in);

   while(true) {

     System.out.print("Enter an integer (0 to exit): ");

     int num = scan.nextInt();

     if (num == 0) break;

     if (num%3 == 0 && num%5 == 0) {

       System.out.printf("%d is divisable by both 3 and 5.\n", num);

     }

     else if (num%3 == 0 && num%5 != 0) {

       System.out.printf("%d is divisable by 3 but not by 5.\n", num);

     }

     else if (num%3 != 0 && num%5 == 0) {

       System.out.printf("%d is divisable by 5 but not by 3.\n", num);

     } else {

       System.out.printf("%d is not divisable by 3 or 5.\n", num);

     }

   }

   scan.close();

 }

}

What is unique about the date calculations from other formulas? Some do not require any arguments. It uses absolute numbers. It uses / for division. It uses parentheses for arguments.

Answers

Answer:

a. Some do not require any arguments.

Explanation:

Answer:

A) Some do not require any arguments.

Explanation:

on edge 2020

grade 10 python exercise
Write a program that prints, as a word, the value of the last digit of the int variable number. For example, if the value of number is 547, the fragment should print:
The last digit of 547 is seven

Answers

number = 547

nums = {1:"one", 2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine"}

print("The last digit of",number,"is",nums[number%10])

I wrote my code in python 3.8. I hope this helps.

Select the correct answer.
Jeff has created a table to calculate the cost of raw materials that he purchases monthly. Cell A2 shows the fixed cost of the raw material (3). Column D lists the
quantity (number of units) that Jeff purchased each month. What formula can Jeff use in E2 to calculate the monthly cost of the raw material that he can copy to all
the rows below?
1 Monthly rate
2
3
4
5
6
7
Month
Jan
Feb
Mar
Apr
May
Jun
D
Number of units Cost
10
8
12
13
10
15
ОА.
=A2*D2
B.
=$A2 D2
ОС.
=$A$2*$D$2
D. =$A$2*D$2
E.
=A$2*D2

Answers

Answer:ell A2 shows the fixed cost of the raw material (3). Column D lists the quantity (number of units) that Jeff purchased each month. What formula ..

Explanation:

When you login to your blogging account. The first screen with all controls, tools and functions is called .... Select one: a. Dashboard b. Templates c optians

Answers

Answer:

a. dashboard

Explanation:

In almost every program or webpage where you log in with a personal account. The first screen that contains all your pertinent information and the controls/tools for your account is known as the dashboard. Here you are able to adjust, modify, fix, and analyze all aspects of your account, including the data it contains. The dashboard is extremely useful and often times a necessity for every application.

There are different kinds of devices.  The dashboard option provides all the controls, tools and functions to the blogger to have an easy access to the site.

When you login to your blogging account what is the first screen?

The first screen a person can see when you log into your site is the dashboard of your administrative area.

A blog or called Weblog is known to be an online journal where an person, group, or corporation usually put or present a record of activities, thoughts, etc.

Learn more about dashboard from

https://brainly.com/question/1147194

Question 6(Multiple Choice Worth 2 points)
(01.03 MC)
There is no sound coming from the speakers. What could be the cause of this problem?
O The computer case is dirty.
The keyboard is not plugged in.
O The monitor isn't working correctly.
The volume is not turned on.

Answers

Answer:

The volume is not turned on.

Explanation:

A speaker can be defined as an electronic output device that is typically used for the conversion of an electromagnetic wave to sound wave.

Basically, this conversion is done through the help of a hardware electronic component known as transducers.

The main purpose of a speaker is to produce an audio output and as such avail the computer users an ability to hear or listen to sounds.

Hence, if there is no sound coming from the speakers; the cause of this problem could be that, the volume is not turned on because the volume determines the level of sound (output) from the speakers. Thus, if it is turned off (low), there won't be any sound from the speakers.

Answer: Your answer would be option D: The volume is not turned on.

I say this because doing the others wouldn't help fix the problem with the speakers

Select the correct text in the passage
Which sentence determines that Robert is adjusting the brightness slider?
Robert was editing a photograph. The highlighted portion of the picture and the middle tones became dark when he moved a slider to the
extreme left. The luminance of the image turned to a middle gray when he moved a slider to the left. He increased the luminance of the pixels
by pushing a slider to the extreme right. Because of this important details of the picture were lost. However, sometimes Auto Tone or Auto
Contrast can help resolve tonal problems

Answers

Explanation:

he increased the luminance of the pixels by pushing the slider to the extreme right, because auto contrast and auto will be able to adjust to effect if any important detail on the image may be lost in the process of adjusting the brightest slider

The sentence that has been determining that Robert is adjusting the brightness slider is that he increased the luminescence of the pixels in order to push the slider to the extreme right.

What is a brightness slider?

A brightness slider has been given to the system with the photographer to control the lights. It made the system that has been better reading.

In the work Robert has been the photographer, thereby he was required to make the corrections to the picture with the change in the tone by shifting the brightness slider to the extreme left. The other change made by Robert to the photograph is to change the luminance to white gray.

He was changing the luminescence of the photograph by shifting the slider to the extreme left and extreme right.

Learn more about brightness slider, here:

https://brainly.com/question/899071

#SPJ5

What was the job of the Committee of Correspondence? WILL GIVE BRANLEST AND 40 POINT

to tar and feather all British tax collectors
to communicate with the British Parliament
to contact each colony's legislature and pressure them to pay British taxes
to contact each colony's legislatures so they could join together in their opposition to the British

Answers

Answer:

to contact each colony's legislatures so they could join together in their opposition to the British

Explanation:

The committees of correspondence functioned mainly as a means of spreading news and information about the Patriot cause and mobilizing opposition to British policies in cities, towns and rural communities throughout the colonies.

Answer: to contact each colony's legislatures so they could join together in their opposition to the British

Explanation:

Leave a thanks and review if it helped, thanks?!

Other Questions
i need help with number 4 Help me solve please Which is an example of a character vs. character conflict? *A. Mimi lied to her brother a few weeks ago, and the guilt is killing her.B. Ondina is sick of everyone in town staring at her pink hair.C. Eric hit a tree head-on with his bike and now he has two black eyes.D. Cam reported Zac for plagiarizing, and now Zac is getting an F. write the following using algebraic notation, using the letter x for any unknown numbers: I think of a number,subtract four then divide by three Solve for x: 2/5(x-2)=4x Do the following opening stories grab the readers attention? - In a hole in the ground, there lived a hobbit. How would I show my work on this ? 25 points PLEASE HELP ASAP! what is the slope represented in the table? Solve for x.2x + 3 >=7OR 2x +9 > 11helpthe >= is great or equal too btw What is problem scoping Infer who Annie is in Freak The Mighty I need to find the answer to S You are visitor of China. Name some important places that you would like to see. What are the main rivers that you will encounter and who may you see as a leader.What type of work would most of the people be doing and how would you spend your moments of fun. I need help plz and thank you this is past due so plz help Solve the quadratic equation x2 - 12x + 23 =0 by completing the square.A) x = 13 6 B) x = 13 - 6C) x = -6 13D) x= 6 13 "Physical fitness is not only one of the most important keys to a healthy body, it is the basis of dynamic and creative intellectual activity." ~John F. Kennedy 1. Do you agree with John F. Kennedy's view about physical fitness? Justify your answer. find the value of X in each of the given triangles. Nucleus is to cell as____is to organism Can someone please help with this question? instead of asking the Hales for money, Ethan: (ethan frome) Steam Workshop Downloader