Answer:
720 - 0 = 720
Therefore, your answer is 720
Answer:
720
Hope it helps:)
Write a program that:
Takes the list lotsOfNumbers and uses a loop to find the sum of all of the odd numbers in the list (hint: use Mod).
Displays the sum.
Situation B
Write a procedure that takes a positive integer as a parameter. If the number given to the procedure is no more than 30, the procedure should return the absolute difference between that number and 30. If the number is greater than 30, the procedure should return the number doubled.
#include <iostream>
#include <vector>
#include <string>
int main(int argc, char* argv[]) {
//Fill it by own.
std::vector<int> lotsOfNumbers = {0,1,2,3,4,5,6,7,8,9};
//Loop to find odd numbers.
for(int i=0;i<lotsOfNumbers.size(); i++) {
if(lotsOfNumbers[i]%2!=0) std::cout << lotsOfNumbers[i] << std::endl;
else continue;
}
return 0;
}
Situation B:#include <iostream>
#define check(x) ((x>30) ? 2*x : 30-x)
int main(int argc, char* argv[]) {
std::cout << check(15) << std::endl;
std::cout << check(-2) << std::endl;
std::cout << check(30) << std::endl;
std::cout << check(78) << std::endl;
return 0;
}
The common elements of an algorithm are: Group of answer choices induction, recursion, divide and conquer, greedy data, calculation, interfaces, features effectiveness, correctness, definiteness input, computation, selection, iteration, output, variables
Input, computation, selection, iteration, output, variables are the common elements of an algorithm.
What are an algorithm's characteristics?Algorithm characteristics: Eventually, it ought to come to an end. It ought to generate at least one output. It ought should require no input or more. Deterministic systems produce the same results for the same input situation. The algorithm's steps must all be efficient, meaning they must all produce results.
What is the principal purpose of an algorithm?Simply put, an algorithm is a series of actions taken to do a certain task. They are the fundamental units of programming, and they enable the operation and decision-making of devices including desktops, mobile devices, and websites.
To know more about algorithm visit
brainly.com/question/21172316
#SPJ4
Using the code below, will the body of the page have the background-color defined in the file style.css or the background color define in the
A.
Any background-color defined within the HTML page will not take precedence over the style.css file.
The file style.css or the background color define in the (Option B.) background color defined in the HTML page.Using CSS to Define the Background Color of a PageThe background color of the body of the page will be the one defined in the style.css file, as the code in the HTML page is linking to that file and using the background-color property defined in it. This means that the background color of the body of the page will be the one defined in the style.css file, and not the one defined in the HTML page.
Since the question is incomplete, here's the full answer:
Using the code below, will the body of the page have the background-color defined in the file style.css or the background color define in the:
Choose the right option:
A. background-color defined in the file style.cssB. background color defined in the HTML pageLearn more about HTML: https://brainly.com/question/4056554
#SPJ4
Select the best reason to include height and width attributes on an tag.
A.they are required attributes and must always be included
B.to help the browser render the page faster because it reserves the appropriate space for the image
C.to help the browser display the image in its own window
D.none of the above
The best reason to include height and width attributes on a tag is to aid the browser in rendering the page more quickly since it reserves the proper space for the image.
Which of the following justifications for adding height and width attributes to an IMG tag is the best?Because omitting them will prevent the browser from displaying the image, width and height dimensions for images should always be coded. The page will load quicker and the browser will be more effective.
while entering values for an image's height and width attributes?Height indicates an image's height in pixels. The term width = specifies an image's width in pixels. Use the to set values for an image's height and width attributes.
To know more about attributes visit:-
https://brainly.com/question/28163865
#SPJ4
You were conducting a forensic analysis of an iPad backup and discovered that only some of the information is within the backup file. Which of the following best explains why some of the data is missing
The backup being examined in this case is probably a differential backup that contains the data that has changed since the last complete backup.
How does forensic analysis work?
A thorough study to determine the cause, origin, perpetrators, and outcomes of a security event or a breach of company policy or federal law is known as forensic analysis. Particularly in criminal cases, forensic analysis is frequently associated with evidence presented to the court.
What is the work of a forensic analyst?
Forensic science technicians often perform the following tasks in labs: Analyze the forensic evidence you have collected from crime scenes using chemical, biological, and microscopic methods. Investigate potential connections between suspects and criminal conduct using DNA or other scientific analysis findings.
To know more about forensic analysis visit:
https://brainly.com/question/4327079
#SPJ4
As part of preventing reinfection, what should you configure to prevent spoofing?
A) DNS
B) The host firewall
C) Regular backups
D) MAC filtering
Should always you do to minimize spoofing (A) DNS as part of stopping reinfection .
What function does a firewall serve?A firewall in either hardware that keeps track of all network traffic, including inbound and outbound. Hardware or software can both be referred to as a "firewall." Internal networks can be protected from external and internal threats via firewalls, which can be used to control access to them.
Is a firewall really necessary?Any online network needs a firewall as protection. Even while every computer has some basic firewall security measures in place, there are still some weaknesses that can be attacked without a sophisticated firewall barrier.
To know more about Firewall visit :
https://brainly.com/question/13098598
#SPJ4
The commercial activity of transporting goods to customers is called ______________.
Answer:
Logistics
Explanation:
Answer:
logiticals
Explanation:
Because the commercial activities if transportation good s to customers called ___
Which of the following Intel CPUs is a low power processor that would be found in smartphones and tablets
A: Intel Atom is the Intel CPU having a low-power processor that would be found in tablets and smartphones.
Intel atom is a low-power, lowe cost, and low- performance processor that was originally made for budget devices. It is known primarily for netbooks, which were very popular in the early 2010s. However, it has also been used in low-end laptops, smartphones, and tablets. No matter what the Intel Atom is used for, one thing is obvious that it is not good at gaming.
Thus, the Intel CPU's low-power processor is known to be as Intel Atom.
"
Complete question:
Which of the following Intel CPUs is a low power processor that would be found in smartphones and tablets
A: Intel Atom
B: Intel i-core
"
You can learn more about processor at
https://brainly.com/question/614196
#SPJ4
The statement int wage; creates a variable named wage that is used to _____ the value 20. input output hold
The command int wage; hold a variable called wage that stores the value.
Which statement sets the subsequent input value as the variable value for numCars?The input statement assigns the following program input value to the variable that is specified. statement sets the subsequent input value as the variable value for numCars design is an input statement A parallelogram indicates, As follows: Don't forget the output.
Do one-line comments frequently follow statements on the same line?All the text after the initial / character is included in a single-line remark. Commonly, a statement on the same line is followed by a single-line comment. All content between / and / is considered to be a component of a multi-line comment, which begins with / and ends with /.
To know more about variable visit :-
https://brainly.com/question/17344045
#SPJ4
The standard header file for the abs(x)function is ____.
a. <cmath>
c. <cctype>
b. <ioinput>
d. <cstdlib>
The basic header file again for abs(x)function is <cstdlib> .
What is header in HTML?A container for introductory material or a group of navigational links is represented by the "header" element. One or more heading elements (h1-h6), a logo, or an icon are commonly contained in a "header" element. authorship details.
What is an example of a header?A header or heading is text that displays there at top of each page of an electronic or hard copy document. For instance, in Word Documents, the page numbers of each page might be shown in a text's header. An printed or electronic document's footer, on the other hand, is located at the bottom of each page.
To know more about Header visit :
https://brainly.com/question/12908595
#SPJ4
PYTHON 3:
myprogramminglab
QUESTION 1 : Remove the smallest element from the set, s. If the set is empty, it remains empty.
QUESTION 2: Create a dictionary that maps the first n counting numbers to their squares. Associate the dictionary with the variable squares.
1. if len(s) > 0: s.remove(min(s)) 2. squares = { i:i*i for i in range(n)}
How Do You Python Remove That Smallest Element From A Set?To determine the lowest and largest element in the list, we are utilizing the min() and max functions.The remove() method of Set removes/deletes the specified element from of the set.
How are set components removed?The supplied element is eliminated from the set using the remove() method.The remove() method raises an error if the supplied object does not exist, whereas the discard() method does not. This is how this method differs from the discard() method.
To know more about Python Remove visit:
https://brainly.com/question/28029439
#SPJ4
Which Annotation tool provides the ability to convert the mouse icon when giving a presentation to better focus the audience attention?
1. Arrow
2. Ink Color
3. Eraser
4. Laser Pointer
Problem Statement We have a two-dimensional board game involving snakes. The board has two types of squares on it: +'s represent impassable squares where snakes cannot go, and 0's represent squares through which snakes can move. Snakes may move in any of four directions - up, down, left, or right - one square at a time, but they will never return to a square that they've already visited. If a snake enters the board on an edge square, we want to catch it at a different exit square on the board's edge. The snake is familiar with the board and will take the route to the nearest reachable exit, in terms of the number of squares it has to move through to get there. Write a function that takes a rectangular board with only +'s and 0 's, along with a starting point on the edge of the board (given row first, then column), and returns the coordinates of the nearest exit to which it can travel. If multiple exits are equally close, give the one with the lowest numerical value for the row. If there is still a tie, give the one of those with the lowest numerical value for the column. If there is no answer, output
−1−1
The board will be non-empty and rectangular. All values in the board will be either
+
or 0 . All coordinates (input and output) are zero-based. All start positions will be 0 , and be on the edge of the board. For example,
(0,0)
would be the top left corner of any size input. Example Input Consider the following board: If a snake starts at the edge on the left (row 2 column 0 ), the snake will take the following path to another edge square (an exit) If the snake starts where the last one ended (row 5 column 2), the snake has two paths of length 5:
A function that takes a rectangular board with only +'s and 0 's print(f"The nearest exit Row : {distance[0][1]} , Column : {distance[0][2]}")
#returns list of entry points
def findEntryPoints(board,dim):
entryPoints=[]
for i in range(0,dim[0]):
if board[i][0] == "0":
entryPoints.append((i,0))
return entryPoints
#Returns a list which contains Distance from stating point , Coordinate of Exit Row and Coordinate of column
def snake(board,dim,x,y,start,visited):
#Condition for exit points are:
#1. x and y cannot be starting points i.e ( x=!start[0] or y!=start[0] )
#2. for exit points index of (x has to be 0 or dim[0]-1) or index of ( y has to be dim[1] -1 or 0)
# i.e(x==0 or x==dim[0]-1 or y==dim[1]-1 or y==0)
if (x != start[0] or y != start[1]) and (x==0 or x==dim[0]-1 or y==dim[1]-1 or y==0):
#returns a list which contains mininum steps from the exit point and the coordinate of exit point
return [0,x,y]
else:
MAX_VALUE=1000000000
#Creating minPath
minPath=[[MAX_VALUE,-1,-1] for i in range(0,4)]
visited[x][y]=True
#UP
if x-1>=0:
if visited[x-1][y]==False:
temp=snake(board,dim,x-1,y,start,visited)
minPath[0][0]=1+temp[0]
minPath[0][1]=temp[1]
minPath[0][2]=temp[2]
#DOWN
if x+1<dim[0]:
if visited[x + 1][y] == False:
temp = snake(board, dim, x + 1, y, start, visited)
minPath[1][0] = 1 + temp[0]
minPath[1][1] = temp[1]
minPath[1][2] = temp[2]
#LEFT
if y-1>=0:
if visited[x][y-1] == False:
temp = snake(board, dim, x, y-1, start, visited)
minPath[2][0] = 1 + temp[0]
minPath[2][1] = temp[1]
minPath[2][2] = temp[2]
#RIGHT
if y+1<dim[1]:
if visited[x][y+1] == False:
temp = snake(board, dim, x, y+1, start, visited)
minPath[3][0] = 1 + temp[0]
minPath[3][1] = temp[1]
minPath[3][2] = temp[2]
visited[x][y]=False
##sorting minPath[[]] first their distance between nearest exit then row and then column
minPath.sort(key=lambda x: (x[0],x[1],x[2]))
return minPath[0]
# Press the green button in the gutter to run the script.
if name == 'main':
dim=list(map(int,input("Enter the number of rows and columns in the board\n").strip().split()))
board=[]
visited=[[False for i in range(0,dim[1])] for i in range(0,dim[0])]
print("Enter the elements of the board")
#Creating the board
for i in range(0,dim[0]):
board.append(list(map(str,input().strip().split())))
# Intializing visited list to keep track of the elements which are
# not possible to visit and already visited elements.
for i in range (0,dim[0]):
for j in range(0,dim[1]):
if board[i][j] == "+":
visited[i][j]=True
#Returs the entry points list
entryPoints=findEntryPoints(board,dim)
distance=[]
#Appends the possible exits
for i in entryPoints:
distance.append(snake(board,dim,i[0],i[1],i,visited))
if len(distance) == 0:
print("-1 -1")
else:
#sorting distance[[]] first their distance between nearest exit then row and then column
distance.sort(key = lambda x: (x[0],x[1],x[2]))
print(f"The nearest exit Row : {distance[0][1]} , Column : {distance[0][2]}")
To learn more about dimensional board games
https://brainly.com/question/14946907
#SPJ4
A user notices the system clock is changed every morning. The computer is shut down daily. A technician checks the time zone and finds it is correct, and then checks the BIOS settings and finds the time to be incorrect. Which of the following is MOST likely the problem
The CMOS battery does not have a charge. Your laptop's BIOS firmware, which is in charge of starting up your computer and configuring data flow, is powered by the CMOS battery.
What is CMOS battery ?The BIOS firmware in your laptop, which is in charge of initiating the boot process and establishing data flow, is powered by the CMOS battery. When your laptop has trouble starting up, drivers start to disappear, or your laptop's date and time are off, your CMOS battery has likely failed.Even when your computer is not plugged into a power source, BIOS must continue to function. The battery enters the picture here. The CMOS battery supplies power to BIOS when your computer is unplugged.Both laptops and desktop computers use CMOS batteries, although laptops use them more frequently. That's because desktop computers are frequently left unplugged for shorter periods of time than laptops. The majority of desktop computers are rarely removed from their power source.To learn more about CMOS battery refer :
https://brainly.com/question/14767803
#SPJ4
Which statement describes what happens if multiple users make changes simultaneously to a presentation when coauthoring?
1. Only the primary coauthor's changes are retained to avoid conflicts.
2. A record of the initial change is kept in the case of conflicts.
3. A record is kept of all edits that are made so conflicts can be resolved.
4. It is the last change that will be retained in the case of conflicts.
Answer:
3.
Explanation:
Co-authoring in PowerPoint is sharing a presentation and allowing your colleagues to work on it at the same time. This option of co-authoring is available when you share or save your file on OneDrive or SharePoint.
The perk of co-authoring a presentation is that PowerPoint keeps a record of all edits under the name of the author. This keeps the conflicts away.
Therefore, the correct answer is option 3.
SQL is considered difficult to learn; its command set has a vocabulary of more than 300 words.
a. True
b. False
Answer:
Explanation:
a. True
SQL (Structured Query Language) is a programming language used to manage data in relational databases. While it is relatively easy to learn the basic concepts of SQL, it can become more challenging as you learn the more advanced concepts and try to write more complex queries.
The command set for SQL does have a relatively large vocabulary, with over 300 words and commands that can be used to perform various tasks such as creating and modifying tables, inserting, updating and retrieving data from a database. It also can have slight variations depending on the specific implementation of SQL such as ANSI SQL, MySQL SQL, PostgreSQL SQL.
It's not necessarily difficult to learn, but it does take time and practice to become proficient in it. There are many resources available online that can help you learn SQL, such as tutorials, videos, and documentation, and many SQL tutorials are available for free. You can also practice by creating your own small databases and experimenting with different queries.
Need help ASAP
Select the correct answer.
Which testing is an example of non-functional testing?
A.testing a module
B.testing integration of three modules
C.testing a website interface
D. testing the response time of a large file upload
Answer:
Option D, testing the response time of a large file upload
Explanation:
Non functional testing is basically the testing of non performance related attributes. Time taken in uploading a file is of a non performance attribute and hence, testing this attribute is termed as non functional testing. Remaining options are essential performance attributes which needs to be tested regularly.
Hence, option D is correct
Explain three major concerns in database systems.
Answer:
Slow Read-Write Speeds. Performance slowdowns can occur due to high latency for disk read/writes. ...Scaling Problems. ...Incorrect Virtual Machine Setup. ...Lack of Backup and Monitoring. ...Query Performance. ...User and Query Conflicts. ...Configuration. ...Capacity.
Which of the following storage methods is used for storing long-term copies of organizational data? Select one: a. backup. b. archival. c. translational.
Archival, storage methods is used for storing long-term copies of organizational data.
What is Metadata ?Metadata condensed information about data in order to facilitate dealing with a particular instance of data.
Metadata is typically present in spreadsheets, websites, movies, and pictures.
The availability of metadata facilitates data tracking and dealing with such data.
The time and date of creation, file size, data quality, and date produced are all examples of basic document metadata.
Metadata management and storage usually include the usage of databases.
Hence, Archival, storage methods is used for storing long-term copies of organizational data.
learn more about Metadata click here:
brainly.com/question/14960489
#SPJ4
___________ characters is the average character length that will appear on a mobile device for your email.
25 to 30 characters is the average character length that will appear on a mobile device for your email.
How much time is excessive for an email?The studies and guidance from industry professionals indicate that 125 words maximum is your best bet. However, you should limit it to between 75 and 100 words for optimum impact. This is not to mean that you must adhere to this guideline in every single instance for every email you send.
What is the ideal email character count?40–100 characters is the optimum length. Best practises: Keep in mind that some of your readers might open your emails on their mobile devices. By making your preheader text mobile-optimized, you can raise your open rates.
To know more about email visit
brainly.com/question/14666241
#SPJ4
What methods are most commonly used by physical security teams to verify whether somebody is authorized to access a facility
Security teams can employ physical authentication techniques like ID card scanners and near-field communication (NFC) ID cards to confirm people's identities as they enter and leave different locations.
Which type of physical access control is more prevalent?The most widespread and affordable type of physical access control device is a set of key locks. The cost of fencing, lighting, and security personnel is significantly higher.
Which of the above controls is an illustration of a physical access control technique?Which of the above controls is an illustration of a physical access control technique? EXPLANATION One physical access control strategy is the use of locks on doors. Physical barriers prevent or regulate physical access. Technical controls include things like passwords, access control lists, and smart cards.
To know more about Security teams visit :-
https://brainly.com/question/27872903
#SPJ4
To move a PivotChart to a new sheet, use the _____ ______ button in the Actions group on the Pivot Chart Tools Analyze tab
Use the Field List to reorder the fields in your PivotTable (pivot table), and when it vanishes, reveal the Field List once more.
What does Excel's move Chart command do?Click Move Chart under Chart Tools on the Design tab's Location group. Choose one of these: Click New sheet, then type a name for the worksheet in the New sheet box to move the chart to a new worksheet.
PivotTable toolbar button: what does it do?You may filter and organize data using the icon buttons on the PivotTable toolbar. reveals the PivotTable Settings dialog box, which offers options for the layout, format, totals, filers, display, and data. each field's data on a sheet is sorted.
To know more about PivotChart visit:-
brainly.com/question/29833710
#SPJ4
Write a program that lets the user enter the initial height from which the ball is dropped, the bounciness index, and the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball.
The following is the program for total distance traveled by the ball;
What do programming skills entail?Programming, or "coding," skills are the ability to write commands in a variety of programming languages to tell a computer, application, or software program what to do and how to do it.
Write program for the distance travelled by ball.height = float(input('Enter the height from which the ball is dropped: '))
bounci_index = float(input('Enter the bounciness index of the ball: '))
bounces = int(input('Enter the number of times the ball is allowed to
continue bouncing: '))
distance = height
for i in range(bounces-1):
height *= bounci_index
distance += 2*height
distance += height*bounci_index
print('\nTotal distance traveled is: ' + str(distance) + ' units.')
To know more about program visit
brainly.com/question/14368396
#SPJ4
In Bash, if you need a little help with how a command like ls works, which of the commands can you use to get more information
ls --help or man ls it is the commands can you use to get more information.
What is the ls command in bash?The current directory's files are listed by the ls command (ls is short for "list"). The ls command will by default just print the names of all the files and folders. Use the flag "-l" to receive the extra details and a cleaner view. The following information about each file is displayed by ls in long list format.
The 'ls' command can be used to list files and directories. If you use the "ls" command without any other options, the contents of your current working directory, which is just another way of saying the directory that your terminal is currently in, will be listed.
To learn more about command refer to :
https://brainly.com/question/25808182
#SPJ4
I am a non-volatile type of built-in memory. I store my contents long-term. My job is to store critical programs that the computer needs to access in order to boot up. What am I
In order to store and retrieve data fast, hard disks are nonvolatile storage devices.
Why would someone utilize non-volatile memory?Non-volatile memory (NVM) is a category of computer memory with the capacity to retain stored data even after the power is switched off. NVM does not require the data in its memory to be refreshed on a regular basis, unlike volatile memory. For long-term reliable storage or secondary storage, it is frequently employed.
The kind of memory that is non-volatile?8.3. 4 ROM. Memory is referred to as non-volatile if it can maintain its values even when the power is turned off. Various read-only memory types were among the earliest non-volatile memory types (ROM).
To know more about nonvolatile storage visit :-
https://brainly.com/question/29999255
#SPJ4
A new resident in Virginia desiring to register his / her vehicle must obtain a vehicle ____________ certificate and verification of the vehicle ______________ number.
The starting system enables the driver to switch on an electric motor, solenoid switch, wiring, and battery by turning the ignition key. The lighting, safety systems, and accessories are all powered by the accessory circuits.
What are danger lights used for?The danger lights on your car perform a crucial job in terms of safety. These lights serve as a warning to other vehicles when used properly. Most of the time, when you flash your danger lights, other drivers assume that your car is stationary and that they should avoid it.
What do yellow warning lights do?When driving on slick roads, yellow or amber lights frequently signal a lower-level hazard or warning, such as the activation of the traction control system. White, blue, and green lights just indicate the activation of a device, such as the headlights.
To know more about accessories visit:-
https://brainly.com/question/28082899
#SPJ4
Why is it important to create a program for GLCD?
{I NEED THIS FOR MY ROBOTICS IF ANY OF U GUYS HAVE THIS SUBJECT}
"Writing a program for a GLCD, or graphic liquid crystal display, is essential because it allows you to control what appears on the screen.
Why is a GLCD Important?Graphic liquid crystal display (GLCD) is crucial because it provides for the small and energy-efficient display of graphical and textual information. Smartphones, digital cameras, and appliances, as well as industrial and medical equipment, instruments, and cars, all employ GLCDs. They are also found in portable devices like watches and calculators, as well as computer peripherals like displays and printers.
A computer program can be used to produce pictures, messages, or animations on a GLCD screen, just as it can be used to build a website or a video game.
Note that GLCDs are well-known for their excellent contrast, broad viewing angles, and low power consumption, making them perfect for a variety of applications.
Learn mroe about program:
https://brainly.com/question/11023419
#SPJ1
The registers are the communication channels inside the computer.( true or false)
the statement in the body of a while loop acts as a decision maker. true or false
Answer:
FALSE FALSE FALSE
Explanation:
Portable Document Format is a proprietary document file type created by Adobe Systems that is compatible with most computer systems.
a
DOC
b
XLS
c
PDF
d
GIF
e
JPG
f
PS
g
MP3
h
OGG
i
AVI
j
MPEG
Answer: PDF
Explanation: