the sum of a number of vectors that for the sum of two vectors is geometrically represented by the diagonal of a parallelogram whose sides represent the two vectors being added.
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
bool CheckSelectiveSum(vector<int> inVector, int num){
int sum = 0 ;
//create itterable object for the vector
vector<int> ::iterator it; //itterate through each
while (!inVector.empty()){
if(inVector.back() < num){
sum+=inVector.back();
}
inVector.pop_back();
if (sum>0)
return true;
else
return false;
}
int main(){
vector<int> inVector;
int size;
int input;
int i;
int x;
bool result;
cin >> size;
for(i=0;i<size;++i){
cin >> input;
inVector.push_back(input);
}
cin >>x;
result = CheckSelectiveSum(inVector,x);
count<<result;
}
learn more about vector sum here:
https://brainly.com/question/10435343
#SPJ1
How can we convert the following string variable into an integer? num = "5755"
To change a char type variable to an int type, utilize the getNumericValue() function of the Character class. The getNumericValue() method returns the character's numeric value in this case, as can be seen.
What convert string variable into an integer?In Python, the int() built-in method is used to cast a string into an integer. The function accepts the initial string you wish to convert as an argument and returns the integer value corresponding to the value you supplied. This is how the general syntax appears: int("str")
Therefore, A character string is transformed into an integer value using the atoi() method. A string of characters known as the input string can be used to represent a numeric value of the chosen return type.
Learn more about string here:
https://brainly.com/question/16236167
#SPJ1
Create a program that:
Asks if you want to participate. If they type anything but y, yes, Yes, or YES, it repeats until they type y, yes, Yes, or
YES (While statement)
The program then asks three survey questions that you create. At least on of the questions must have a decision structure that takes a different path depending on the answer.
Lastly, the program prints a summary of the responses.
Consider a scenario where we want to create a program that can calculate the average of a set of (moredata[0]) allows us to accept "y", "yes", or "yeah" to continue the loop.
In Python, how do you repeat a program?repeat() For practicing repeat in Python, the itertools package offers the repeat() function. We supply the data and the number of repetitions in the repeat() function.
How do you handle survey questions where respondents can choose from multiple answers?Since no statistical software will be able to measure this unless you can divide it into two separate questions, which you shouldn't do, you should eliminate the response entirely. Make sure to let your participants know that each question should only have one response.
To know more about Python visit:-
https://brainly.com/question/18502436
#SPJ1
____ are characterized as records or rundowns of individual's instruction, proficient experience, capabilities, and aptitudes utilized as a component of an employment form. Select one: O a. LINKEDIN b. c. RESUME O d. PROFILE API
The term that is characterized as records or rundowns of an individual's instruction, proficient experience, capabilities, and aptitudes utilized as a component of an employment form is c. RESUME.
A resume is a concise summary of an individual's education, work experience, credentials, and skills. It is a crucial document utilized by employers to evaluate job candidates. A resume should include information such as job history, educational background, and professional accomplishments. It should be tailored to the job for which the candidate is applying.
For writing a resume,
Pick the Right Resume Format & Layout.
Mention Your Personal Details & Contact Information.
Use a Resume Summary or Objective.
List Your Work Experience & Achievements.
Mention Your Top Soft & Hard Skills.
Include Additional Resume Sections (Languages, Hobbies, etc.)
Learn more about resume: https://brainly.com/question/862477
#SPJ11
a binary number is an integer made up of only 0s and 1s. for example, 110111101 is a binary number. what is the smallest binary number divisible by 225?
The smallest binary number that is divisible by 225 is 1110001000.
A binary number is an integer that is made up of only 0s and 1s. It is a numeral system based on the binary system. The decimal system, which is based on 10, is what we use every day. The binary system, on the other hand, is based on 2. Any integer in the decimal system can be converted to the binary system with ease. Decimal numbers are translated to binary numbers by converting the decimal number to a binary number system by representing it in the powers of 2. The method of repeated division by 2 is used to convert decimal numbers to binary numbers. Given 225 is a 5 × 3 × 5 × 3. So, for any number to be divisible by 225, it must be divisible by 5 × 5 × 3 × 3. For the number to be divisible by 5, the last digit of the binary number must be 0.
Learn more about binary: https://brainly.com/question/29365412
#SPJ11
What are two characteristics of RAM on a Cisco device? (Choose two.)
a. RAM provides nonvolatile storage.
b. The configuration that is actively running on the device is stored in RAM.
c. The contents of RAM are lost during a power cycle.
d. RAM is a component in Cisco switches but not in Cisco routers.
e. RAM is able to store multiple versions of IOS and configuration files.
Answer:
The two characteristics of RAM on a Cisco device are:
b. The configuration that is actively running on the device is stored in RAM.
c. The contents of RAM are lost during a power cycle.
Explanation:
RAM (Random Access Memory) is a type of volatile memory that provides temporary storage for data and instructions that the CPU (Central Processing Unit) uses during operation. RAM is used to store the configuration that is actively running on the device, as well as other temporary data such as routing tables, ARP cache, and other operational data. When the device is powered off or restarted, the contents of RAM are lost, including the running configuration.
Option a is incorrect because RAM provides volatile storage, not nonvolatile storage.
Option d is incorrect because RAM is a component in both Cisco switches and routers.
Option e is incorrect because while RAM can store multiple versions of IOS and configuration files temporarily, these files are lost when the device is powered off or restarted.
Aɳʂɯҽɾҽԃ Ⴆყ ɠσԃKEY ꦿ
The two characteristics of RAM on a Cisco device are that the actively running configuration is stored in RAM and that the contents of RAM are lost during a power cycle.
Explanation:There are several characteristics of RAM on a Cisco device, but specifically, the two that are accurate from your options are:
b. The configuration that is actively running on the device is stored in RAM.c. The contents of RAM are lost during a power cycle.RAM, or Random Access Memory, is crucial for the functioning of a Cisco device as it temporarily stores the running configuration and operational data. However, the data stored in RAM is volatile, meaning it is lost when the device is powered off or restarted. RAM does not provide nonvolatile storage, and it is a component in both Cisco switches and routers. Additionally, RAM is not able to store multiple versions of IOS and configuration files.
Learn more about RAM in Cisco devices here:https://brainly.com/question/32768397
What hand-held gaming system did Nintendo release in 1989?
Game Boy
Game Cube
Nintendo DS
Nintendo Wii
Answer:
Game Boy!
Explanation:
Game Boy was a very popular gaming system used by children around the world (especially US and Japan). It marked the childhoods of many.
:)
Answer:
Game Boy
Explanation:
The first handheld game console with interchangeable cartridges is the Milton Bradley Microvariation 1979. Nintendo is credited with popularizing the handheld console concept with the release of the Game Boy in 1989 and continues to dominate the handheld console market.
I personally wasn't alive during the release of the Game Boy, but I have many Game Boy systems today. :)
a user has two files open in microsoft word; one is named salary.docx and the other is named pay.docx. when the user makes a change to salary.docx, the pay.docx window updates with the change that was just made to salary.docx. why does this happen?
Note that where a user has two files open in Microsoft word; one is named salary.docx and the other is named pay.docx. Where the user makes a change to salary.docx, the pay.docx window updates with the change that was just made to salary.docx. This happened because "The pay.docx file is hard linked to the salary.docx file."
What does it mean for two files to be hard-linked?A hard link is a file system representation of a file in which many paths lead to the same file in the same drive.
The ls -li command is the true litmus test. The inode for each of the two files will be shown by this command. If the inodes match, the files are truly hard links, sharing disk space as well as the inode structure that holds their metadata (owner, permissions, etc.).
rm is the command used to remove a hard link. Remove (unlink) the FILE, according to the rm man page (s). Save this response.
Learn mroe about hard linking:
https://brainly.com/question/14100302
#SPJ1
PODARDSRTH?HOW SPELLING
Scrie un program care citind varstele a 2 copii afiseaza care dintre ei este cel mai mare si cu cat. Exemplu: Pentru varstele 5 si 9 se va afisa "al doilea copil e mai mare cu 4 ani"
Answer:
primul_copil = int(input("Introduceți vârsta primului copil: "))
aldoilea_copil = int(input("Introduceți vârsta celui de-al doilea copil: "))
def copilmai_mare(varsta1, varsta2):
if varsta1 > varsta2:
diferenta = varsta1 - varsta2
print("copilul mai mare este varsta1 cu diferența de vârstă de: ", diferenta )
else:
diferenta = varsta2 - varsta1
print("copilul mai mare este varsta2 cu diferența de vârstă de: ", diferenta )
copilmai_mare(primul_copil, aldoilea_copil)
Explanation:
Programul python de mai sus definește o funcție "copilmai_mare" care ia două argumente "varsta1" și "varsta2". Diferența dintre vârstele copiilor este comparată, iar cel mai mare copil și diferența sunt tipărite pe ecran.
Could use help with the first or second one please! P
6.25 lab: even/odd values in a vector write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. the input begins with an integer indicating the number of integers that follow. ex: if the input is:
def is_list_even(my_list):
for i in my_list:
if(i%2 != 0):
return False
return True
def is_list_odd(my_list):
for i in my_list:
if(i%2 == 0):
return False
return True
def main():
n = int(input())
lst = []
for i in range(n):
lst.append(int(input()))
if(is_list_even(lst)):
print('all even')
elif(is_list_odd(lst)):
print('all odd')
else:
print('not even or odd')
if __name__ == '__main__':
main()
Challenge 1
Create a flowchart that takes two integer values from a user and evaluates and displays which one is the smallest value.
Challenge 2
Create a flowchart that asks the user to guess a random number populated by the program between 1 and 100. Use a logic flow arrow to create a loop that returns the user back into the program to continue guessing.
Challenge 3
Create a flowchart that asks the user for a number 10 separate times and adds all the numbers together. At the end, have the program display the sum.
Using the knowledge in computational language in python it is possible to write a code that create a flowchart that asks the user to guess a random number populated by the program between 1 and 100
Writting the code:import random
def main():
randomNumber = random.randint(0,100)
count =0
while True:
guess = input("Guess?")
if(guess == randomNumber):
count = count+1
print "Congratulations found guessed correct number and number of guesses are ",count
break
elif guess >100 or guess <0:
print "Input should be in between 0 and 100"
elif guess > randomNumber:
count = count+1
print "Too high, try again."
elif guess < randomNumber:
count = count+1
print "Too low, try again."
if __name__=='__main__':
main()
See more about python at brainly.com/question/16757242
#SPJ1
How has cell phones impacted our society.
i really need this please.
Based on the five rules of composition that you chose in Part A of this activity, use a digital camera to capture three pictures that express these rules.
The five rules of composition are balance, pattern, rule of thirds, leading lines, and symmetry. To capture three pictures that express these rules using a digital camera, I would suggest the following:
1. Balance - Look for a scene that has elements that can be balanced in the frame. For example, a landscape with a mountain on one side and a lake on the other. Try to position the camera so that the mountain and lake are balanced in the frame.
2. Rule of thirds - Find a subject that can be placed along one of the imaginary lines that divide the frame into thirds. For example, a person standing off-center or a flower positioned in the bottom left corner of the frame.
3. Leading lines - Look for lines in the scene that can draw the viewer's eye towards the subject. For example, a road leading towards a mountain or a path winding through a forest.
Once you have identified a scene that fits one of these rules, take a few shots and experiment with different angles and compositions. With practice, you'll start to develop an eye for these rules of composition and be able to capture more compelling pictures.
To know more about five rules of composition please check the following link
https://brainly.com/question/15073190
#SPJ11
Jason works for a restaurant that serves only organic, local produce. What
trend is this business following?
digital marketing
green business
e commerce
diversity
Answer:
green buisness
Explanation:
require function is used in a way in which dependencies cannot be statically extracted
The "require" function is a built-in Node.js function that allows modules to be imported and used within a Node.js program. When using the "require" function, dependencies are typically statically extracted. This means that the code will analyze the module and determine what dependencies it requires, then include those dependencies in the final build.
However, there are some cases where the "require" function is used in a way in which dependencies cannot be statically extracted. For example, if a module dynamically requires other modules based on user input or some other runtime condition, it may not be possible to statically extract all of the dependencies.
When dependencies cannot be statically extracted, there are a few potential drawbacks. One potential issue is that the final build may not be self-contained, which can lead to issues with portability and deployment. Additionally, dynamically loaded modules can be more difficult to test, as it may not be possible to predict which modules will be loaded at runtime.
To know more about function visit:
https://brainly.com/question/30721594
#SPJ11
To supply the multiple audio formats, which element is repeated inside the element?
A.
B.
C.
D.
Answer:
No answers so you can't expect someone to know the answer.
Explanation:
Because it doesn't make sense.
which folder will automatically upload a file saved in it to your onedrive account? select all that apply from the list on the right, then click done. One drive, Documents, and Personal (anything under one drive)
The folder that will automatically upload a file saved in it to your OneDrive account is the OneDrive folder.
Any file saved in the OneDrive folder will automatically be uploaded to your OneDrive account. This means that the correct answer from the list on the right is "OneDrive." The "Documents" and "Personal" folders will not automatically upload files to your OneDrive account unless they are saved within the OneDrive folder. Therefore, the correct answer is OneDrive.
This means that the file is uploaded to your OneDrive account and can be accessed from any device with internet access. Any changes you make to the file on one device will be automatically synced with the version in the cloud and across all other devices linked to your OneDrive account.
Learn more about OneDrive account here:https://brainly.com/question/28334567
#SPJ11
There is no ability to check or monitor if your email address was found on the dark web.
a. True
b. False
The statement " There is no ability to check or monitor if your email address was found on the dark web" is True.
What is the web?
The World Wide Web, or simply "the Web," is an information system that enables users to access papers and other web resources over the Internet. Through web servers, which can be accessed by software like web browsers, documents and downloadable media are made available to the network. Not just scientists had access to the internet before the advent of the world wide web. It unified the globe in a way that facilitated communication, sharing, and information access for everyone. The World Wide Web, sometimes known as the Web, the WWW, or just the Web, is a network of open websites that may be accessed online. The Web is not synonymous with the Internet: it is one of many applications created on top of the Internet.
To learn more about the web, use the link given
https://brainly.com/question/13211964
#SPJ4
In stranger things 3 hopper said" to turn back the clock" which is a spoiler for season 4. (Something's gonna reset the clocks and all of what happens will begin again)
Help me with this coding question that involves "For Loop"
Answer:
FIXED_COST = 1.24
FREE_MINUTES = 3
COST_PER_MINUTE = 0.76
print( "----------------- Chow Mobile -----------------" )
total = 0
nrCalls = int(input('\nNumber of long distance phone calls made: '))
for i in range(nrCalls):
minutes = int(input('\nNumber of minutes for call #{}: '.format(i+1)))
cost = FIXED_COST
if minutes > FREE_MINUTES:
cost += (minutes - FREE_MINUTES)*COST_PER_MINUTE
total += cost
print('\nCost for call #{}: ${:,.2f}'.format(i+1, cost))
print('Total cost of all calls: ${:,.2f}'.format(total))
print( "-------------- THANK YOU --------------" )
Explanation:
I have improved the display of currency to always use 2 digits. All constants are defined at the top, so that you don't have "magic numbers" inside your code. This makes the purpose of the numbers also more clear.
You are looking at a female TRS connector on the computer.
Which device uses this connector?
Keyboard
Monitor
Speaker
Joystick
The female TRS connector on a computer is typically used for audio output, so the correct answer is c. Speaker.
1. TRS stands for Tip, Ring, Sleeve, and it refers to the three metal parts on the connector that make contact with the male connector's pins. In audio applications, TRS connectors are used for stereo headphones or speakers, while in professional audio settings, they can be used for balanced audio connections.
2. Keyboards typically use a USB or PS/2 connector of computer, while monitors use VGA, DVI, HDMI, or DisplayPort connectors. Joysticks or gamepads may use a variety of connectors, depending on the type and age of the device.
3. TRS connectors are commonly used in stereo headphones or speakers, allowing for the separation of the left and right channels. In professional audio settings, TRS connectors can be used for balanced audio connections, which helps to reduce noise and interference.
To learn more about computer : https://brainly.com/question/21474169
#SPJ11
Introduction to computing systems: from bits and gates to c and beyond 2nd edition pdf solution manuals?
The study of Introduction to computing systems: from bits and gates is known to be given below
What is the introduction to the study about?The study of Introduction to computing systems is known to be a book that was written by Yale N. Patt and Sanjay J. Patel.
This textbook is known to be one that was said to have evolved from EECS 100 which was seen as the first computing course that was known to have been made for computer science, computer engineering, as well as electrical engineering majors in the year 1995.
The book is one that has a lot of components such that it was divided into two areas such as structure of a computer, as shown in the LC-2; and programming in a high level language. (Note Pdf was too big to be attached.)
Learn more about computing systems from
https://brainly.com/question/13603602
#SPJ1
Which of the following decisions involve a choice between
internal and external production?
Repurchase order
Keep-or-drop
Sell-or-process-further
Special-order
Make-or-buy
One of the decisions that involve a choice between internal and external production is make-or-buy.
This decision refers to whether a company should manufacture a particular product or service in-house or outsource it to a third-party supplier. An organization can make-or-buy anything from raw materials to finished products, services, and software, depending on its strategic objectives, capabilities, and cost considerations.
In most instances, the decision to make-or-buy involves a trade-off between the costs and benefits of internal and external production. A company should consider various factors before making the decision, such as the availability of production capacity, the level of expertise required, the cost of production, the quality standards, the lead time, and the risk involved.
For instance, if a company has enough production capacity, technical expertise, and raw materials, it may prefer to make the product in-house. This decision can help the company maintain better control over the quality, timing, and cost of production. Moreover, it can leverage its core competencies and knowledge to create unique value for customers.
On the other hand, if a company lacks the production capacity, expertise, or raw materials, or if it faces a shortage of time or money, it may prefer to buy the product or service from an external supplier. This decision can help the company reduce its production costs, avoid capital investments, and focus on its core competencies.
In conclusion, make-or-buy is one of the critical decisions that companies face in managing their production activities. The decision requires a thorough analysis of the benefits and drawbacks of internal and external production and a consideration of various factors that influence the decision. Therefore, companies must make informed decisions that align with their strategic goals, market demands, and financial objectives.
Learn more about market demands :
https://brainly.com/question/29703449
#SPJ11
Describe how keeping the antivirus software up to date and reduces the risks of viruses on the computer.
The anti-virus updates contain the latest files needed to combat new viruses and protect your computer. Antivirus software provides signature files which are very important since they contain the latest lists of known viruses. These signature files are released daily, and sometimes even more often
How text can be added in slide View and Outline View explain?
In PowerPoint, there are two ways to add text: using the slide view and using the outline view. Using slide layout group you can add text and in outline View you should use View group for adding a text.
The explanations of the two are described below:
Slide View Slide view is used to build slides in PowerPoint. It provides a visual representation of the slides and allows you to design them.
You can enter text using the following steps
Select a slide layout from the Slide Layout group.
Select the placeholder in which you want to insert the text. Enter the text.
Outline View The outline view is a text-only view that allows you to see the slides in the form of an outline. It allows you to create slides quickly and efficiently.
You can enter text using the following steps:
Open the Outline View by clicking the Outline View button in the View group or by pressing the Outline View button.
Select the line in which you want to add text. Enter the text.
For such more question on slide view:
https://brainly.com/question/29995331
#SPJ11
Write the name of the tab, command group, and icon you need to use to access the borders and shading dialog box.
TAB:
COMMAND GROUP:
ICON:
MICROSOFT WORD 2016
I NEED THIS ANSWERED PLZZ
Answer:
Tab: Home Tab
Command group: Paragraph
Icon: Triangle
Explanation:
you are trying to decide which disk technology to use on your new windows server 2019 installation. the server will be in heavy use around the clock every day, so high performance and reliability is a necessity. which technology is the best choice?
SAS is the server that will be in heavy use around the clock every day, so high performance and reliability is a necessity.
What is server?
A server is a piece of computer hardware or software (computer programme) that offers functionality to other programmes or devices known as "clients" in computing. The client-server model is the name given to this architecture. Servers can provide a variety of functions, sometimes referred to as "services," such as exchanging data or resources across several clients or conducting computation for a client. Multiple clients can be served by a single server, while a single client can use multiple servers.
To learn more about server
https://brainly.com/question/28392452
#SPJ4
someone please tell me if you watch drag race (rupauls drag race) I need someone to talk to about it
Comments should
give the reader the background of the programmer.
be written for every line of code.
communicate the purpose of the code that follows it.
give information about how many hours it took to write the code.
Answer:
Correct answer is:
communicate the purpose of the code that follows it.
Explanation:
Let have a look at each option
comment should give the reader the background of the programmer.
Comments are unable to do so.
Be written on every line
No, it is not need as comment are useful only to explain difficult or complex part of code.
communicate the purpose of the code that follows it.
yes, this option is true, as comments will give hints to programmer about the piece of code.
give information about how many hours it took to write the code
No, comments can answer it,
Answer:
c.
Explanation: