What are not acceptable notes?

Answers

Answer 1

Answer:

err

Explanation:

Write notes in your own words instead of copying down information from the book. Avoid over-highlighting. Highlighting doesn't do much to actively engage the brain, so it's not the most useful strategy. Also, highlighting too much can keep you from focusing on the main ideas.


Related Questions

what is government to business ​

Answers

Government-to-business is a relationship between businesses and governments where government agencies of various status/levels provide services and/or information to a business entity via government portals or with the help of other IT solutions.

Source: https://snov.io/glossary/g2b/

which statement best describes application developers

Answers

The statement that best describes a website builder is option C. a tool that enables developers to create websites without programming knowledge

A website builder is a software tool that allows individuals or organizations to create websites without the need for advanced technical skills or knowledge of programming languages.

Website builders are designed to simplify the website creation process by providing an intuitive drag-and-drop interface and pre-designed templates that users can customize with their own content.

Therefore, With a website builder, users can create and edit web pages, add images and videos, and customize the design and layout of their website without needing to write code.

Read more about programming here:

brainly.com/question/23275071

#SPJ1

How Educational Technology has evolved in Ghana over the last 7 years

Answers

Answer:

modern European-style education was greatly expanded by Ghana's government after achieving independence in 1957

Explanation:

The use of educational technology in Ghana and Ghanaian schools has evolved significantly over the past 7 years.  

Teacher Training: There has been an increased focus on training teachers in using technology in the classroom. This has helped to ensure that teachers are equipped with the skills they need to effectively integrate technology into their teaching practices.

New initiatives: The government and other organizations have launched new initiatives to promote the use of technology in education, such as the Ghana SchoolNet program, which provides free internet access to schools, and the Ghana Open Data Initiative, which makes educational data freely available to the public.                                        

Increased Access to Technology: There has been a notable increase in the availability of technology, such as computers, tablets, and smartboards, in Ghanaian schools.

Digital Content Development: In recent years, there has been a push to develop digital content for use in Ghanaian schools, such as e-textbooks, multimedia educational resources, and online learning platforms. This has helped to make learning more engaging and interactive for students.

Overall, the use of educational technology in Ghanaian schools has come a long way in the past 7 years, and it is expected to continue to grow.

To learn more about Ghana and its educational technology click here: https://brainly.in/question/28489233

Which of the following social media setting would have the biggest positive impact to college admissions counselor?

Answers

Answer: Mark Zuckerberg

Explanation:

Answer:

d

Explanation:

 Setting your profile to private.

If you had a job that drill holes in the earth in search of water,what career cluster would you be working in?

Answers

The occupation of drilling wells to extract groundwater falls under the realm of Agriculture, Food & Natural Resources career cluster.

Why is this so?

This area comprises multiple job roles associated with harvesting natural resources like soil scientists; geologists; hydrologists; conservationists; and environmental engineers.

Their expertise comes into effect when they study these resources to preserve them sustainably instead of depleting them blindly.

So one mustnote that their efforts shift towards formulating agriculture methods that don't harm these reserves or endanger wildlife.

Learn more about Careers:
https://brainly.com/question/30040900
#SPJ1

Which is an example of noisy data in data sources?
A.
Age: 987
B.
Gender: Male
C.
First Name: Gary
D.
Last Name: Santiago
E.
Education: Masters (Bioinformatics)

Answers

The option that is an example of noisy data in data sources is option A. Age: 987

What is the data sources?

Age can be considered as a nonstop numerical variable that cannot surpass a certain run, and a esteem of 987 is past a sensible run for human age. This esteem may have been entered by high or may well be an exception.

Big information ascribe to information that contains blunders or exceptions, and it can influence the exactness and unwavering quality of information investigation and modeling. Subsequently, it is imperative to distinguish and handle loud information suitably some time recently performing information investigation.

Learn more about data sources from

https://brainly.com/question/14119682

#SPJ1

Did you consider yourself a digital literate? Why or Why not?

Answers

they may consider themselves digitally literate if they have the necessary skills and knowledge to use digital technologies to accomplish their tasks, communicate with others, and stay informed. On the other hand, if they lack the skills and knowledge to use digital technologies effectively, they may consider themselves not digitally literate.
Answer:

well to answer that question that is difficult

Explaination:

because if i say i am digital literate, when i haven't any enough knowlage i can't say that. and if i say am not digital literate i know i have a little knowlage.

