Answer:
(Assuming C++):
#1
try{
if (balance < 100)
{
throw "InsufficientFund";
}
else
{
printf("Sufficient funds in account.\n");
}
}
catch{
printf("Insufficient funds in account.\n");
}
---------------------------------------------------------------------------------------
#2
template <typename T>
T max (T& variable1, T& variable2)
{
return variable1 >= variable2 ? variable1 : variable2;
}
Explanation:
For this, the answer assumes the use of the C++ language since not specified in the problem.
For #1, the use of the try-catch statement is simply to check the value of the funds within an account. The question ask to check if the balance is under 100, to throw an "InsufficientFund" exception to be caught by the catch loop. Otherwise, print there is enough funds. If the exception is caught, the catch loop should simply print insufficient funds to the console. The above code accomplishes each of these things by assuming a variable called "balance" holds the value of the account and has already been declared. Additionally, the code uses the printf function to display the messages to the screen (Assuming stdio.h header has been included).
For #2, a template function called max was created to determine if variable1 or variable 2 had a greater value, and return the greatest variable. The code uses the ternary operator to test the expression greater than or equal to and returns variable1 if greater or equal, otherwise, it returns variable2.
Side note, I haven't coded in C++ in years so some syntax may be wrong, but either way this is the concept of the two questions asked (I think I'm syntactically correct though).
Cheers.
what are the different categories of a computer
Answer:Computer is a machine that can be program to manipulate the symbols.
Explanation:There are five different categories of a computer.
(1)super computer (2) mainframe (3) personal computer (4) workstation
(5) minicomputer
(1)super computer: super computer is the term fastest computer available current time.super computers are very expensive and specialized computer.
(2)mainframe : mainframe computer is perform to the execute the program the currently.
(3) personal computer: The most popular use for personal computer playing games and surfing internet.
(4)workstation: This type of computer used for the engineer applications desktop publishing , software development.
(5)minicomputer: The general a minicomputer is multiprocessing system it is a midsize computer.
You are working the 8:00 AM shift at the help desk. An irate user who fails to identify himself calls in claiming that his workstation is malfunctioning and that you need to fix it NOW. What is the first action you should take?
Answer:
Calmly ask him for his name and a more detailed explanation of the problem.
Explanation:
Since in the question, it is mentioned that the anger use who fails to identify himself and claim that his workstation is malfunctioning and want to fix it now
Now the action which would be taken is to ask his name in a calmy manner and understand what the actually problem he is suffering by understanding it in a detailed way
Therefore according to the given case, the correct option is d.
A _____ cloud allows an organization to take advantage of the scalability and cost-effectiveness that a public cloud computing environment offers without exposing mission-critical applications and data to the outside world.
Answer:
Hybrid
Explanation:
Hybrid cloud is a solution that combines a private cloud with one or more public cloud services, with proprietary software enabling communication between each distinct service.
Ryan is creating a website for an automobile company. He wants to include media files on the web page and make the page appealing to the viewers.
Ryan wants a particular embedded media clip to automatically restart when it has finished playing. Which of the following HTML audio and video element attributes must Ryan include in his code to accomplish this?
A. src
B. loop
C. controls
D. preload
Answer:
I think it's preload :P
Explanation:
But just be sure with some sources ok ! :♡
Which method would be the BEST to protect security information and event management (SIEM) log data at rest from tampering by authorized users?A. Access control lists (ACLs) on log data drivesB. Deployment of write once read many (WORM) drivesC. Disk encryption using hardware security modules (HSM) on log data drivesD. Implementing the principle of least privilege on log data drives
Answer:
Option B (Deployment of write once read many (WORM) drives) is the appropriate one.
Explanation:
SIEM application goods/services consolidate safety information management (SIM) with security event management (SEM) throughout the area of device protection. We include an overview including its known vulnerabilities created by users and network equipment in actual environments.No quantity of administrative intervention will alter the substance on something like a WORM disc, even by physical disc disruption or failure. That would be the better-suggested choice.A company has a network printer that is utilzed by several departments. Although the printer shows online and other departments can access the printer, the accounting group is unable to print to this network printer. Which of the following would the technician use to resolve the problem?
a. The printer needs a maintenance kit repalced.
b. The TCP/IP print spooler service need to be restarted.
c. The security settings for the print spooler need to be modified to include the department.
d. Replace the network cable on the printer
Answer: c. The security settings for the print spooler need to be modified to include the department.
Explanation:
The print spooler makes Windows computer enable to interact with the printer, and to commands the printer for print jobs .
If all the other departments can access the printer, but not the accounting group, then the technician should check the security settings for the print spooler and modify it accordingly to include the accounting group .
Hence, the correct answer is c. The security settings for the print spooler need to be modified to include the department.
Importance of taking correct body measurement....
Taking correct body measurements is of key importance especially to models and future models. So that they remember about the leftover weight in their body from thanksgiving , now when they take correct body measurements , they are aware and will counter such things to be better.
Refer to the exhibit. A web designer calls to report that the web server web-s1.cisco is not reachable through a web browser. The technician uses command line utilities to verify the problem and to begin the troubleshooting process. Which two things can be determined about the problem? (Choose two.)
A. The web server at 192.168.0.10 is reachable from the source host.
B. The default gateway between the source host and the server at 192.168.0.10 is down.
C. There is a problem with the web server software on web-s1.cisco.com.
D. A router is down between the source host and the server web-s1.cisco.com.
E. DNS cannot resolve the IP address for the server web-s1.cisco.com.
......Explanation:
ascsmlmcm
Based on the information, it is clear that the web server at the IP address is reachable, yet there may be a DNS goal issue for its space name. Option A and E is the correct answer
How is the web server part of the problem?The problem can be understood in two ways based on the information provided:
A. The web server at 192.168.0.10 is reachable from the source.
This is not entirely set in stone by the fruitful ping order reaction to the IP address of the web server. Assuming that the web server was inaccessible, the ping would fall flat.
E. DNS cannot resolve the IP address for the server web-s1.cisco.com.
This may be induced by the truth that the specialist utilized the IP address (192.168.0.10) rather than the space title (web-s1.cisco.com) to test the network. On the off chance that DNS was working appropriately, the expert would have utilized the space name all things being equal.
As a result, we are able to conclude from the exhibit that the web server at the specified IP address can be reached; however, there may be a problem with DNS resolution for the server's domain name.
Learn more about web servers here:
https://brainly.com/question/29490350
#SPJ2
Administrator access initiative brings together people from industry, disability organizations, government, and research labs from around the world to develop guidelines and resources to help make the Web accessible to people with disabilities including auditory, cognitive, neurological, physical, speech, and visual disabilities.
a) true
b) false
Answer:
False.
Explanation:
Web Accessibility Initiative (WAI) brings together people from industry, disability organizations, government, and research labs from around the world to develop guidelines and resources to help make the Web accessible to people with disabilities including auditory, cognitive, neurological, physical, speech, and visual disabilities.
It is one of the features of the World Wide Web Consortium (W3C) develiped in 1997 and is aimed at developing standards and support materials to assist in understanding and implementing accessibility for users with disabilities.
Lee finishes entering all the data. Next, he wants to format the header row so it is easier to read and stands out from the rest of the table. What should Lee do to accomplish this task?
Answer:
A: Add shading to the top row
B: Change the style of the table
Explanation:
Just got the question myself and got the answer from it
Answer:
A B
Explanation:
i just did the assignment└|∵|┐♪
Suppose you have the following variables defined: a = 100 b = 50 Write a Python if/else statement to assign the smaller of a and b to the variable m.
Answer:
a, b = 100, 50
if a < b:
m = a
else:
m = b
The program which assigns the smaller of the values in variable a and b using an if/else statement ls :
a = 100
b = 50
#assign the 100 and 50 to the variables a and b respectively
if a > b :
# the if statement checks if the variable a is greater the value on variable b
m = a
# if true assign the value of a to the variable m
else :
# if otherwise, then b would be greater
m = b
#assign the value of b to m
#the sample run of the program is attached
print(m)
Learn more :https://brainly.com/question/15727806
Chapter 21 discusses four aspects of the speaking situation you should take into account when planning the graphics you'll use in an oral presentation including the length of the presentation, the size and layout of the room, and the available equipment. What is the last aspect?
Answer:
The answer is "audience aptitude and experience "
Explanation:
The presentation is the ability to provide a variety of audiences with successful and stimulating interactions. The main objective of an oral presentation is to talk formally to a live audience about a particular subject. You have to write an oral speech that engages the audience and fulfills your goals.
In this type of presentation, the Listener-centric concept is effective as the productivity of a speaker is enhanced by creating and presenting the speech throughout the proper manner.
Assuming that a user enters 68 as the score, what is the output of the following code snippet? int score = 68; if (score < 50) { System.out.println("F"); } else if (score >= 50 || score < 55) { System.out.println("D"); } else if (score >= 55 || score < 65) { System.out.println("C"); } else if (score >= 65 || score < 75) { System.out.println("B"); } else if (score >= 75 || score < 80) { System.out.println("B+"); } else { System.out.println("A"); } D C B A
Answer:
D
Explanation:
Using if in this way will validate one by one, and finding a true value will not validate the rest of "else if"
score = 68
if (score < 50) --> print "F"
68 < 50 --> falseelse if (score >= 50 OR score < 55) --> print "D"
68 > = 50 TRUE .... (The OR operator displays a record if any of the conditions separated by OR is TRUE)As this condition is true the system will not validate the other conditions
What is the outcome of the following code snippet? boolean val1 = true; boolean val2 = false; while (val1) { if (val1) { System.out.println("Hello"); } val1 = val2; } No output will be displayed because of a compilation error. Hello will be displayed only once. Hello will be displayed infinite times. No output will be displayed even after successful compilation of the code snippet.
Answer:
Hello will be displayed only once.
Explanation:
Look at the picture*
Case-Based Critical Thinking
Ryan is creating a website for an automobile company. He wants to include media files on the web page and make the page appealing to the viewers. 43. Ryan wants a particular embedded media clip to automatically restart when it has finished playing. Which of the following HTML audio and video element attributes must Ryan include in his code to accomplish this?
a. src.
b. loop.
c. controls.
s. preload.
Answer:
B. Loop
Explanation:
The use of loop which is a boolean attribute in HTML is an instruction that specifies a replay of the video once it has ended. It is inputted in this format;
<video controls loop>
<source src="dance.mp4" type=video/mp4">
</video>
To add a video to the HTML web page, the <iframe> element is used. the source would also indicate the video URL. The specification of the dimensions, that is the height and width of the video are also written. The code is now closed with the </iframe> element.
Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is: As long as x is greater than 0 Output x modulo 2 (remainder is either 0 or 1) Assign x with x divided by 2
Answer:
Following are the code to this question:
def binarynumber(num):#defining a method binarynumber that accepts a parameter num
x=""#defining a string variable x
if (num!=0):#defining if condition to check number not equal to 0
while (num>=1):#defining a loop that check value is grater then equal to one
if (num %2==0):#defining if condition to check num is even
x=x+"0" #add string value 0 in num variable
num=num/2 #divide the value by 2
else:#defining else block
x=x+"1"#add string value 1 in num variable
num=(num-1)/2#first subtract 1 into num variable then divide the value by 2
else:
x="0"#assign string value 0 in num variable
return "".join(reversed(x))#return value
num = int (input ("Enter any number: "))#defining num variable that input the integer value
print (binarynumber(num))#using print method to call method binarynumber with passing num parameter
Output:
Enter any number: 12
1100
Explanation:
In the above python code a method "binarynumber" is declared, in which the "num" variable passes as the parameter inside the method a string variable "x" is declared that stores all converted values. Inside the method and if the block is declared that checks number value is not equal to 0 if this condition is false then it will add string value and reverse its value. Or if the condition is true it defines a while loop that calculates the given number binary digits and returns its value. At the last step, the num variable is declared that inputs the integer value from the user end and calls the method by using the print method.A computer program is said to learn from experience E with respect to some task T and some performance measure P if its performance on T, as measured by P, improves with experience E. Suppose we feed a learning algorithm a lot of historical weather data, and have it learn to predict weather. In this setting, what is T
Answer:
The weather prediction task
Explanation:
Note: Example: playing checkers.
E = the experience of playing many games of checkers
T = the task of playing checkers.
P = the probability that the program will win the next game.
3. Write the qbasic program for following:
[10]
a) To find square of 3.
b) To print and display square and cube of 4.
c) To print and display simple interest where principle is 4000 rs, time is 2 years and
rate is 5%.
d) To find sum, subtract, product and division of 8 and 4
e) To find and print sum and product of two input numbers.
it's a really important assignment and I will need all the answer. I will follow, give 5 star and a heart for the first person who gives the answer. please be quick. it is important
Answer:
Hi there!!!
I hope it helps you...
Write a method, getFirstLine, that is passed a String argument and that returns the first line. (Recall that lines are terminated with the "\n" character.) Assume that the argument contains at least one complete, newline-terminated line.
My Solution:
public String getFirstLine(String a)
{
String[] myLines = a.split("\n");
return(myLines[0]);
}
Answer: The answer to this question can be given as:
Method definition :
String getSecondLine (String aString) //define function getSecondLine()
{
return aString.substring(aString.indexOf("\n") + 1, aString.indexOf("\n") + 1 + aString.substring(aString.indexOf("\n") + 1, aString.length()).indexOf("\n"));
//return value.
Explanation:
___________is used for drawing 3D objects in the field of Science and Engineering.
A)CAT
B)CAD
C)MRI
D)None of these
Answer:
the answer is C mri hope this helps
Explanation:
Answer: C (MRI)
Explanation:
3D modelling Softwares are used
There are two kind of 3-D Modelling Software
Parametric & Non Parametric
Parametric - Maintain the relation between Different dimensions as defined on changing any dimension (constraint based).
non-parametric Does not have constraint ( its jike like moulding something from Sand , add any where , remove from any where).
A network administrator was told by the Chief Information Officer (CIO) to set up a new office with a network that has redundancy. What topology would BEST meet the CIO's requirement?
Answer:
"Mesh topology" is the correct answer.
Explanation:
A mesh topology seems to be a network configuration where there has been an interconnection between each hardware and communications system. This topology configuration allows the distribution of many of these signals, although one of the connexons starts going down.This topology needs to connect each destination to any other end destination, thus creating a completely pointless channel.MULTIPLE CHOICE When you log in to a browser, such as Google Chrome, you are accessing a profile that you can save and use on many different devices. What are some of the personal preferences you can save to your user profile for a browser? Select all that apply.
Answer:
The personal preferences that can be saved are
A. Customize your bookmark bar
C Change your home page
D Enable safe browsing in your privacy setting
Explanation:
The Bookmark manager can be used for personal customization of the bookmarks in chrome
The Bookmark manager is located within the customization button located at the top right hand corner of the browser under bookmarks
The personally preferred homepage can be selected under appearance category in the settings menu
The enable safe browsing preferences can be found under privacy and security sub menu within the settings menu window.
B. Imagine yourself to be a tube light. Write a short paragraph about your life. (50 to 80 words)
plese help me
Do you know LED light- I mean the tubelight that people perch and switch it on. It is used in offices, homes, schools and anywhere there are tube lights but I am something different. I am that light that shines on children’s head.
Ok, it is not actually a light in children’s head. It’s when they think of an idea so they are switching me on and they spread that means they are allowing me to shine. My head means the base is the brain that tells me that this idea is there so I shout and spread it.
Like that I was also a light in a boys head his name was Rahul. Rahul was a boy that when his mind is on studies he can top in his class but he was not understanding that he was only focusing on his sports.
One day in the classroom didi said that there is a problem that in our school there is a problem that out toilets are stinking and we need help from you children. All the lights around me were flickering because all the children were thinking of ideas. I was the only one of them who was not flickering. Rahul switched me on and let me shine, he spread it. I also know that he is not going to shatter me into pieces. He is going to persevere and he did it.
From that day, it was my daily life..on off..on off..on off..
Which of the following for-loop headers results in equivalent numbers of iterations: A. for (int q = 1; q <= 100; q++) B. for (int q = 100; q >= 0; q--) C. for (int q = 99; q > 0; q -= 9) D. for (int q = 990; q > 0; q -= 90) a. A and B. b. C and D. c. A and B have equivalent iterations and C and D have equivalent iterations. d. None of the loops have equivalent iterations.
Answer:
b
Explanation:
C and D have equivalent iterations
C: D:
99 990
90 900
81 810
72 720
63 630
54 540
45 450
36 360
27 270
18 180
9 90
Word Separator
Write a program that accepts as input a sentence in which all of the words are run together but the first character of each word is uppercase. Convert the sentence to a string in which the words are separated by spaces and only the first word starts with an uppercase letter. For example the string "StopAndSmellTheRoses." would be converted to "Stop and smell the roses."
Answer:
Following are the code to this question:
value=input("Enter string value: ")#defining string variable for input value from user
val= ""#defining another string variable val
i=0#defining integer variable and assign value 0
for x in value:#defining loop for proving spacing in value
if x.isupper() and i > 0:#defining if block to check value upper and greatern then 0
val+= " "#proving spacing in string value
val += x.lower()#convert another value into lower case
else:#defining else block
val += x#hold value in val variable
i += 1#increment i variable value
print (val)#print value
Output:
Enter string value: StopAndSmellTheRoses
Stop and smell the roses
Explanation:
In the above python code, a string variable "value" is defined that inputs the value from the user end, and another variable "val" is defined for saving calculated value.
In the next step, for loop is declared, that uses if block to check input value and convert the input value first letter into uppercase and print all value with space. If the condition is false it will return the user input value.
A customer calls you and states that her laptop screen is very dim. In order to avoid going to the client's site, which of the following is the first action you should recommend to the customer to perform?
1. Use function keys
2. Set encryption
3. Restart the system
4. None of above
it depends on the brand of laptop,If it is standard use function key if not None of the above
Assuming that a valid price should be between 30 and 50, what does the following code snippet do? final int MIN_PRICE = 30; final int MAX_PRICE = 50; int price = 0; Scanner in = new Scanner(System.in); System.out.print("Please enter the price: "); price = in.nextInt(); if (price < MIN_PRICE) { System.out.println("Error: The price is too low."); } else if (price > MAX_PRICE) { System.out.println("Error: The price is too high."); } else { System.out.println("The price entered is in the valid price range."); } This code snippet ensures that the price value is between 30 and 50. This code snippet only ensures that the price value is greater than 30. This code snippet only ensures that the price value is less than 50. This code snippet ensures that the price value is either less than 30 or greater than 50.
Answer:
This code snippet ensures that the price value is between 30 and 50.
Explanation:
If the price is not between 30 and 50 then the output will be "Error: ...."
What number system do people in America use?
Answer:
Base-10 (decimal)
Explanation:
If you have a 3D printer please show me a vid of you making something because I'm interested in getting one. Ty! Also can someone show me how to put more points in a question that I ask on Brainly?
Explanation:
Too add more points on your brainly question(phone), type your question
Then, see on your top left, you can see the points. It will show 10,which means you have to lose 10 points which is the minimum points for one question. If you are generous to give more points, click on it the you can scroll till the maximum point which is 100..but each points you give will divide 2.
For example, you just loose 10 points for your question but I only got 5 points
Hope you understand this
I'm not sure with laptop
HAVE A GOOD DAY!
write some Drawbacks of the internet
Explanation:
Computer Virus can spread.
Data can be hacked.
It has made peoples lazy
It cannot work about electricity and mobile and computer like devices
..
Thank me if you like.. and follow me..