Answer:
16 subnets and 14 hosts assignable IP addresses.
Explanation:
Computer networking is the interconnection and intercommunication of computer devices. These computer devices can be connected using cables or wirelessly. All devices in a network must have an IP address.
Subnetting a network is a process of preventing the waste of IP addresses for the purpose of security and cost. IP4 addresses are 32 bits in size (4 octets) and the host and subnet size is dependant on the host and network bit configuration.
The IP address 200.245.10.150/28 is a class A network address but subnetted to borrow four bits from the fourth octet to produce 16 subnets (2 ^ 4 bits borrowed) and 14 host IP addresses (2^ 4 bits remaining in the fourth octet - 2, which is the network and broadcast addresses).
Write an enhanced for loop that multiplies all elements in an int[] array named factors, accumulating the result in a variable named product. Numbers.java 123456789101112 public class Numbers{ public int multiply(int[] factors) { int product
public class Numbers {
public int multiply(int[] factors){
int product = 1;
for (int i : factors){
product *= i;
}
return product;
}
public static void main(String[] args) {
int [] factors = {1,2,3,4,5,6,7,8,9,10,11,12};
Numbers num = new Numbers();
System.out.println(num.multiply(factors));
}
}
I hope this helps!
Enhanced for loops are used to iterate through lists, arrays and collections
The enhanced for loop in java where comments are used to explain each line is as follows:
public int multiply(int[] factors){
//This initializes the product to 1
int product = 1;
//This iterates through the array
for (int i : factors){
//This multiplies all elements in the array
product *= i;
}
//This returns the product
return product;
}
Read more about enhanced for loop at:
https://brainly.com/question/14592816
um ok that makes sooo much sence
Answer:
Thanks for points
Explanation:
Free points dude
Answer:
thanks I guess
Explanation:
What the
4.6 lesson practice
Need help
Answer:
4.c 5.a6.d
Explanation:
#4
The correct answer is A.
#5
The correct answer is A
#6
The correct answer is A
It's not necessary in a field to have .
it's not necessary in a field to have .
A new system might have to interface with one or more _____, which are older systems that use outdated technology. a. mission-critical systems b. intrusion detection systems c. legacy systems d. enterprise resource planning (ERP) systems
Answer:
c. legacy systems
Explanation:
A new system might have to interface with one or more legacy systems, which are older systems that use outdated technology.
This ultimately implies that, when a new computer system is to replace an older generation system known as legacy systems, it is important to synchronize.
The conversion depends on the temperature and other factors, but an approximation is that 1inch of rain is equivalent to 6.5inches of snow. Write a script that prompts the user for the number of inches of rain, calls a function to return the equivalent amount of snow, and prints this result. Write the function, as well. Do this two ways: in a separate code file and as a local function.
Answer:
rainInches = int(input("Enter rainfall in inches: "))
def rain_snow_convert( rain):
snow_size = rain * 6.5
return snw_size
snowInches = rain_snow_convert( rainInches)
print(snowInches)
Explanation:
The python source code above return the equivalent size of rainfall to snowfall in inches. There are two ways to write this, one is like on a single file as the code above, the second way is defining the function "rain_snow_convert" in another python file, then importing and calling the function in the input file.
from functionsfile import rain_snow_convert
rainInches = int(input("Enter rainfall in inches: "))
snowInches = rain_snow_convert( rainInches)
print(snowInches)
where "functionfiles" (actually with the extension .py) is the name of the python file with the rain_snow_convert function.
plz help, What details do not need to be in a problem statement for a toy box?
a)types of latch and hinges
b)names of the toy owners
c)dimensions of the box
d)material for the sides, top, and bottom
Answer:
my guess is B. names of the toy owners
Explanation:
I'm assuming that you're trying to build a toy box? if you were building one, you'd need to know all of the dimensions, measurements, materials, etc.
in this case, the owner of the box doesn't really matter.
What allows a programmer to write code quickly and efficiently for an action that must be repeated?
an iteration
an index
an argument
a queue
A programmer is allowed to write code quickly and efficiently for an action that must be repeated by iteration.
What is programmer?A programmer is a person who writes or creates the programs to perform a specific task.
A professional programmer can write code quickly and efficiently. The action that requires repetition, is called iteration.
Thus, an iteration allows a programmer to write code quickly and efficiently for an action that must be repeated.
Learn more about programmer.
https://brainly.com/question/11345571
#SPJ2
I need help plzzzzzzz
By looking at your code, it seems like you're trying to let the user enter positive numbers until the user enters a negative number. To achieve this, you need to indent int(input("Enter a number, negative to stop")) inside the loop.
The second answer choice is correct.
Date:
Difference between Chemical Equivalent and Electroche-
mical equivalent.
Answer:
chemical equivalent of an element is the value obtained by dividing the atomic weigh of the given element by valency
g write a recursive function that prints out all the even numbers between x and y inclusive if x is odd then the print out will start at x 1
Answer:
The function written in python is as follows:
def EvenNumbers(x, y):
if (y < x):
return
if (y % 2 == 0):
EvenNumbers(x, y - 2)
else:
EvenNumbers(x, y - 1)
if (y % 2 == 0):
print(y)
Explanation:
x represents the lower limit while y represents the upper limit.
So, the recursion will be repeated as long as x <= y
This defines the function
def EvenNumbers(x, y):
This checks if y < x. If yes, the recursion stops execution and return to the main
if (y < x):
return
The following if and else condition checks determines the appropriate range of the recursion.
if (y % 2 == 0):
EvenNumbers(x, y - 2)
else:
EvenNumbers(x, y - 1)
The above takes care of printing starting at x + 1 if x is odd
This checks and prints the even numbers in the range
if (y % 2 == 0):
print(y)
To call the function from main, make use of
EvenNumbers(x, y)
Where x and y are integers
e.g EvenNumbers(2,10), EvenNumbers(1,17), EvenNumbers(3,21)
See attachment
Which tool would you use if you wanted to arrange a list of words in alphabetical order?
A. Sort ←
B. Format Painter
C. Conditional Formatting
D. Arrange
Part 1: Create a Web Page Copy and paste this code into an editor and complete these steps: About Me Web Page Your Name One paragraph about yourself. Three of my favorite things are: Favorite Item 1 Favorite Item 2 Favorite Item 3 Use the HTML Cheat Sheet and the skills you have learned so far in this lesson to practice writing HTML code in the text editor. Replace Your Name with your actual name and format with . Replace One paragraph about yourself with a paragraph about yourself. Replace the favorite items with your three favorite things. Format your three favorite things into a numbered list. Once you have created your page, copy and paste your HTML code from the Code View tab here:
Answer:
<h1>About Me Web Page</h1>
<center><h2>(name)</h2></center>
<h3>Three Of My Favorite Things Are:</h3>
<ol>
<li>(Favorite item)</li>
<li>(Favorite item)</li>
<li>(Favorite item</li>
</ol>
<p>(Paragraph about myself</p>
Exercise 3.6.8: Running Speed5 points
Write a program that asks the user how many miles they ran and how many minutes it took to run that far. Ask for the input in this order!
Convert their speed to miles per hour and print out their speed.
Be sure to include comments that describe the program’s behavior which is how the program functions and how the user interacts with it.
Sample output:
How many miles did you run? 3
How many minutes did it take you? 60
Speed in mph: 3.0
code in python
This is what I got for the code. And I tested it out on the right and it works.
The program illustrates the use of arithmetic operations.
The program in Python where comments are used for explanation is as follows:
#This gets input for the number of miles
miles = int(input("How many miles did you run? "))
#This gets input for the number of minutes
minutes = int(input("How many minutes did it take you? "))
#This calculates the speed in mph
Speed = miles/(minutes/60.0)
#This prints the calculated speed
print("Speed in mph:",Speed)
At the end of the program, the program converts the minutes to hours, calculates and prints the speed.
See attachment for complete program and sample run
Read more about Python programs at:
https://brainly.com/question/22841107
Define a generic method called checkOrder() that checks if four items are in ascending, neither, or descending order. The method should return -1 if the items are in ascending order, 0 if the items are unordered, and 1 if the items are in descending order.
Answer:
function checkOrder(arr) {
const asc = [...arr].sort();
if (arr.toString() === asc.toString()) return -1;
const desc = [...arr].sort((a,b) => b-a);
if (arr.toString() === desc.toString()) return 1;
return 0;
}
function test(arr) {
switch(checkOrder(arr)) {
case -1:
console.log(`${arr}: these numbers are ascending`);
break;
case 0:
console.log(`${arr}: these numbers are unordered`);
break;
case 1:
console.log(`${arr}: these numbers are descending`);
break;
}
}
test([1,2,3,4]);
test([7,5,3,1]);
test([2,3,1,7]);
Explanation:
This is a solution using javascript.
You and your brother are sharing a printer. You install the driver software onto your computer and install the printer. Then, you disconnect the printer and lend it to your brother. When you reconnect the printer later on, what is most likely to happen?
If the drivers for the printer aren't installed on your brother's computer, then the printer will not work. Everything attached to a computer needs a driver, including the internals, like the graphics card (through the desktop) and the RAM (through the BIOS). When you reconnect it to your computer, it will work because I am assuming that you have the latest drivers installed. However, if you try to plug in the printer to your computer without the proper drivers, then it will NOT work.
I hope this helps!
Air parcel 1 is at the same temperature as the surrounding air. Air parcel 2 is warmer than the surrounding air. Air parcel 1 and Air parcel 2 started with the same amount of water vapor in them. Which air parcel will have more rainfall and why? * 1 point Captionless Image
Answer:
If this is Amplify, the answer is C which is Air parcel 1 will lose energy to the surrounding air, which will cause more water vapor to fall as rain.
Explanation:
If this is amplifying, then the correct response is C, meaning that Air parcel 1 will lose energy to the surrounding air, increasing the amount of water vapor that rains.
What is an Amplifier?A sign's power can be increased using an electronic device known as an amplifier, electronic amplifier, or amp.
Named after French physicist André-Marie Ampère, the term "ampère" first appeared in 1881 to describe "the current that one volt can transmit through a resistance of one ohm" (1775-1836). adopted in 1881 at the Electric Congress in Paris. reduced form. amplifier (n.)
The triode vacuum tube, developed by Lee De Forest in 1906, was the first widely used device that could amplify, and it led to the creation of the first amplifier in 1912. Up until the 1960s and 1970s, practically all amplifiers employed vacuum tubes until being replaced by transistors.
The technique of increasing the amplitude of an electromagnetic light wave is known as light amplification. The three main categories of this procedure are laser, parametric, and scattering.
In order to reduce the risk of electrocution, the amplifier ground is the ground wire that safely offers the least possible electrical resistance to earth ground or chassis ground. Usually, power mains outlet connections, power supply, or the car chassis are used to ground amps.
To read more about Amplifiers, refer to - https://brainly.com/question/14100137
#SPJ2
Write a program which takes a string input, converts it to lower case, then prints the same string with all vowels (a, e, i, o, u) removed.
Hint: one good way to do this is to make a new String variable and add all the letters you want to print (i.e. everything except vowels) to it.
Sample Run:
Enter String:
Animation Rerun
nmtn rrn
Answer:
Scanner scan = new Scanner(System.in);
System.out.println("Enter String:");
String v = "aeiou";
String t = scan.nextLine();
t =t.toLowerCase();
String nt ="";
for(int i = 0; i < t.length(); i++){
char c = t.charAt(i);
if (v.indexOf(c) == -1){
nt += c;
}
}
System.out.println(nt);
}
}
Explanation:
Good Luck
a file named loan.html, write an HTML document that looks similar to figure 9-7 in the textbook. Write four functions with these headers:
function doPayment ( )
function doBalance ( )
function computePayment (principal, annualRate, years, periodsPerYear)
function computeBalance (principal, annualRate, years, periodsPerYear, numberOfPaymentPaidToDate)
The first two functions (doPayment and doBalance) do the following:
Take no parameters.
Are called from an onclick attribute.
Get input from the user.
Call the computePayment or the computeBalance function.
Display a result to the user.
The computePayment function computes and returns the monthly payment for a loan with a fixed annual interest rate. The formula for computing a loan payment is
p = ar
1 − (1 + r)−n
Where p is the payment per period, a is the loan amount, r is the interest rate per period, and n is the total number of periods throughout the life of the loan.
The computeBalance function computes and returns the balance for a loan with a fixed annual interest rate. The formula for computing the balance of a loan after d payments have been made is
b = a (1 + r)d − p ( (1 + r)d − 1 )
r
Where b is the balance or payoff amount, a is the loan amount, r is the interest rate per period, p is the payment per period, and d is the number of payments paid to date.
Answer:
function computePayment(principal, annualRate, periodsPerYear){
var pay;
pay = (principal * annualRate)/(1-(1+annualRate)-periodsPerYear);
return pay;
}
function computeBalance(principal, annualRate, periodsPerYear, numberOfPaymentsPaidToDate){
var balance ;
let num = (principal*(1+annualRate)*periodsPerYear);
let denum = numberOfPaymentsPaidToDate *((1+annualRate) * periodsPerYear-1)*annualRate;
balance = num-denum;
return balance;
}
function doPayment(){
let loanAmount = document.getElementById("principal").value;
let rate = document.getElementById("rate").value;
let duration = document.getElementsById("time").value;
let result = computePayment(loanAmount, rate, duration);
document.getElementsById("periodPay").value = result;
}
function doBalance(){
let loanAmount = document.getElementById("principal").value;
let rate = document.getElementById("rate").value;
let duration = document.getElementById("time").value;
let currentPaid = document.getElementById("paidMonths").value;
let result = computeBalance(loanAmount, rate, duration, currentPaid);
document.getElementById("displayBalance").value = result;
}
Explanation:
The javascript source code defines four functions. The 'doPayment' and 'doBalance' functions are initiated with the onclick properties of the HTML file buttons of the loan calculator. The doPayment function gets the user input from the HTML file and assigns them to variable which are used as the parameters of the computePayment function called.
The doBalance function also retrieve user input from the HTML file and calls the computeBalance function to calculate and return the balance of the loan to be paid.
Mimi is uploading a highly detailed art piece to her website and wants to make sure the picture is as pristine as possible for the viewer.
What file format is the best choice for Mimi?
JPG
FLASH
GIF
PNG
100% Correct Answers:
Question 1
Elena is a board game developer and has a website where she regularly posts about the work she is doing for her next game, mostly about the trials and tribulations of being a full-time game developer. What is the best description for Elena’s site?
Blog
Question 2
What term represents a sample web page that replicates what the final website will look like?
Wireframe
Question 3
Mimi is uploading a highly detailed art piece to her website and wants to make sure the picture is as pristine as possible for the viewer. What file format is the best choice for Mimi?
PNG
Question 4
Trent is a skilled sketch artist who wants to create images for his online portfolio. He is even toying with including live “watch me draw” videos for audiences, but he doesn’t want to use a webcam. Which piece of technology will most quickly and efficiently allow him to translate the physical act of him drawing into a digital image?
A digital tablet
Question 5
What is a popular site where users can pay to use images, created by others, to use on their own websites?
Shutterstock
Question 6
Green and yellow are adjacent on the color wheel; what does this mean?
They are analogous
Question 7
Finnick wants his website to use base colors that are very similar to each other. Which kinds of color sets should he focus on?
Analogous
Question 8
What is CSS an acronym for?
Cascading Style Sheets
Question 9
Originally, Java was used to create similar apps as what other language?
Python
Question 10
A theme for a website should be chosen before content is added to it.
True
Question 11
There are a variety of stacks, each made up of an individual programming language.
False
Question 12
There is only a slight difference between coding and scripting languages; basically, scripting is an umbrella term, and coding refers to something more specific.
False
Question 13
If a user goes to a website and a video starts playing automatically, this is because of a script written into the website.
True
Question 14
While the term Listerv is technically a registered trademark, people still often use it to refer to the general category of software applications that do the same thing—the same way people ask for a Kleenex instead of a “facial tissue.”
True
Question 15
Before you can test your website, you have to publish it. This process is nerve-wracking but necessary in web development.
False
The file format that is the best choice for Mimi is JPG. The correct option is a.
What is the file format?A file extension also referred to as a file format, describes how a file is organized on a computer in terms of the data it contains. Frequently, a file's name includes an extension that denotes its file format.
If open formats are unencumbered by any copyrights, patents, trademarks, or other restrictions (for instance, if they are in the public domain), anybody may use them for any purpose without having to pay a fee. In this case, open formats are also known as free file formats.
The full form of JPG is the Joint Photographic Experts Group. This is good for posting somethings with compressing its size and retaining its quality.
Therefore, the correct option is a. JPG.
To learn more about file format, refer to the link:
https://brainly.com/question/19186417
#SPJ2
4.5 code need help we are not to the stage .format Teacher does not want that
i = 0
while True:
word = input("Please enter the next word: ")
if word == "STOP":
break
i += 1
print("#"+str(i)+": You entered "+word)
print("All done. "+str(i)+" words entered.")
I hope this helps!
hi I legit hate coding idk y
The client provides various information to the server in the first step of the 3-way handshake. a) What is the client's advertised (receive) window size
Answer:
The window size can only be 2-bytes long
Explanation:
TCP three-way handshake is used to establish a connection between a client and a server, giving both the ability to initiate, negotiate, and to separate TCP socket connection ( terminate the connection).
The client sends a SYN message to the server. The server receives the message and sends a SYN-ACK message to the client and the client also responses with an ACK message to establish the connection.
The window size is the size of the packet that can be sent across connections and can only be only 2- bytes long (that is, 65,535 bits).
if we had a set of 10 constraints and solver had to deterimine which 4 to enforce what would be the binary indicator varibales have on the sum
Answer:
if we had a set of 10 constraints and solver had to determine which 4 to enforce what would be the binary indicator variables have to sum to make this happen
answer : 6
Explanation:
number of constraints = 10
solver has to determine which 4 to enforce
Hence the number the Binary indicator will have to sum to enforce 4
will be : (number of constraints) - 4
= 10 - 4 = 6
When all the system testing and bugs correction has done, the software product will be delivered to the user for __________.
Answer:
use and feedback
Explanation:
Once this is completed the software product is delivered to the user for use and feedback. If both testing and bug corrections have been completed it means that the product is finalized and working as intended. Once this is the case, all that is left for a development team to do is deliver the final product to the end-user for them to use and give their feedback as to how they like the product. Many times this feedback can restart the testing and bug correction phase once again if the development team decides to add new features.
Match each file format to the correct multimedia file type or format.
JPEG
WMA
MP4
MNG
video
animation
audio
image
Answer:
JPEG - IMAGE
WMA - AUDIO
MP4 -VIDEO
MNG- ANIMATION
Explanation:
if you need any help just let me know any time
Answer:
1. JPEG - IMAGE
2. WMA - AUDIO
3. MP4 -VIDEO
4. MNG- ANIMATION
Explanation:
Data compression is a
software
Select one
1. accounting
2. Application
3. Presentation
4. Utility
Answer:
it is a utility software....
4
Multiple Choice
You wrote a program to find the factorial of a number. In mathematics, the factorial operation is used for positive integers and zero.
What does the function return if the user enters a negative three?
def factorial number):
product = 1
while number > 0
product = product number
number = number - 1
return product
strNum = input("Enter a positive integer")
num = int(str Num)
print(factorial(num))
O-6
O-3
O There is no output due to a runtime error.
0 1
< PREVIOUS
NEXT >
SAVE
SUBMIT
© 2016 Glynlyon, Inc. All rights reserved.
V6.0 3-0038 20200504 mainline
The function will output positive 1 to the console. This happens because we declare product as 1 inside our function and that value never changes because the while loop only works if the number is greater than 0.
Write a program that will read the payroll file. It should output the name and paycheck amount. Also output the total pay of all employees. The payroll file contains the name followed by hourly wage followed by hours worked.
Here is the employees and what you'll be using:
"Bones_Bob"
10.50
40
"Smith_Sally"
11.25
40
"Toll_Tom"
8.10
35
"Anderson_Ann"
7.25
20
"Carlson_Carl"
9.75
22
Write a function that computes that statistic. It should take as its argument an array of waiting times and return the variance of them. Call the function var_based_estimator.
Answer:
Written in Python:
def var_based_estimator(waitingtimes):
isum = 0
for i in range(0,len(waitingtimes)):
isum = isum + waitingtimes[i]
mean = isum/len(waitingtimes)
varsum=0
for i in range(0,len(waitingtimes)):
varsum = varsum + (waitingtimes[i] - mean)**2
variance = varsum/len(waitingtimes)
print(round(variance,3))
Explanation:
(1) To calculate variance, first we need to determine the mean,
(2) Then we subtract the mean from individual data
(3) Then we take the squares of (2)
(4) Sum the results in (3)
(5) Divide the result in (4) by the mean
This is implemented in python as follows:
This line defines the function
def var_based_estimator(waitingtimes):
We start by calculating the mean, here i.e. (1)
This line initializes the sum of all data to 0
isum = 0
The following iteration adds up the elements of waitingtimes list
for i in range(0,len(waitingtimes)):
isum = isum + waitingtimes[i]
The mean is calculated here; [tex]Mean = \frac{\sum x}{n}[/tex]
mean = isum/len(waitingtimes)
(2), (3) and (4) are implemented in the following iteration
First the sum is initialized to 0
varsum=0
This iterates through the list; subtracts each element from the mean; take the square and sum the results together
for i in range(0,len(waitingtimes)):
varsum = varsum + (waitingtimes[i] - mean)**2
This calculates the variance by dividing the (4) by the mean
variance = varsum/len(waitingtimes)
This prints the variance rounded to three decimal placed
print(round(variance,3))