but in fact i don't consider myself a digital literate. The reason is that i was thinking about i haven't enough knowlage to do every thing by my own self

an ___ is a percentage of the loan that is charged to cover the cost of giving the loan

Answers

A fraction is a percentage of the loan that is charged to cover the cost of giving the loan.

Thus, A loan is the lending of money by one or more people, businesses, or other entities to other people, businesses, or other entities. The recipient, or borrower, incurs a debt and is often responsible for both the main amount borrowed as well as interest payments on the debt until it is repaid.

The promissory note used to prove the obligation will typically include information like the principal amount borrowed, the interest rate the lender is charging, and the due date for repayment. When a loan is made, the subject asset(s) are temporarily reallocated between the lender and the borrower.

The payment of interest encourages the lender to make the loan. Each party to a legal loan.

Thus, A fraction is a percentage of the loan that is charged to cover the cost of giving the loan.

Learn more about Loan, refer to the link:
https://brainly.com/question/11794123

#SPJ1

Create Task for AP computer science principles python

Answers

The AP program offers two computer science courses: AP Computer Science A and AP Computer Science Principles.

Thus, The more comprehensive of the two courses, AP Computer Science Principles teaches students the fundamentals of computer science while emphasizing teamwork.

Although computer science is a useful subject to study, is the exam challenging to pass.

For aspirant AP Computer Science Principles students, it's a good thing that the subject isn't ranked in the top 10 most challenging AP courses. But that doesn't make it any less difficult. Visit our AP Computer Science Principles resource page.

Thus, The AP program offers two computer science courses: AP Computer Science A and AP Computer Science Principles.

Learn more about AP program, refer to the link:

https://brainly.com/question/3121467

#SPJ1

Create a slideshow with six pictures and text. The slide is about of of the Tcp/Ip networking layers choose the transport internet or network access layer for your slides. Title slide: Give as a minimum, the name of the layer you are presenting and your own name. The main use of the layer: Give at least two examples of how the layer is used. Diagram: Include a diagram (using squares, inches and arrows, etc) showing the relationship between the 3nd points and intervening network at this layer. Protocols: Name and describe at least two Protocols used in this layer. Supporting Protocols: Name and describe at least two Protocols that support that Protocols in your layer. (if they are non explain why that is the case). Supported Protocols: Name and describe at least two Protocols supported by the Protocols in your layer. Help Asap​

Answers

Sorry, I'm not able to create a slideshow with pictures and text. However, I can provide you with the information but you need to create your own slideshow.

Layer: Transport Layer
Presenter: MyAI

Main use of the layer:
1. Provides end-to-end communication between applications on different hosts.
2. Segments and reassembles data into a data stream.

Diagram:
[Application Layer] - [Transport Layer] - [Internet Layer] - [Network Access Layer]

Protocols:
1. Transmission Control Protocol (TCP): A connection-oriented protocol that provides reliable, ordered, and error-checked delivery of data between applications.
2. User Datagram Protocol (UDP): A connectionless protocol that provides unreliable, unordered, and unchecked delivery of data between applications.

Supporting Protocols:
1. Internet Protocol (IP): Provides logical addressing and routing of data between hosts.
2. Address Resolution Protocol (ARP): Maps IP addresses to physical addresses.

Supported Protocols:
1. HTTP: Hypertext Transfer Protocol, used for transferring web pages.
2. FTP: File Transfer Protocol, used for transferring files between hosts.

Increase the value of cell C30 by 15% using the cell referencing single MS Excel formula or function

Answers

To do this Excel formula,  we must enter  the following:
= C30 * 15%  or = C30 * 1.15.

How  is this so ?

Assuming the value to increase is in cell C30, you can use the following formula in another cell to increase it by 15%:

=C30*1.15

This multiplies the value in cell C30 by 1.15, which is equivalent to adding 15%. The result will be displayed in the cell containing the formula.

Learn more about Excel formula at:

https://brainly.com/question/30324226

#SPJ1

What three ranges must you have to complete an advanced filter in Excel where you copy the results to a different location? Explain each range. What are three advantages of converting a range in Excel to a table?

No false answers please.

Answers

Each of the following cells must be included in the specified range: A single set of cells for cell headings. Underneath the header row, there may be multiple rows with qualification rules.

If your worksheet includes a lot of content, it can be tough to discover information fast. The filter allows you to create a one-of-a-kind list of items and then extract each of them to a different location in the document or workbook.

