Answer:
d.
Explanation:
Using the Java code provided, the creation of the BoundedIntArray objects would be that arrl represents a list of integers indexed from 5 to 99, and arr2 represents a list of integers indexed from 0 to 99. This is because arr1 is passing two arguments when it is being created, the first indicates the array size while the second indicates the lowest index. Since it passes two arguments it overrides the constructor and uses the constructor with two parameters. arr2 only passes one argument so it uses the original constructor which automatically sets the lowest index to 0.
The correct choice in this question is "arr1 is an array of numbers indexed from 5 to 104, while arr2 is an array of integers indexed from 0 to 99".
Array number:arr1 is for numbers 5 to 104, whereas arr2 is for numbers 0 to 99.Since the lowest index in arr1 is transmitted, it should be 5, and the array size should be 100. The index of the last member inside an array is also (size-1) since the array's lowest index is inclusive.Furthermore, arr2 is for 0 to 99, so because size, which would be 100, if passed, the lowest index is not. As a result, the lowest index by default is 0.Find out more about the Array here:
brainly.com/question/13107940
HELP ASAP DONT ANSWER WITH A LINK
Answer:
Layout
title
title and content
section header
comparison
Orientation
landscape
portrait
Given a number count the total number of digits in a number
Answer:
round up the log of the number
Explanation:
The ¹⁰log of a number gives you the number of digits if you round it up.
Which factor distinguishes IOT devices from standard computing devices such as laptops and smart phones?
Answer:
PLS help me I'm tried
Haa plsssssss
Write a function, AvgList, that takes a single argument, a list, and returns the average (mean) of the numbers in the list. You may assume that all elements of the list are numeric (int or float), and that the list has at least one element. Hints: Use the function SumList that you wrote above. Use the built-in function len to get the number of elements in the list.
Answer:
Answered below
Explanation:
//Programmed in Java
public double avgList(int [] nums){
int I;
double sumOfNumbers = 0;
double averageOfNumbers = 0;
//Loop over to sum all elements in the list.
for(I = 0; I < nums.length; I++){
sumOfNumbers += nums[I];
}
//Calculate the average
averageOfNumbers = sumOfNumbers/ nums.length;
return averageOfNumbers;
}
....................
Answer:
*
* *
* * *
* * * *
* * * * *
i did it i guess?
Write a program that asks for the user's name, phone number, and address. The program then saves/write all information in a data file (each information in one line) named list.txt. Finally, the program reads the information from the file and displays it on the screen in the following format: Name: User's Name Phone Number: User's Phone Number Address: User's Street Address User's City, State, and Zip Code g
Answer:
Amazon prime
Explanation:
You work for a small company that exports artisan chocolate. Although you measure your products in kilograms, you often get orders in both pounds and ounces. You have decided that rather than have to look up conversions all the time, you could use Python code to take inputs to make conversions between the different units of measurement.
You will write three blocks of code. The first will convert kilograms to pounds and ounces. The second will convert pounds to kilograms and ounces. The third will convert ounces to kilograms and pounds.
The conversions are as follows:
1 kilogram = 35.274 ounces
1 kilogram = 2.20462 pounds
1 pound = 0.453592 kilograms
1 pound = 16 ounces
1 ounce = 0.0283 kilograms
1 ounce = 0.0625 pounds
For the purposes of this activity the template for a function has been provided. You have not yet covered functions in the course, but they are a way of reusing code. Like a Python script, a function can have zero or more parameters. In the code window you will see three functions defined as def convert_kg(value):, def convert_pounds(value):, and def convert_ounces(value):. Each function will have a block showing you where to place your code.
Answer:
Answered below.
Explanation:
def convert_kg(value){
ounces = value * 35.274
pounds = value * 2.20462
print("Kilograms to ounces: $ounces")
print("Kilograms to pounds: $pounds)
}
def convert_pounds(value){
kg = value * 0.453592
ounce = value * 16
print("pounds to kg; $kg")
print ("pounds to ounce; $ounce")
}
def convert_ounces(value){
kg = value * 0.0283
pounds = value * 0.0625
print ("ounces to kg; $kg")
print ("ounces to pounds; $pounds")
}
Describe how data is shared by functions in a procedure- oriented program
Question 5/20
00:07:27
Agile Teams need to comply by the Agile Values and Principles but have flexibility to choose appropriate value-adding practices
Select the correct option(s) and click Submit.
True
False
SUBMIT
Explanation:
True. Is the true answer
what is work immersion and its nature
mips Write a program that asks the user for an integer between 0 and 100 that represents a number of cents. Convert that number of cents to the equivalent number of quarters, dimes, nickels, and pennies. Then output the maximum number of quarters that will fit the amount, then the maximum number of dimes that will fit into what then remains, and so on. If the amount entered is negative, write an error message and quit. Amounts greater than 100 are OK (the user will get many quarters.) Use extended assembly instructions and exception handler services.
Answer:
Explanation:
The following code is written in python and divides the amount of cents enterred in as an input into the correct amount of quarters, dimes, nickels and pennies. Finally, printing out all the values.
import math
#First we need to define the value of each coin
penny = 1
nickel = 5
dime = 10
quarter = 25
#Here we define the variables to hold the max number of each coin
quarters = 0
dimes = 0
nickels = 0
pennys = 0
cents = int(input("Please enter an amount of money you have in cents: "))
if cents > 0 and cents <= 100:
if cents >= 25:
quarters = cents / quarter
cents = cents % quarter
if cents >= 10:
dimes = cents/dime
cents = cents % dime
if cents >= 5:
nickels = cents /nickel
cents = cents % nickel
if cents > 0:
pennys = cents / penny
cents = 0
print("The coins are: "
"\nQuarters", math.floor(quarters),
"\nDimes", math.floor(dimes), "\nNickels", math.floor(nickels), "\nPennies", math.floor(pennys))
else:
print("wrong value")
In a multimedia presentation, when might voice-over be a better choice than placing the text on the screen?
when you have very little to say
when your audience is bored
when you have a lot to say
when you don’t want to write
In a multimedia presentation, the option that might be the voice-over when you have a lot to say.
What is multimedia presentation?A multimedia presentation is known to be a presentation where a person is said to often stand by themselves to present information via slides, video, etc.
In a multimedia presentation, the option that might be in the case of voice-over is when you have a lot to say as it is better to put it in a video format.
Learn more about multimedia from
https://brainly.com/question/24138353
#SPJ2
What type of information is best suited for infographies?
Answer:
All varieties of information, from bullet pointed text to numerical tables
Explanation:
Answer:
All varieties of information, from bullet pointed text to numerical tables
Explanation:
Number the steps to describe how Tristan can complete
this task.
Cut the Television and related equipment row.
Paste the Television and related equipment row.
Click the plus sign on the left side of the table between
the last two rows.
Answer:
Cut the Television and related equipment row.Click the plus sign on the left side of the table between the last two rows.Paste the Television and related equipment row.Explanation:
In order to move the row, Tristan should first select the row and then cut it. This will ensure that the row will be moved completely instead of copied.
Tristan should then hover with the mouse between the last two rows and click on the plus sign on the left side. It will add a new row to the sheet. between the last two rows.
Tristan should then select the topmost cell and click paste. The television row will be pasted there and Tristan would have successfully moved it.
Answer:
2 3 1 Your Welcome
Explanation:
what does ICT stand for?
Information Communication Technology
ICT stands for 'Information Communication Technology'. Everyday usage of digital technology includes when you use a computer, tablet or mobile phone, send email, browse the internet, make a video call - these are all examples of using basic ICT skills and technology to communicate.
A client is
a computer that is disconnected from the network.
the same as a server.
a computer that requests a service.
a router.
Answer:
a computer that requests a service.
Answer:
A computer that requests a service
Explanation:
In computing, a client is a piece of computer hardware or software that accesses a service made available by a server as part of the client–server model of computer networks. The server is often (but not always) on another computer system, in which case the client accesses the service by way of a network.
plz mark as brainliest
What are the vertical areas of the spreadsheet?
a
Verticies
b
Ventricals
c
Columns
d
Rows
Answer:
Columns
Explanation:
A spreadsheet may a explained as a tabular arrangement or arrays of cells which allows users to enter both numeric and string data for storage, manipulation and analysis. The spreadsheet program has both the vertical and horizontal cell arrangement with the vertical areas being reffered to as THE COLUMN which are labeled using alphabets arranged from A - AZ, AA - AZ, and so on to make up a total of 16384 columns on the Microsoft Excel spreadsheet program. Cells are located using a combination of column and row address. With row representing the horizontal area of the spreadsheet and labeled with digits. Therefore cells are usually refereed to as A1, (column A row 1) and so on.
Which step should you follow to copy a worksheet after clicking Format in the Cells group?
O Under Arrange Sheets, click Cut or Copy Sheet.
O Under Organize Sheets, click Move or Copy Sheet.
O Under Arrange Sheets, click Select and Move Sheet.
O Under Organize Sheets, click Arrange and Copy Sheet.
Answer:
Under Organize Sheets, click Move or Copy Sheet should you follow to copy a worksheet after clicking Format in the Cells group.
Explanation:
(3) reasons why users attach speakers to their computer
Explanation
1.we connected speakers with computers for listening voices or sound . because the computer has not their own speaker.
2.Speakers are popular output devices used with computer systems.
3.Speakers are one of the most common output devices used with computer systems
A student repeated the Styrofoam ball experiment. This time, the student rubbed the plastic rod on the cat's fur, but also rubbed the Styrofoam ball on the fur. How would the outcome of the investigation change if both objects were rubbed on the cat's fur? Use evidence and scientific reasoning to support your answer. Be sure to describe the charges and field interactions for both objects.
Answer:
Electrostatically charged rods. When you rub the plastic rod (polyethylene terephthalate, glycol modified, or PETG) with the wool cloth, the rod charges negative. When you rub the glass rod with the silk, the rod charges positive. ... The Coulomb, the unit of electrostatic charge, is named after him.
Explanation: i think
Answer:Electrostatically charged rods. When you rub the plastic rod (polyethylene terephthalate, glycol modified, or PETG) with the wool cloth, the rod charges negative. When you rub the glass rod with the silk, the rod charges positive. ... The Coulomb, the unit of electrostatic charge, is named after him.
Explanation:Electrostatically charged rods. When you rub the plastic rod (polyethylene terephthalate, glycol modified, or PETG) with the wool cloth, the rod charges negative. When you rub the glass rod with the silk, the rod charges positive. ... The Coulomb, the unit of electrostatic charge, is named after him.
Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board. Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board). Ex: If the input is: PYTHON the output is: 14
Complete question:
Scrabble is a word game in which words are constructed from letter tiles, each letter tile containing a point value. The value of a word is the sum of each tile's points added to any points provided by the word's placement on the game board. Write a program using the given dictionary of letters and point values that takes a word as input and outputs the base total value of the word (before being put onto a board). Ex: If the input is: PYTHON
the output is: 14
part of the code:
tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 }
Answer:
Complete the program as thus:
word = input("Word: ").upper()
points = 0
for i in range(len(word)):
for key, value in tile_dict.items():
if key == word[i]:
points+=value
break
print("Points: "+str(points))
Explanation:
This gets input from the user in capital letters
word = input("Word: ").upper()
This initializes the number of points to 0
points = 0
This iterates through the letters of the input word
for i in range(len(word)):
For every letter, this iterates through the dictionary
for key, value in tile_dict.items():
This locates each letters
if key == word[i]:
This adds the point
points+=value
The inner loop is exited
break
This prints the total points
print("Points: "+str(points))
Answer:
Here is the exact code, especially if you want it as Zybooks requires
Explanation:
word = input("").upper()
points = 0
for i in range(len(word)):
for key, value in tile_dict.items():
if key == word[i]:
points+=value
break
print(""+str(points))
What are some of the strategies that you use for confronting a complex problem and breaking it down into smaller pieces? How might some of these strategies be useful to a computer programmer working on a CPU scheduler?
Answer:
Breaking it down I guess for me, you could take down all the possible things that you could do. Eliminating things, one by one. It could help working on a computer by not letting yourself get over-whelmed by all your programming and thinking "alright, this THEN this."
Explanation:
The strategies that you use for confronting a complex problem are:
First, define the issue.Use your inner eyes to visualize the issue. Break the problem into little piecesWhy are problem-solving strategies vital?Solving problems involves the act of making the right choices. It is known to be a good and effective way of problem-solving as one can get a good result from it.
Conclusively, by using the strategies give above, a computer programmer working on a CPU scheduler can be able to find out the issues that needs to be handled, where the problem is coming from and then solve it.
Learn more about CPU from
https://brainly.com/question/474553
In order to implement the classic DoS flood attack, the attacker must generate a sufficiently large volume of packets to exceed the capacity of the link to the target organization. Consider an attack using ICMP echo request (ping) packets that are 500 bytes in size (ignoring framing overhead). How many of these packets per second must the attacker send to flood a target organization using a 0.5-Mbps link
Answer:
131 packets
Explanation:
Given
W (link ) =0.5 M bits, and Ping packets ( P ) = 500bytes
To flood a target organization that has a bandwidth of W bits using a packet Mbits, you will require a W / P packet
P ( required ) = 500 * 8 = 4000 bits
therefore the W /P packet is calculated as
= 0.5 M bits / 4000 bits
given that : 1 M bits = 1,048,576 bits
0.5 M bits / 4000 bits= 131.07
hence approximately 131 packets/ sec is required to flood the target organization
Christopher was looking at the TV while getting feedback on his opinion essay. What should he do differently? Don't get feedback from a trusted adult. Finish watching his TV show. Make sure the trusted adult likes the show on TV, too. Turn off the TV and face the person who is speaking.
Answer:
Turn off the TV and face the person who is speaking.
Implement a class Clock whose getHours and getMinutes methods return the current time at your location. (Call java.time.LocalTime.now().toString() and extract the time from that string.) Also provide a getTime method that returns a string with the hours and minutes by calling the getHours and getMinutes methods. Provide a subclass WorldClock whose constructor accepts a time offset. For example, if you live in California, a new WorldClock(3) should show the time in New York, three time zones ahead. Which methods did you override
Answer:
Explanation:
The following code was written in Java. It uses the LocalTime import to detect the current time. Then it creates a getHours, getMinutes, and getTime method to correctly print out only the hours and minutes in a simple format. Then it does the same for the WorldClock subclass which takes in the time offset as an int parameter and adds that to the hours in your own timezone.
class Clock {
public String getHours() {
String hours = java.time.LocalTime.now().toString().substring(0,2);
return hours;
}
public String getMinutes() {
String min = java.time.LocalTime.now().toString().substring(3,5);
return min;
}
public String getTime() {
String time = getHours() + ":" + getMinutes();
return time;
}
}
class WorldClock extends Clock {
int timeZone = 0;
public WorldClock(int timeZone) {
super();
this.timeZone = timeZone;
}
public String getHours() {
String hours = String.valueOf(Integer.parseInt(super.getHours()) + 3);
return hours;
}
public String getTime() {
String time = getHours() + ":" + super.getMinutes();
return time;
}
}
class Test {
public static void main(final String[] args) {
Clock myClock = new Clock();
System.out.println("My Time: " + myClock.getTime());
WorldClock worldClock = new WorldClock(3);
System.out.println("My Time + 3: " + worldClock.getTime());
}
}
c program that calculates the summation of integers from one to N. Allow the user to input an integer, then pass that number to a function that will calculate the sum of all integers up to N. For example, if the user inputs the number 5, then the function will return the sum 1 2 3 4 5. Allow the user to enter multiple integers, calling the function for each number. Use a sentinel value or similar method to terminate user input.
Answer:
Answered below.
Explanation:
#include <studio.h>
#include<conio.h>
void main(){
int I = 0;
int sumOfNumbers = 0;
int number;
printf("Input an integer: ");
("%d", &sumOfNumbers);
//Loop over while adding numbers
while(I <= number){
sumOfNumbers = sumOfNumbers + I;
I++;
}
printf("\n Sum of N numbers is: %d", sumOfNumbers);
getch();
}
Which database item would show details such as a customer’s name, their last purchase, and other details about a customer?
A. file
B. field
C. record
D. table
E. index
Answer:
The answer is C. Record
Explanation:
Explain why microcomputers are installed with TCP/IP protocols?
Answer:
microcomputers are installed with TCP/IP protocols because its a set of standardized rule that allows the computer to communicate on a network such as the internet
briefly explain 5 software which is either free or fee
Answer:
65
Explanation:
Answer:
65
Explanation:
Joseph wants to take out the color of the background wall from an image what can Joseph do to achieve this
Answer:
Go to remove a background website
Explanation: