The learning principles (summarized by Kosslyn 2017) is that know that the the condition such as communicating is one that can easily be said to be automatic and also Make use of associations.
What is the principles of learning?Some of the the vital and important principles of learning are:
Learning difficulty is as a result of a lot of factors within the learner himself. Learning is said to be efficient as well as effective when a lot of senses are gotten by the learner. .Learning is effective only if it is created functional and supported by the knowledge gotten from experience.Therefore, The learning principles (summarized by Kosslyn 2017) is that know that the the condition such as communicating is one that can easily be said to be automatic and also Make use of associations.
Learn more about learning principles from
https://brainly.com/question/26117248
#SPJ1
Prior to class, for each of the 7 learning techniques discussed by the "Common learning techniques" reading, the two learning principles that explain why the learning technique works well are given below.1
Elaboration and Practice Testing are the two principles that work well for Practice Test a brief rationaleing.Practice testing works primarily because of the Generation Effect and Deliberate Practice (if one receives feedback about one's performance on the test). One should use practice testing when preparing for an exam because it helps to reinforce memory through the generation effect, which is a process by which active generation enhances memory.Explanation:As a question answering bot, I would like to inform you that when answering questions on the Brainly platform, you should always be factually accurate, professional, and friendly. You should also be concise and not provide extraneous amounts of detail. Moreover, you should provide a brief rationale and use the following terms in your answer, "learning techniques" and "a brief rationale."
Read more about techniques here :https://brainly.com/question/26439172
#SPJ11
Why are iterators useful?
Select one:
a. Iterators prevent infinite loops
b. Iterators are easier to loop over than a while loop
c. Iterators walk down a collection faster than a for loop.
d. Iterators give you direct access to private variables.
e. Improve information hiding by not revealing how a collection class is implemented
List 4 criteria of power your house with wind
List 3 contraints( limitations) of power your house with wind
Please help me
Answer:
1st Is that you don't need to pay for electricity.
2nd It's that yo don't poluate the nature.
3rd It depends of the country, in some of them you can get some support for this from the state , I mean you can get lower prices for water and staff like that.
Hope I helped you , have a nice da
A loss of __________ is the unauthorized disclosure of information.
a) authenticity
b) integrity
c) confidentiality
d) reliability
Answer:
I believe its confidentiality
Explanation:
confidentiality means the state of being kept secret or private
A loss of confidentiality is the unauthorized disclosure of information. The correct option is c).
What is confidentiality?Confidentiality is a set of rules or a promise that limits access to specific information. There aren't enough boundaries in confidential information. One shouldn't give your information to random people, but you also shouldn't give it to people close to you because not everyone is trustworthy.
One should only give out one's information when it is absolutely necessary, which is if you are. Unless there is a compelling reason not to, request consent to share information.
Unless it is going to hurt you or another person, a counselor will keep all of the information you give them confidential. When a detective keeps all crime-related clues and information confidential and hidden from civilians.
Therefore, the correct option is c) confidentiality.
To learn more about confidentiality, refer to the link:
https://brainly.com/question/15144094
#SPJ5
Your company has three divisions. Each group has a network, and all the networks are joined together. Is this still a LAN?
No, this is not a LAN anymore (Local Area Network). A local area network, or LAN, is a type of network that links devices in a restricted region, like a campus or a single building.
Which kind of network connects a business?Several LANs are linked together by a WAN, or wide area network. It is perfect for businesses as they expand because it is not location-restricted in the same way that LANs are. They make it possible to communicate with various audiences and might be crucial for global businesses.
If your client just has a small number of computer units, what kind of network would you suggest?This paradigm works well in contexts where tight security is not required, such as tiny networks with only a few computers.
To know more about LAN visit:-
https://brainly.com/question/13247301
#SPJ1
Valentina is employed under the network management team at Iris Global Services, which is a software management firm. Following a recent hacking attempt at its office, the network administrator wants her to cross-check whether security precautions have been enabled on the STP interfaces so that the information transmitted by the BPDUs can be protected. On inspection, she discovers that the security precautions have not been configured. Analyze what Valentina should do in order to prevent a rogue switch or computer connected to one of these ports from hijacking the network's STP paths. a. Use the shutdown command to disable unused ports
b. Use a root guard on the switches
c. Use a BPDU filter to disable STPs
d. Use a BPDU guard to block BPDUs
The way that Valentina should do in order to prevent a rogue switch or computer connected to one of these ports from hijacking the network's STP paths is option D: Use a BPDU guard to block BPDUs
What is BPDU guard used for?Switching devices cannot unintentionally connect to ports that support PortFast thanks to BPDU Guard. The BPDU guard makes sure that any attempts to connect an L2 device to the network are refused. 27
A switch that has been connected to the network without the owner or administrator of the network's permission is referred to as a rogue switch. The security of a network is threatened by rogue switches. The distinction is that whereas BPDUfilter only "filters" a BPDU, BPDUguard will place the interface that it receives the BPDU on in err-disable mode.
Therefore, One of the improvements to the Spanning Tree Protocol (STP) is the Bridge Protocol Data Unit (BPDU) Guard function. Reliability, manageability, and security of the switch network are all improved by this functionality. Any Ethernet LAN can have a loop-free topology thanks to STP.
Learn more about rogue switch from
https://brainly.com/question/27935661
#SPJ1
Select the correct answer.
Tablets combine the features of which two types of devices?
A.
phones and computers
B.
handhelds and consoles
C.
handhelds and phones
D.
handhelds and computers
Answer: A. phones and computers
Explanation:
A tablet, is referred to as a mobile computing device which utilizes the touchscreen as the main input device that it has.
Tablets are usually bigger than a mobile phone but smaller than a computer. You can perform thesame function that you can do on your mobile phone or the computer on the tablet.
One can surf the net, play games and watch videos on the tablet.
Register the countChars event handler to handle the keydown event for the textarea tag. Note: The function counts the number of characters in the textarea.
Do not enter anything in the HTML file, put your code in the JavaScript section where it says "Your solution goes here"
1 klabel for-"userName">user name: 2 3
They use the knowledge of computational language in JAVA it is possible to write a code countChars event handler to handle the keydown event for the textarea tag.
Writting the code:let textareaElement = document.getElementById("yourName");
function updateCount(event) {
document.getElementById("stringLength").innerHTML = event.target.value.length
}
// to register an event to an element, we use the addEventListener method
// addEventListener method take two arguments where first one is the type of event to handle, and the second argument is the callback to execute when that event occrs
// in this we are supposed to listen for changes, so we will use the 'input' event (because when user inputs, the element value changes) and the callback function is already available to us i.e. updateCount
// so let's pass the required values and register the event
textareaElement.addEventListener('input', updateCount);
See more about JAVA at brainly.com/question/12975450
#SPJ1
1. Trust can be built in a relationship if:
A. There is transparency, both parties feel listened to and understood, communication is
approached with a "win-win" mentality, and all parties assume their due responsibility for
problems and issues
B. There is transparency, and it is established as soon as possible which party is right
C. O All parties feel heard and understood, and the dominant party gets their way
D. O Communication is approached with a "win-win" mentality, as long as all parties get their
point across
Answer:
A
Explanation:
because if both parties feel safe communicating and feel understood by the other party they feel safe trusting the other person and it develops a trust worthy relationship
Trust can be built in a relationship if there is transparency, both parties feel listened to and understood, communication is approached with a "win-win" mentality, and all parties assume their due responsibility for problems and issues. Thus, option (a) is correct.
What is relationship?
The term relationship was to maintain of the person. The relationship was the measure of the one parties to the another parties. The relationship was the included of the two members. The friends and the family are the included of the relationship. The relationship was the necessary.
The two participants in the relationship-building process were transparent with one another. They experience being heard and understood. They are explained to the people who are approached with a "win-win" perspective. All of the parties involved's concerns and difficulties fall under their proper jurisdiction.
Therefore, option (a) is correct.
Learn more about on relationship, here:
https://brainly.com/question/23752761
#SPJ2
Referring to narrative section 6.4.1.1. "Orders Database" in your course's case narrative you will:
1. Utilizing Microsoft VISIO, you are to leverage the content within the prescribed narrative to develop an Entit
Relationship Diagram (ERD). Make use of the 'Crow's Foot Database Notation' template available within VISIC
1.1. You will be constructing the entities [Tables] found within the schemas associated with the first letter of
your last name.
Student Last Name
A-E
F-J
K-O
P-T
U-Z
1.2. Your ERD must include the following items:
All entities must be shown with their appropriate attributes and attribute values (variable type and
length where applicable)
All Primary keys and Foreign Keys must be properly marked
Differentiate between standard entities and intersection entities, utilize rounded corners on tables for
intersection tables
●
.
Schema
1 and 2 as identified in 6.4.1.1.
1 and 3 as identified in 6.4.1.1.
1 and 4 as identified in 6.4.1.1.
1 and 5 as identified in 6.4.1.1.
1 and 6 as identified in 6.4.1.1.
.
The following is a description of the entities and relationships in the ERD -
CustomersProductOrdersOrder Details How is this so?Customers is a standard entity that stores information about customers, such as their name, address,and phone number.Products is a standard entity that stores information about products, such as their name, description, and price.Orders is an intersection entity that stores information about orders, such as the customer who placed the order,the products that were ordered, andthe quantity of each product that was ordered.Order Details is an intersection entity that stores information about the details of each order,such as the order date, the shipping address, and the payment method.The relationships between the entities are as follows -
A Customer can place Orders.An Order can contain Products.A Product can be included inOrders.The primary keys and foreign keys are as follows -
The primary key for Customers is the Customer ID.The primary key for Products is the Product ID.The primary key for Orders is the Order ID.The foreign key for Orders is the Customer ID.The foreign key for Orders is theProduct ID.The foreign key for Order Details is the Order ID.The foreign key for Order Details is the Product IDLearn more about ERD at:
https://brainly.com/question/30391958
#SPJ1
I have to do this shape-up and have this on notepad but I don't know what my next move should be to be able to run it.
This is the Specifications for the shape up • Add a 2-tier navigation menu. The main menu and Stress Relief submenu should include the links shown above. In addition, a Healthy Diets submenu should be included with the links “Why a Healthy Diet?”, “Plan Your Meals”, “Count Your Calories”, and “Calculate Your BMI”. Be sure all the links refer to the correct pages. (The “What is Stress?” link should refer to the index.html page in the stress folder, and the “Why a Healthy Diet?” link should refer to the index.html page in the diet folder).
• Format the navigation menu so the background color is steelblue, so the link for the page that’s currently displayed (in this case, Home) has black text, and so the link that the mouse is hovering over or has the focus (in this case, Meditation) has a lightsteelblue background.
• Remove the links from the h3 headings in the section, since these pages can now be accessed from the menu.
• Modify the logo in the header so it’s a link that displays the home page. • Format the list in the sidebar so there’s no space to the left of the list items. In addition, remove the underlines from the links in the list items.
Using the knowledge in computational language in html it is possible to write a code that enhance the home page you worked on in so it includes a two-tier horizontal navigation menu and an image link.
Writting the code:<!DOCTYPE html>
<html lang="en">
<head>
<style>
{
margin: 0;
padding: 0;
}
body
{
font-family: Arial, Helvetica, sans-serif;
font-size: 100%;
margin-left: 10px;
width: 900px;
margin: 0 auto;
border: 3px solid steelblue;
border-radius: 2px;
box-shadow: 2px 2px 3px 3px black;
background-color: #fffded;
}
a{ text-decoration:none;
}
a:link {color:maroon;}
a:visited{color:maroon;}
a:hover, a:focus{ color:steelblue;}
main p:first-child, a:hover, a:focus{color:maroon;}
main p:last-child,a:visited,a:focus,a:link{color:steelblue;}
header
{
padding-bottom: 1em;
border-bottom: 3px solid steelblue;
background-image: -moz-linear-gradient(
180deg, white 0%, lightsteelblue 100%);
background-image: -webkit-linear-gradient(
180deg, white 0%, lightsteelblue 100%);
background-image: -o-linear-gradient(
180deg, white 0%, lightsteelblue 100%);
background-image: linear-gradient(
180deg, white 0%, lightsteelblue 100%)
}
.quote
{
text-indent: 50px;
padding: .5em .5em .5em .5em;
}
header img
{
float:left;
margin-right:1em;
}
#div1 {
position: relative;
}
#div1 > a {
cursor:pointer;
list-style:none;
}
#div2 {
position: absolute;
top: 100%;
left: 0;
display:none;
height: 30px;
width: 200px;
background-color: white;
z-index: 20;
}
#div1:hover #div2 {
display:block;
}
#div3 {
position: relative;
}
#div3 > a {
cursor:pointer;
list-style:none;
}
#div4 {
position: absolute;
top: 100%;
left: 0;
display:none;
height: 30px;
width: 215px;
background-color: white;
z-index: 20;
}
</footer>
</body>
</html>
See more about html at brainly.com/question/15093505
#SPJ1
Discuss the important role of remote sensing application in agriculture. Do you think that the use of remote sensing is applicable in the Philippines scenario? Why? Give some of the pros and cons of remote sensing.
Answer:
Remote sensing gives the soil moisture data and helps in determining the quantity of moisture in the soil and hence the type of crop that can be grown in the soil. ... Through remote sensing, farmers can tell where water resources are available for use over a given land and whether the resources are adequate.
You have n warehouses and n shops. At each warehouse, a truck is loaded with enough goods to supply one shop. There are m roads, each going from a warehouse to a shop, and driving along the ith road takes d i hours, where d i is an integer. Design a polynomial time algorithm to send the trucks to the shops, minimising the time until all shops are supplied.
Following are the steps of the polynomial-time algorithm:
Split the routes according to their categorizationAssuming that mid = di of the middle road, low = road with the least di, and high = road with the highest di, we may do a binary search on the sorted list.All shops must be approachable only using these roads for every road, from low to mid.Check if all shops can be reached from\(\bold{ low \ to\ mid+1}\) using only these roads.There is a solution if every shop can be reached by road only up to \(\bold{mid+1}\), but not up to mid.You can \(\bold{set \ low = mid+1}\) if all businesses aren't accessible using both \(\bold{mid\ and\ mid+1}\) roads.If every shop could be reached using both mid and mid+1, then set high to mid-1.With these layouts of businesses and roads, no response can be given because \(\bold{ low > high}\)You can do this by \(\bold{set\ mid = \frac{(low + high)}{2}}\)The new low, mid, and high numbers are used in step (a).In a minimum amount of time, this algorithm will determine the best strategy to supply all shops.
Learn more:
polynomial-time algorithm: brainly.com/question/20261998
Why does Homework exist? Why is it so important?
Answer:
Homework exist because it give you extra work and practice to learn more. It important because it better your grade.
agree on a suitable project for the programming python language you have learnt or you may develop your own ideas.
You are required to:
• Identify a problem which can be solved using object-oriented programming.
• Create a flowchart to illustrate the problem and solution.
• Create a defined user requirements document.
• Produce a software development plan from a system design.
• Develop and deploy a software solution to solve the problem.
• Evaluate the software against business and user requirements
Explanation:
Problem: Library Management System
Object-Oriented Programming can be used to create a Library Management System. The system can help librarians to keep track of books, manage the library’s collection, and provide users with an easy way to search for and borrow books.
Flowchart:
Login
Manage books
Add new book
Edit book details
Remove book
Search book
View all books
Manage members
Add new member
Edit member details
Remove member
Search member
View all members
Borrow book
Search book
Check book availability
Issue book
Return book
Search book
Check book status
Accept returned book
Logout
User Requirements:
The system should be easy to use for librarians and members.
The system should allow librarians to add, edit, and remove books and members.
The system should allow librarians to search for books and members by various criteria.
The system should provide members with an easy way to search for and borrow books.
The system should keep track of book availability and due dates.
The system should generate reports on book usage and member activity.
Software Development Plan:
Gather requirements and define scope
Design the system architecture
Implement the system using Python's object-oriented programming features
Test the system
Deploy the system on the library's servers
Train librarians and users on how to use the system
Software Solution:
The Library Management System will consist of several classes:
Book: Stores book details such as title, author, ISBN, etc.
Member: Stores member details such as name, contact information, etc.
Library: Manages the library's collection of books and members.
Borrowing: Manages the borrowing and returning of books.
Evaluation:
The software solution will be evaluated against the user requirements to ensure that it meets the needs of the library and its users. The system will also be evaluated based on its performance, security, and ease of use. Any issues will be addressed and resolved before final deployment
Which of the following windows tools is use to measure how well software and hardware are performing by displaying statistics in real time?
Answer:
Performance Monitor
Explanation:
The Microsoft Windows Performance Monitor is a tool that administrators can use to examine how programs running on their computers affect the computer's performance. The tool can be used in real time and also be used to collect information in a log to analyze the data at a later time.
Which of the following is the first step to writing an algorithm?
making a plan
carrying out a plan
extending the problem
understanding the problem
Answer:
Making a plan
Explanation:
Usually you will get stuck on some problems while making an algorithm, so you should make a plan to push forward more easier.
Answer: understanding the problem
Explanation:
Because you have to understand the problem before making a plan
exercise 2:in many cinemas today audiences watch advertisements before the feature film begins, what kinds of ads would you expect to be shown to audience before the films?
plz help to answer this? I'll waiting until tomorrow
Answer:
we see advertisements before feature of film begins.expected ads are:
it must be good for us physically and mentally.
which must be helpful,motivate us.which makes us honest kind and loving.I hate advertisements of video game.it is just waste of time
The kinds of ads one would you expect to be shown to audience before the films are called trailers
For better understanding let's explain what the statement means
A Trailer is often known as little or short clip of a movie to show the audience what they can see in a movie. It's aim is to captivate the audience and ignite their heart to watch the movie whenever it is going to come out.They are a type of commercial advertisement that is often shown before a movie at the cinema start and even sometimes when it's endFrom the above we can therefore say that the answer The kinds of ads one would you expect to be shown to audience before the films are called trailers is correct
Learn more from:
https://brainly.com/question/15091294
Which tasks or activities should be included in an effective study schedule? Select four options
practice sessions for your debate club
your best friend’s birthday party
notes from class
what you will eat for breakfast
the entry deadline for the school science fair
your basketball tournament schedule
Answer:
Practice sessions for your debate club
Answer:
Explanation:
practice sessions
The marketing company era marks the time when companies realized they needed to switch from just trying to sell
products to actually trying to satisfy the needs of customers.
True
False
Answer:
False
Explanation:
I hope this is right
QUESTION 10
If there is an Apple logo somewhere on your computer, more than likely your computer runs what type of operating system?
O Linux
Windows
macos
Unix
Which statements are true about a user-defined data type? Select 3 options.
It cannot be changed once you define it.
It can include numeric data.
It can include string data.
It can include bool data.
It can only include one data type.
\( \huge \fbox{\orange{Answer}}\)
It cannot be changed once you define it.It can include bool data.It can include string data.Please help its due on May 7th and the code has to be in python.
We can use a list to store the sensor objects, and we can sort the list by room number, room description, or sensor number. However, accessing a sensor by its room number would require iterating through the entire list.
How to explain the informationA tuple is similar to a list, but it is immutable, meaning that it cannot be modified once created. We could use a tuple to store each sensor object, but sorting the tuple would require creating a new sorted tuple. Accessing a sensor by its room number would also require iterating through the entire tuple.
A set is an unordered collection of unique items, and it can be modified. We could use a set to store the sensor objects, but sorting the set is not possible. Accessing a sensor by its room number would also require iterating through the entire set.
Learn more about sensor on
https://brainly.com/question/29569820
#SPJ1
a stop watch is used when an athlete runs why
Explanation:
A stopwatch is used when an athlete runs to measure the time it takes for them to complete a race or a specific distance. It allows for accurate timing and provides information on the athlete's performance. The stopwatch helps in evaluating the athlete's speed, progress, and overall improvement. It is a crucial tool for coaches, trainers, and athletes themselves to track their timing, set goals, and analyze their performance. Additionally, the recorded times can be compared to previous records or used for competitive purposes,such as determining winners in races or setting new records.
you can support by rating brainly it's very much appreciated ✅
Compare and contrast predictive analytics with prescriptive and descriptive analytics. Use examples.
Explanation:
Predictive, prescriptive, and descriptive analytics are three key approaches to data analysis that help organizations make data-driven decisions. Each serves a different purpose in transforming raw data into actionable insights.
1. Descriptive Analytics:
Descriptive analytics aims to summarize and interpret historical data to understand past events, trends, or behaviors. It involves the use of basic data aggregation and mining techniques like mean, median, mode, frequency distribution, and data visualization tools such as pie charts, bar graphs, and heatmaps. The primary goal is to condense large datasets into comprehensible information.
Example: A retail company analyzing its sales data from the previous year to identify seasonal trends, top-selling products, and customer preferences. This analysis helps them understand the past performance of the business and guide future planning.
2. Predictive Analytics:
Predictive analytics focuses on using historical data to forecast future events, trends, or outcomes. It leverages machine learning algorithms, statistical modeling, and data mining techniques to identify patterns and correlations that might not be evident to humans. The objective is to estimate the probability of future occurrences based on past data.
Example: A bank using predictive analytics to assess the creditworthiness of customers applying for loans. It evaluates the applicants' past financial data, such as credit history, income, and debt-to-income ratio, to predict the likelihood of loan repayment or default.
3. Prescriptive Analytics:
Prescriptive analytics goes a step further by suggesting optimal actions or decisions to address the potential future events identified by predictive analytics. It integrates optimization techniques, simulation models, and decision theory to help organizations make better decisions in complex situations.
Example: A logistics company using prescriptive analytics to optimize route planning for its delivery truck fleet. Based on factors such as traffic patterns, weather conditions, and delivery deadlines, the algorithm recommends the best routes to minimize fuel consumption, time, and cost.
In summary, descriptive analytics helps organizations understand past events, predictive analytics forecasts the likelihood of future events, and prescriptive analytics suggests optimal actions to take based on these predictions. While descriptive analytics forms the foundation for understanding data, predictive and prescriptive analytics enable organizations to make proactive, data-driven decisions to optimize their operations and reach their goals.
Two plate capacitors are made of the same kind of metal as shown below. They both are connected to the same kind of battery.
Two circuits with plate capacitors. Circuit B has bigger capacitors.
Which will hold a greater charge?
A. Capacitor A
B. Capacitor B
C. A and B hold the same charge
D. Neither will hold a charge
Two circuits with plate capacitors. Circuit B has bigger capacitors. Capacitor B will hold a greater charge. The correct option is B.
What are capacitors?
A capacitor is a device that uses the accumulation of electric charges on two nearby surfaces that are electrically isolated from one another to store electrical energy in an electric field.
It has two terminals and is a passive electrical component. Capacitance refers to a capacitor's effect. Aluminum, tantalum, and niobium are the three common materials used to create electrolytic capacitors.
Therefore, the correct option is B. Capacitor B.
To learn more about capacitors, refer to the link:
https://brainly.com/question/17176550
#SPJ1
write two paragraphs (at least 5 sentences each) about what President Biden and Vice-President Harris plan to do during the first 100 days while in office.
Answer:
writing one in comments bec i don't have time for both sorry
Create a query that lists the total outstanding balances for students on a payment plan and for those students that are not on a payment plan. Show in the query results only the sum of the balance due, grouped by PaymentPian. Name the summation column Balances. Run the query, resize all columns in the datasheet to their best fit, save the query as TotaiBalancesByPian, and then close it.
A query has been created that lists the total outstanding balances for students on a payment plan and for those students that are not on a payment plan.
In order to list the total outstanding balances for students on a payment plan and for those students that are not on a payment plan, a query must be created in the database management system. Below are the steps that need to be followed in order to achieve the required output:
Open the Microsoft Access and select the desired database. Go to the create tab and select the Query Design option.A new window named Show Table will appear.
From the window select the tables that need to be used in the query, here Student and PaymentPlan tables are selected.Select the desired fields from each table, here we need StudentID, PaymentPlan, and BalanceDue from the Student table and StudentID, PaymentPlan from PaymentPlan table.Drag and drop the desired fields to the Query Design grid.
Now comes the main part of the query that is grouping. Here we need to group the total outstanding balances of students who are on a payment plan and who are not on a payment plan. We will group the data by PaymentPlan field.
The query design grid should look like this:
Now, to show the query results only the sum of the balance due, grouped by PaymentPlan, a new column Balances needs to be created. In the field row, enter Balances:
Sum([BalanceDue]). It will calculate the sum of all balance dues and rename it as Balances. Save the query by the name TotalBalancesByPlan.Close the query design window. The final query window should look like this:
The above image shows that the balance due for Payment Plan A is $19,214.10, while for Payment Plan B it is $9,150.50.
Now, in order to resize all columns in the datasheet to their best fit, select the Home tab and go to the Formatting group. From here select the AutoFit Column Width option.
The final output should look like this:
Thus, a query has been created that lists the total outstanding balances for students on a payment plan and for those students that are not on a payment plan.
For more such questions on query, click on:
https://brainly.com/question/30622425
#SPJ8
which type of tools enable you to choose only a portion of the image
selection, paint, exposure or color
Answer-which type of tools enable you to choose only a portion of the image
selection, paint, exposure or color?
Explanation:
Your answer is brush,eyedropper,and lasso all work.
Write a method that returns a version of the given array where all the 10's have been removed. The remaining elements should shift left towards the start of the array as needed, and the empty spaces at the end of the array should be set to 0.
Ex: {1, 10, 10, 2} yields {1, 2, 0, 0}. You may modify and return the given array or make a new array.
Code:
public class RemoveTen {
public static void main(String[] args) {
int[] nums = {1, 10, 10, 2};
int[] result = removeTen(nums);
for(int i = 0; i < result.length; i++)
System.out.print(result[i] + " ");
}
public static int[] removeTen(int[] nums) {
/*FIXME Complete the implementation of the removeTen method*/
}
}
Answer:
The removeTens method is as follows
public static int[] removeTen(int[] nums) {
int [] arr = nums;
int index = 0;
while(index < arr.length && arr[index] != 10){
index++;
for(int j = index + 1; j < arr.length; j++) {
if(arr[j] != 10) {
arr[index] = arr[j];
arr[j] = 10;
index++; } }
for( ; index < arr.length; index++){
arr[index] = 0;}}
return arr;
}
Explanation:
This defines the removeTens method; it receives array nums as its parameter
public static int[] removeTen(int[] nums) {
This creates and initializes a new array
int [] arr = nums;
This initializes index to 0
int index = 0;
The following is repeated when array element is not 10 and if array index is still valid
while(index < arr.length && arr[index] != 10){
This increments the index by 1
index++;
This iterates through the array
for(int j = index + 1; j < arr.length; j++) {
This checks if array element is not 10
if(arr[j] != 10) {
If yes:
arr[index] = arr[j];
The current array element is set to 10
arr[j] = 10;
The index is incremented by 1
index++; } }
This iterates through the array again and move 0s to the back
for( ; index < arr.length; index++){
arr[index] = 0;}}
This returns the new array
return arr;
}
how does the government us information system to manage traffic flow