A sequence of rows or columns. The titles of the cells in the columns you intend to filter have to match the top row in each criteria column. Digital filters tend to outperform analogue filters in terms of productivity-to-cost. The filters themselves are not affected by manufacturing flaws or aging.

Learn more about cells, here:

https://brainly.com/question/14195433

#SPJ1

Question 6 of 10
What is one reason why a business may want to move entirely online?
OA. To limit the number of items in its inventory
B. To double the number of employees
C. To focus on a global market
D. To avoid paying state and local taxes

Answers

One reason why a business may want to move entirely online is option  C. To focus on a global market

What is the reason about?

Boundaries to passage are the costs or other deterrents that anticipate unused competitors from effortlessly entering an industry or zone of commerce.

Therefore, Moving completely online can permit a trade to reach clients past its nearby range and extend its showcase to a worldwide scale. It can moreover decrease the costs related with keeping up a physical storefront and can give more prominent adaptability in terms of working hours and client get to.

Learn more about global market from

https://brainly.com/question/12424281

#SPJ1

Need help with Exercise 5 (JAVA)

Answers

Using knowledge in computational language in JAVA it is possible to write a code that install java and set java home to point to the java installation directory.

Writting the code:

For Maven I tried :

1. open cmd

2. type mvn -version

3. Error appeared :

C:\Users\Admin>mvn -version

ERROR: JAVA_HOME is set to an invalid directory.

JAVA_HOME = "C:\Program Files\Java\jre7\bin"

Please set the JAVA_HOME variable in your environment to match the

location of your Java installation

For ANT I tried and worked :

1. open cmd

2. type mvn -version

3. Apache Ant(TM) version 1.9.1 compiled on May 15 2013

There are multiple ways to copy elements from one array in Java, like you can manually copy elements by using a loop, create a clone of the array, use Arrays. copyOf() method or System. arrayCopy() to start copying elements from one array to another in Java.

See more about java at:

brainly.com/question/12975450

#SPJ1

IF UR ANSWER IS CORRECT I WILL MARK U BRAINLIEST
What type of evidence can be pulled from both an internet browser and a portable device?

Text history
CD-ROM data
Search history
GPS coordinates

Answers

Answer:

from both an internet browser and a portable device are:

Search history: This refers to the list of websites or search queries that have been typed into the browser's search bar.

GPS coordinates: This refers to the geographic location data that can be collected from a portable device, such as a smartphone or tablet, through its GPS sensor.

However, CD-ROM data and text history are not typically stored or accessed through internet browsers or portable devices. CD-ROM data is typically accessed through a CD-ROM drive on a computer, and text history would depend on the specific application or program being used to store text data.

Explanation:

If this helps, can you please mark my answer brainliest? thank you!:)

Need help with CST105 exercise 5 (JAVA)

Answers

Below is an example of a Python program that reads text from a file called "input.in" as well as encrypts all of the word based on the said rules.

What is the Java program about?

Program opens "input.in", reads words using read() and split(), creates encrypted_words list to store encrypted versions. Loop through each word and move the first half to the end if the length is even to encrypt it. If n is odd, move (n+1)/2 letters to end and convert to all-caps with upper() method.

Therefore, the code stores encrypted words in a list and writes them along with their original versions in a tabular format in the "results.out" file. "Program assumes input file has only words, may need modification to handle punctuation."

Learn more about Java program from

https://brainly.com/question/25458754

#SPJ1

See text below



CST-105: Exercise 5

The following exercise assesses your ability to do the following:

Use and manipulate String objects in a programming solution.

1. Review the rubric for this assignment before beginning work. Be sure you are familiar with the criteria for successful completion. The rubric link can be found in the digital classroom under the assignment.

2. Write a program that reads text from a file called input.in. For each word in the file, output the original word and its encrypted equivalent in all-caps. The output should be in a tabular format, as shown below. The output should be written to a file called results.out.

Here are the rules for our encryption algorithm:

a.

If a word has n letters, where n is an even number, move the first n/2 letters to the end of the word. For example, 'before' becomes 'orebef

b. If a word has n letters, where n is an odd number, move the first (n+1)/2 letters to the end of the word. For example: 'kitchen' becomes 'henkitc'

Here is a sample run of the program for the following input file. Your program should work with any file, not just the sample shown here.

EX3.Java mput.ix

mputz.txt w

1 Life is either a daring adventure or nothing at all

Program output

<terminated> EX3 [Java Application] CAProg

Life

FELI

is

SI

either

HEREIT

a

A

daring

INGDAR

adventure

TUREADVEN

or

RO

nothing

INGNOTH

at all

TA

LAL

3. Make a video of your project. In your video, discuss your code and run your program. Your video should not exceed 4 minutes.

Submit the following in the digital classroom:

A text file containing

O

Your program

O

A link to your video

Process whereby data are written to magnetic storage Location as a temporary file pending the time it will be ready for processing is known as ___​

Answers

Process whereby data are written to magnetic storage Location as a temporary file pending the time it will be ready for processing is known as buffering.

How information is put away on attractive capacity gadgets?

Buffering is the hone of pre-loading fragments of information when gushing video substance. Spilling  is the persistent transmission of sound or video records from a server to a client  is is the method that creates observing recordings online conceivable.

Attractive capacity media and gadgets store information within the frame of modest charged dabs. These dabs are made, examined and deleted utilizing attractive areas made by exceptionally minor electromagnets.

Learn more about magnetic storage from

https://brainly.com/question/13454506

#SPJ1

What will it print (show your work) (PYTHON)

def calc(a , c , b):

a = a + b

b = a – b - c

c = a + b - 1

return c, a, b



def main():

a = 1

b = 2

c = 3



a, c, b = calc(b, a, c)

print(a , b , c )



main()

What will it print for a, b, c

Answers

Answer:

The code will print 2 0 3.

Here's how the calculation works:

Initially, a = 1, b = 2, and c = 3.

In the calc() function, a is updated to a + b = 3, and b is updated to a - b - c = -2 - 3 = -5. c is updated to a + b - 1 = -2.

The calc() function returns c, a, b, which are assigned to a, c, b in the main() function. Therefore, a = -2, c = 3, and b = -5.

Finally, the print() statement in the main() function outputs the values of a, b, and c, which are -2, -5, and 3, respectively.

Explanation:

The code will print 2 0 3.

Here's how the calculation works:

Initially, a = 1, b = 2, and c = 3.

In the calc() function, a is updated to a + b = 3, and b is updated to a - b - c = -2 - 3 = -5. c is updated to a + b - 1 = -2.

The calc() function returns c, a, b, which are assigned to a, c, b in the main() function. Therefore, a = -2, c = 3, and b = -5.

Finally, the print() statement in the main() function outputs the values of a, b, and c, which are -2, -5, and 3, respectively.

Given function definition for calc:

void calc (int a, int& b)

{

int c;

c = a + 2;

a = a * 3;

b = c + a;

}

Function invocation:

x = 1;

y = 2;

z = 3;

calc(x, y);

cout << x << " " << y << " " << z << endl;

Since x is passed by value, its value remains 1.

y is passed by reference to the function calc(x,y);

Tracing the function execution:

c=3

a=3

b=c+a = 6;

But b actually corresponds to y. So y=6 after function call.

Since z is not involved in function call, its value remain 3.

So output: 1 6 3

Learn more about python on:

https://brainly.com/question/30427047

#SPJ1

According to the President at Kansas State University, what does a student need
to succeed in college?

Answers

According to the President at Kansas State University, a student needs focus and discipline to to succeed in college.

Why is this so?

When a person gets in to college, there are a million and one things that can distract them. However the primary goal should be to create good network and excel academically.

Unfortunately, this is not the case as many side activities often distract students and they only realize this when they are in their finals.

So it is correct to state that  a student needs focus and discipline to to succeed in college. As a student, you deicide how you'd lke to graduate and work at it every single day.

Learn more about discipline:
https://brainly.com/question/27915991
#SPJ1

Demonstrate competence in a range of skills in Excel including charting and use of functions Select appropriate techniques to explore and summarise a given dataset Highlight and communicate results to the relevant audienc

Answers

Answer:

I cannot answer this question as "audienc" isn't a valid word. Please re-write the question (show below):

Demonstrate competence in a range of skills in Excel including charting and use of functions Select appropriate techniques to explore and summarise a given dataset Highlight and communicate results to the relevant audienc

OK OK OK IM KIDDING HERE'S YOUR SOLUTION

Real Answer:

To demonstrate competence in a range of skills in Excel, one should have a strong understanding of the basic and advanced features of Excel, including charting, use of functions, and data analysis tools. This can be achieved through taking online courses, attending workshops, or practicing on their own.

To select appropriate techniques to explore and summarise a given dataset, one should first understand the nature and characteristics of the data, such as its size, format, and complexity. From there, one can choose appropriate Excel functions and tools to organize and analyze the data, such as filtering, sorting, grouping, and pivot tables.

To highlight and communicate results to the relevant audience, one should use appropriate charts and graphs to visually represent the data, as well as create clear and concise summaries and explanations of the results. This requires a strong understanding of the data, as well as the ability to communicate complex information in a clear and understandable manner. Additionally, one should consider the intended audience and their level of expertise when presenting the results, and adjust the presentation accordingly.

Hope it helps!!

In VPython, which object can be used to create this object?

myObject =_____(pos= vector (0, 5, 2))

box
cube
prism

Answers

In VPython, Box object can be used to create this object. myObject =box (pos= vector (0, 5, 2))

What is VPython?

The VPython box object is capable of producing 3D structures like a cube, prism, or box. The box entity accepts various inputs, including pos (the center location of the box), size (the width, length, and height of the box), color (the hue of the box), and opacity (the level of transparency of the box).

As an example, suppose you want to fashion a red-colored box that measures 1 inch in length, 2 inches in width, and 3 inches in height, and is situated at coordinates (0, 5, 2) it will be: myObject = box(pos=vector(0, 5, 2), size=vector(1, 2, 3))

Learn more about Box object from

https://brainly.com/question/28780500

#SPJ1

Which phrase or phrases suggest a security issue in data mining?

Travis often BUYS BUSINESS BOOKS ONLINE. Recently, he LOGGED INTO THE WEBSITE to buy a marketing book. He noticed a part on the screen that RECOMMENDED BOOKS BASED ON HIS BROWNING HISTORY. Due to this recommendation, Travis could easily locate the book. A few days later, he FOUND BOOK RECOMMENDATIONS FROM UNKNOW SOURCES. Eventually, he STARTED GETTING SPAM EMAIL FROM THESE SOURCES.

Answers

Based on web search results, data mining security issues are related to the protection of data and its resources from unauthorized access, misuse, or theft. Some of the factors that can suggest a security issue in data mining are:

- Data provenance: The source and history of the data should be verified and traced to ensure its authenticity and integrity.

- Access controls: The identity of the person or system accessing the data should be verified and authorized to prevent unauthorized access.

- Data anonymization: The sensitive or private information in the data should be masked or removed to protect the privacy of individuals or entities.

- Data storage location: The location where the data is stored should be secure and compliant with the relevant laws and regulations.

- Distributed frameworks: The data should be encrypted and protected when it is transferred or processed across different nodes or systems.

Based on these factors, the phrase or phrases that suggest a security issue in data mining in your question are:

- FOUND BOOK RECOMMENDATIONS FROM UNKNOWN SOURCES

- STARTED GETTING SPAM EMAIL FROM THESE SOURCES

These phrases indicate that the data provenance and access controls were compromised, and that the data was exposed to unauthorized parties who could misuse it for malicious purposes.

4.16 LAB: Count characters
Instructor note:
Write a program whose input is a character and a string,
and whose output indicates the number of times the character appears in the string.
The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1.
Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1.

Ex: If the input is:

n Monday
the output is:

1 n
Ex: If the input is:

z Today is Monday
the output is:

0 z's
Ex: If the input is:

n It's a sunny day
the output is:

2 n's
Case matters.

Ex: If the input is:

n Nobody
the output is:

0 n's
n is different than N.

Answers

Answer:

def count_char(char, string):

count = string.count(char)

if count == 1:

return f"{count} {char}"

else:

return f"{count} {char}'s"

To address cybercrime at the global level, law enforcement needs to operate
.

Answers

In order to address  cybercrime on a worldwide scale, it is imperative that law enforcement agencies work together in a collaborative and cooperative manner across international borders.

What is the cybercrime?

Cybercrime requires collaboration and synchronization among countries. Collaboration among law authorization organizations over different countries is basic for the effective request, trepidation, and conviction of cybercriminals.

In arrange to combat cybercrime in an compelling way, it is pivotal for law authorization to collaborate and trade insights, capability, as well as assets.

Learn more about cybercrime  from

https://brainly.com/question/13109173

#SPJ1

6.20 LAB: Track laps to miles

One lap around a standard high-school running track is exactly 0.25 miles. Define a function named LapsToMiles that takes a double as a parameter, representing the number of laps, and returns a double that represents the number of miles. Then, write a main program that takes a number of laps as an input, calls function LapsToMiles() to calculate the number of miles, and outputs the number of miles.

Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
printf("%0.2lf\n", yourValue);

Ex: If the input is:

7.6

the output is:

1.90

Ex: If the input is:

2.2

the output is:

0.55

The program must define and call a function:
double LapsToMiles(double userLaps)

i need this wrote in c.

Answers

Miles Morales

Explanation:

EH EH EH EH OOH OOH OOH OOOOOH YEA YEA YOULL BE LEFT IN THE DUST UNLESS YOU STUCK BY US YOURE A SUNFLOWER I THINK YOUR LOVE WOULD BE TOO MUCH

List the steps involved in creating a table in Excel if you were using the range A7:G34.

Please be specific and not give false answers.

Answers

Answer:

Sure, here are the specific steps to create a table in Excel using the range A7:G34:

Open a new or existing Excel workbook.

Click on the first cell of the range where you want to create the table (in this case, cell A7).

Drag the cursor to select all the cells in the range A7:G34.

Click on the "Insert" tab in the Excel ribbon.

Click on the "Table" button in the "Tables" group.

Ensure that the range A7:G34 is correctly displayed in the "Create Table" dialog box.

Check the box next to "My table has headers" if your table has column headers.

Click on the "OK" button to create the table.

Your table will now be created with the specified range and any column headers you may have specified. You can then format and modify the table as needed.

Explanation:

How can preparing for your next essay test help to increase your grade on that test? Read More >>

Answers

Answer: Adequate preparation in anticipation of an essay examination can prove efficacious in enhancing one's confidence level. Being adequately equipped with the necessary knowledge and skills is conducive to fostering a positive and assured self-perception, thus allowing for optimal performance and achievement in evaluations. Such a result has the potential to yield an enhanced academic outcome and a heightened emotional state of fulfillment.

Explanation:

Define different types of plagiarism in own words

Answers

The types are : Complete plagiarism. Direct plagiarism as well as Paraphrasing plagiarism etc.

What are the distinct categories of plagiarism and how can they be defined?

Different forms of plagiarism can be described using one's own language. Copying an entire piece of writing is known as global plagiarism. Exact plagiarism involves directly replicating words. Rephrasing concepts is a form of plagiarism known as paraphrasing.

Assembling different sources to create a work of plagiarism, akin to stitching together a patchwork. Self-plagiarism pertains to the act of committing plagiarism on one's own work.

Therefore,  It is possible for students to adopt an excessive amount of the writer's expressions.

Learn more about plagiarism from

https://brainly.com/question/397668

#SPJ1

Write a program that allows the user to input two numbers and then outputs the average of the
numbers.

Answers

Answer:

Here's a Python program that takes two numbers as input from the user, calculates their average and displays it as output:

# Taking input from user

num1 = float(input("Enter first number: "))

num2 = float(input("Enter second number: "))

# Calculating average

average = (num1 + num2) / 2

# Displaying output

print("The average of", num1, "and", num2, "is", average)

Explanation:

In this program, we use the input() function to take input from the user in the form of two floating-point numbers. We then calculate their average by adding the two numbers and dividing the result by 2. Finally, we display the average to the user using the print() function.

Note: We convert the input to float data type using the float() function to ensure that the division operation produces a floating-point result even if the inputs are integers.

Insertion sort in java code. I need java program to output this print out exact, please. The output comparisons: 7 is what I am having issue with it is printing the wrong amount.
When the input is:

6 3 2 1 5 9 8

the output is:

3 2 1 5 9 8

2 3 1 5 9 8
1 2 3 5 9 8
1 2 3 5 9 8
1 2 3 5 9 8
1 2 3 5 8 9

comparisons: 7
swaps: 4
Here are the steps that are need in order to accomplish this.
The program has four steps:

1 Read the size of an integer array, followed by the elements of the array (no duplicates).
2 Output the array.
3 Perform an insertion sort on the array.
4 Output the number of comparisons and swaps performed.
main() performs steps 1 and 2.

Implement step 3 based on the insertion sort algorithm in the book. Modify insertionSort() to:

Count the number of comparisons performed.
Count the number of swaps performed.
Output the array during each iteration of the outside loop.
Complete main() to perform step 4, according to the format shown in the example below.

Hints: In order to count comparisons and swaps, modify the while loop in insertionSort(). Use static variables for comparisons and swaps.

The program provides three helper methods:

// Read and return an array of integers.
// The first integer read is number of integers that follow.
int[] readNums()

// Print the numbers in the array, separated by spaces
// (No space or newline before the first number or after the last.)
void printNums(int[] nums)

// Exchange nums[j] and nums[k].
void swap(int[] nums, int j, int k)

Answers

Answer:

Explanation:

public class InsertionSort {

   static int numComparisons;

   static int numSwaps;

   public static void insertionSort(int[] nums) {

       for (int i = 1; i < nums.length; i++) {

           int j = i;

           while (j > 0 && nums[j] < nums[j - 1]) {

               swap(nums, j, j - 1);

               j--;

           }

           numComparisons++;

           printNums(nums);

       }

   }

   public static void main(String[] args) {

       int[] nums = readNums();

       printNums(nums);

       insertionSort(nums);

       System.out.println("comparisons: " + numComparisons);

       System.out.println("swaps: " + numSwaps);

   }

   public static int[] readNums() {

       Scanner scanner = new Scanner(System.in);

       int count = scanner.nextInt();

       int[] nums = new int[count];

       for (int i = 0; i < count; i++) {

           nums[i] = scanner.nextInt();

       }

       scanner.close();

       return nums;

   }

   public static void printNums(int[] nums) {

       for (int i = 0; i < nums.length; i++) {

           System.out.print(nums[i]);

           if (i < nums.length - 1) {

               System.out.print(" ");

           }

       }

       System.out.println();

   }

   public static void swap(int[] nums, int j, int k) {

       int temp = nums[j];

       nums[j] = nums[k];

       nums[k] = temp;

       numSwaps++;

   }

}

Other Questions
How did the social class structure of the American south influence Gothic writers? you wish to test the following claim ( ) at a significance level of . you obtain 25.4% successes in a sample of size from the first population. you obtain 20.3% successes in a sample of size from the second population. for this test, you should not use the continuity correction, and you should use the normal distribution as an approximation for the binomial distribution. what is the test statistic for this sample? (report answer accurate to three decimal places.) test statistic is co-teaching practical in South African school context? explain your answer in details All of these stars are now on the Main Sequence. Which lives longest?A. Mass 10 times that of the SunB. Surface is bright blueC. Spectral type FD. Spectral type M Which patient populations (2) has challenges with adherence? Why? What's wrong with the following medication order?Promethazine 25 mg solution IV q8h prn nausea. Hold for confusion. Dosage form Indication Route of administration Side effect Can one of the triangle congruence theorem listed below be used to show the two triangles are congruent? A simple circuit contains a battery connected with wires to a small bulb that has a resistance of 150 ohms. If the power dissipated by the bulb is 0.4 W, what is the voltage of the battery?Remember to identify all data (givens and unknowns), list equations used, show all your work, and include units and the proper number of significant digits to receive full credit. A television researcher watched the Simpsons and determined that Bart Simpson makes a bad decision every 1/4 of an hour. If the television researcher saw Bart make 13 bad decisions, how many hours did the researcher watch the Simpsons ? a blank rate measures the number of individuals who become ill as a result of a specific disease within a susceptible population during a specific time period. Write a couplet poem with 8 lines in total (e) A company has 8000 employees. 3600 of them belong to a certain labour union. Acommittee of 20 people must be selected. If the selection is random, what is the probabilitythat 12 of the selected people belong to the labour union? How does stargirl choice for a pet (a rat) tie in with her nonconformist ways? what scale is used in alcohol use disorders to assess for dosing with benzos? 6x3 4x2 + 11, x + 3 a can opener is a combination of which simple machines?a. a lever and a wedgeb. a wedge and a screw c. a lever and an inclined planed. an inclined plane and a wedge After reading this article, how do you feel and why? Do the actions taken against the arminians seem like acceptable wartime actions? Total demand for a transportation model is 15 while total supply is 20. Which of the following should be included?Select one:a. a dummy source of 20 unitsb. a dummy destination of 5 unitsc. a dummy source of 5 unitsd. a dummy destination of 20 unitse. a dummy destination of 35 units Skills the nurse must develop in order to be an effective advocate include: Answer the following questions for the functionf(x) = x sqrt(x^2 + 36) defined on the interval - 5 r 6. F(x) is concave down on the interval x = to x =f(x) is concave up on the interval x = to x = The inflection point for this function is at x = The minimum for this function occurs at x = The maximum for this function occurs at x =