During testing, a student receives the incorrect answer back from a function that was supposed to be designed to return the largest value found in an array of double values provided as a parameter. Read the function definition used for this purpose, and identify the error:
int findMax (double arr [ ], int s )
{
int i;
int indexOfMax = 0;
double max = arr[0];
for ( i=1; i < s ; i++ )
{
if ( arr[ i ] > arr [indexOfMax] )
{
indexOfMax = i;
max = arr[indexOfMax];
}
}
return indexOfMax;
}

Answers

Answer 1

Answer:

dude what r u doin

Explanation:


Related Questions

Describe how smartphones communicate. List and describe four popular types of messages you can send with smartphones. Write one well-written paragraph and answer the above question to earn 10 points.

Answers

The way that smartphones communicate is that people connect with each other and with businesses has been changed by mobile messaging. However, users and businesses can choose from a variety of mobile messaging types.

The Kinds Of Mobile Messaging are:

SMS & MMS MessagingPush Notifications.In-App Messages.RCS.

What is the messaging about?

Brief Message Service (SMS): One of the most popular types of mobile communications is SMS. A basic text message sent via a cellular signal is known as an SMS, or short messaging service.

SMS is completely text-based and has a character restriction of 160. Users in the United States who don't have an unlimited messaging package pay cents per message.

Therefore, in Notifications through Push: It's possible that you mistakenly believe that the thing that's flashing on your cell phone's screen is a text message. Similar to SMS messages, push notifications are pop-up windows that appear while you're using your phone or on the lock screen rather than in your inbox with other texts.

Learn more about Mobile Messaging from

https://brainly.com/question/27534262
#SPJ1

Naseer has inserted an image into his document but needs the image to appear on its own line.

Which option should he choose?

•Top and Bottom
•Tight
•Through
•In front of text

Answers

Answer:

Top and Bottom

Explanation:

took the test

Answer: A

Explanation:

write javascript program to find enter number is odd or even

Answers

Answer:

import java.lang.*;

import java.util.*;

public class Program

{

public static void main(String[] args) {

Scanner s=new Scanner(System.in);

int numb;

System.out.print("Enter a number:");

numb=s.nextInt();

System.out.println(numb);

int temp=numb;

if(temp==(numb/2)*2)

System.out.println(temp+" is an EVEN number");

else

System.out.println(temp+" is an ODD number");

}

}

What is an advantage of cross-brace bridge​

Answers

Answer: The common uses for cross bracing include bridge (side) supports, along with structural foundations. This method of construction maximizes the weight of the load a structure is able to support. It is a usual application when constructing earthquake-safe buildings

Which option determines the number of pages, words, and characters in a
document?
View Print Layout
File > Properties
Tools > AutoCorrect
Tools Word Count

Answers

View>print layout because it just makes sense

You are building a Music Player app.
You need to implement the MusicPlayer class, which should hold the track names as Strings in an array. The array is already defined in the given code.
The player should support the following functions:
add: add the given argument track to the tracks array.
show: output all track names in the player on separate lines.
play: start playing the first track by outputting "Playing name" where name is the first track name.

You can add a new item to an array using +=, for example: tracks += track

make sure the answer or the language code is in kotlin


answer it asap

Answers

Using the computational knowledge in JAVA it is possible to write a code that uses the functions to make a Music player app.

Writting the code in JAVA

import React, { Component,useRef, setStatus, status } from 'react';

import ‘./Song.css';

import song1 from "./music/song1.mp3";

import song2 from "./music/song2.mp3"

import song3 from "./music/song3.mp3"

import song4 from "./music/song4.mp3"

export default function MusicPlayer() {

   const data = [

           />

       </li>

   );

};

See more about JAVA at brainly.com/question/12975450

#SPJ1

You are building a Music Player app.You need to implement the MusicPlayer class, which should hold the

Presentations are used to communicate______ or to help persuade someone of a new idea. A good presentation will contain a mix of ____and ____When choosing a colour scheme for a presentation it is best to choose colours that ______well together effects can make the different objects in a presentation arrive at Using_____ different times and in different styles. The use of_____ is an effect that occurs when you move from one slide to the next. A good presentation does not need to have lots of information on it. USING THESE WORDS Animation Graphics Transitions Text Contrast​

Answers

Just quizlet it believe me it will help 100%

Design the logic for a program that allows a usher to continuously enter numbers until the usher enters 0. Display the sum of the numbers entered.

Answers

int sum = 0, n;

do {cin>>n; sum+=n;}while (n!=0);

cout<<sum;

Provide a written response that:
describes the overall purpose of the program
describes the functionality of your app
describes the input and outputs of your app

Answers

Answer:

Not securely held or in position *

1 point

Brink

Lope

Precarious

Cajole

Explanation:

Not securely held or in position *

1 point

Brink

Lope

Precarious

Cajole

Please help ASAP!
Which type of game is most likely to have multiple different outcomes?

A. shooter game

B. puzzle game

C. platform game

D. role-playing game

Answers

Role play game multiple options involved

The main reason for using a comment in your HTML code is to
tell the browser what type of document it is
O give visitors information about the page
o indicate the end of information in the file
O document and explain parts of the code

Answers

Answer:

D, document and explain parts of code

Explanation:

Mark me brainliest :)

Germ-line genetic modification refers to “designer babies.”

Question 4 options:
True
False

Answers

The given statement "Germ-line genetic modification refers to "designer babies."" is true.

Germ-line genetic modification is a technique used to alter the genes in a gamete or a fertilized zygote. This process results in the introduction of the changes into the genome of every cell in the developing embryo. Consequently, any changes made in the germ cells will be inherited by future generations, making it possible to alter the human genome permanently.

The technology is still in its early stages, but it holds the potential to eliminate a wide range of genetic diseases. Designer babies are those whose genetic makeup has been deliberately altered by parents or physicians in such a way as to confer certain traits that would not have been present naturally.

While there are many ethical and societal considerations to be taken into account when it comes to germ-line genetic modification, the technology holds a great deal of promise for the future of medicine and genetic research. One of the most significant benefits of germ-line genetic modification is its ability to eradicate inherited genetic diseases.

The concept of germ-line genetic modification is currently being debated by scientists, policymakers, and ethicists. However, as the technology continues to improve, it will undoubtedly become more prevalent in the medical field, leading to new possibilities for personalized medicine, disease prevention, and even genetic enhancement.

For more such questions on genetic modification, click on:

https://brainly.com/question/16733706

#SPJ8

8. What should one do in order to gain the most benefit from the concept of learning styles?
a. Be rigid
b. Be persistent
c. Be imaginative
d. Stay flexible

D stay flexible

Answers

The thing that a person should do in order to gain the most benefit from the concept of learning styles is option D: stay flexible.

What does learning styles mean?

Learning styles can be categorized, identified, and described in a variety of ways. They are, in general, broad patterns that give teaching and learning direction.

Another way to think of learning style is as a set or a given group of elements, actions, as well as attitudes that support a person's learning in a specific circumstance.

Therefore, based on the above, The thing that a person should do in order to gain the most benefit from the concept of learning styles is option D: stay flexible.

Learn more about learning styles from

https://brainly.com/question/3274282
#SPJ1

A Quicksort (or Partition Exchange Sort) divides the data into 2 partitions separated by a pivot. The first partition contains all the items which are smaller than the pivot. The remaining items are in the other partition. You will write four versions of Quicksort:
• Select the first item of the partition as the pivot. Treat partitions of size one and two as stopping cases.
• Same pivot selection. For a partition of size 100 or less, use an insertion sort to finish.
• Same pivot selection. For a partition of size 50 or less, use an insertion sort to finish.
• Select the median-of-three as the pivot. Treat partitions of size one and two as stopping cases.
As time permits consider examining additional, alternate methods of selecting the pivot for Quicksort.

Merge Sort is a useful sort to know if you are doing External Sorting. The need for this will increase as data sizes increase. The traditional Merge Sort requires double space. To eliminate this issue, you are to implement Natural Merge using a linked implementation. In your analysis be sure to compare to the effect of using a straight Merge Sort instead.

Create input files of four sizes: 50, 1000, 2000, 5000 and 10000 integers. For each size file make 3 versions. On the first use a randomly ordered data set. On the second use the integers in reverse order. On the third use the
integers in normal ascending order. (You may use a random number generator to create the randomly ordered file, but it is important to limit the duplicates to <1%. Alternatively, you may write a shuffle function to randomize one of your ordered files.) This means you have an input set of 15 files plus whatever you deem necessary and reasonable. Files are available in the Blackboard shell, if you want to copy them. Your data should be formatted so that each number is on a separate line with no leading blanks. There should be no blank lines in the file. Even though you are limiting the occurrence of duplicates, your sorts must be able to handle duplicate data.

Each sort must be run against all the input files. With five sorts and 15 input sets, you will have 75 required runs.

The size 50 files are for the purpose of showing the sorting is correct. Your code needs to print out the comparisons and exchanges (see below) and the sorted values. You must submit the input and output files for all orders of size 50, for all sorts. There should be 15 output files here.

The larger sizes of input are used to demonstrate the asymptotic cost. To demonstrate the asymptotic cost you will need to count comparisons and exchanges for each sort. For these files at the end of each run you need to print the number of comparisons and the number of exchanges but not the sorted data. It is to your advantage to add larger files or additional random files to the input - perhaps with 15-20% duplicates. You may find it interesting to time the runs, but this should be in addition to counting comparisons and exchanges.

Turn in an analysis comparing the two sorts and their performance. Be sure to comment on the relative numbers of exchanges and comparison in the various runs, the effect of the order of the data, the effect of different size files, the effect of different partition sizes and pivot selection methods for Quicksort, and the effect of using a Natural Merge Sort. Which factor has the most effect on the efficiency? Be sure to consider both time and space efficiency. Be sure to justify your data structures. Your analysis must include a table of the comparisons and exchanges observed and a graph of the asymptotic costs that you observed compared to the theoretical cost. Be sure to justify your choice of iteration versus recursion. Consider how your code would have differed if you had made the other choice.

Answers

The necessary conditions and procedures needed to accomplish this assignment is given below. Quicksort is an algorithm used to sort data in a fast and efficient manner.

What is the Quicksort?

Some rules to follow in the above work are:

A)Choose the initial element of the partition as the pivot.

b) Utilize the same method to select the pivot, but switch to insertion sort as the concluding step for partitions that contain 100 or fewer elements.

Lastly,  Utilize the same method of pivot selection, but choose insertion sort for partitions that are of a size equal to or lesser than 50 in order to accomplish the task.

Learn more about Quicksort  from

https://brainly.com/question/29981648

#SPJ1

Consider a parent process P that has forked a child process C. Now, P terminates while C is still running. Answer yes/no, and provide a brief explanation. (a) Will C immediately become a zombie? (b) Will P immediately become a zombie, until reaped by its parent?

Answers

(a) No, C will not immediately become a zombie when P terminates while C is still running. (b) No, P will not immediately become a zombie when it terminates while C is still running. The operating system will assign the parent of P to be the init process

Zombie processes do not take up any system resources other than memory and process table entry. When a parent process forks a child process, it creates a new process with its unique process ID. When the child process finishes executing, it returns a status value to the parent process through the wait system call, and the parent process reaps it by calling the wait system call. When the parent process terminates before the child process, the child process becomes an orphan process, and it is adopted by the init process. The init process reaps all orphan processes and prevents them from becoming zombie processes.In the given scenario, parent process P forks a child process C. When parent process P terminates before child process C, child process C becomes an orphan process, and it is adopted by the init process. The init process reaps child process C and prevents it from becoming a zombie process. Thus, no, child process C will not immediately become a zombie. However, parent process P will not become a zombie until reaped by its parent. Since parent process P does not have any parent process, it remains in the process table until the system is shut down.

Learn more about child process here;

https://brainly.com/question/14988724

#SPJ11

Your game design company has recently asked all employees to use a specific personal information management application (PIM) to increase workplace efficiency. The PIM is collaborative, so contacts, calendar entries, and notes are shared across the team. Several team members are resistant to the idea, saying it interrupts their workflow, and they prefer their own way of handing contacts, notes, etc. Others don’t want their own notes to be seen by their coworkers.

Answers

Answer:For example, an office worker might manage physical documents in a filing cabinet by placing them in folders organized alphabetically by project name, or might manage digital documents in folders in a hierarchical file system.

Explanation:

 If any staff leaves an organization, which advantage avoids confusion with management of files

Answers

One advantage of having clear and organized file management systems in place is that it can help to avoid confusion if any staff leaves the organization. With well-organized files, it will be easier for the remaining staff to locate and access the necessary documents and information, even if the person who originally created or managed those files is no longer with the organization. This can help to minimize disruptions and ensure that important tasks and processes can continue to be carried out smoothly.

Use the drop-down menus to complete statements about how to use the database documenter

options for 2: Home crate external data database tools

options for 3: reports analyze relationships documentation

options for 5: end finish ok run

Use the drop-down menus to complete statements about how to use the database documenteroptions for 2:

Answers

To use the database documenter, follow these steps -

2: Select "Database Tools" from   the dropdown menu.3: Choose "Analyze"   from the dropdown menu.5: Click on   "OK" to run the documenter and generate the desired reports and documentation.

How is this so?

This is the suggested sequence of steps to use the database documenter based on the given options.

By selecting "Database Tools" (2), choosing "Analyze" (3), and clicking on "OK" (5), you can initiate the documenter and generate the desired reports and documentation. Following these steps will help you utilize the database documenter effectively and efficiently.

Learn more about database documenter at:

https://brainly.com/question/31450253

#SPJ1

Company-wide systems that connect one or more local area networks (LANs) or wide area networks (WANs) are called _____.

Answers

Web-centric systems

how can we clearly communicate how to draw something on a screen

Answers

The way we can clearly communicate how to draw something on a screen are:

First the person need to be clear on what they what them to drawThen they need to give examples or make use of a  diagram that the people are going to draw. Note that one need to also be patient and try to convey the ways to draw every minute.Lastly let them practice what you have said on their own.

What is communication and explain?

Communication is known to be a term that connote the act of providing, receiving, as well as  sharing information.

Note that Good communicators are those that  listen carefully, speak  and also write clearly, as well as understand the message that is been delivered.

It is seen as the process through which information is said to be exchanged between people through a some system of symbols, signs and others.

Therefore, The way we can clearly communicate how to draw something on a screen are:

First the person need to be clear on what they what them to drawThen they need to give examples or make use of a  diagram that the people are going to draw. Note that one need to also be patient and try to convey the ways to draw every minute.Lastly let them practice what you have said on their own.

Learn more about communication from

https://brainly.com/question/25793182
#SPJ1

A feedback loop is:
A. a hyperlink to another part of a story.
B. an endless cycle of creation and response.
C. the excitement people feel about networking.
D. the best method for creating a story.

Answers

Answer:

c

Explanation:

A feedback loop is the excitement people feel about networking

What is feedback loop?

A feedback loop can be used in learning process, where the output or results is used as again as data for another process.

Therefore, A feedback loop is the excitement people feel about networking

Lear more on feedback loop below

https://brainly.com/question/13809355

#SPJ9

Write a method isSorted that accepts a stack of integers as a parameter and returns true if the elements in the stack occur in ascending (non-decreasing) order from top to bottom, and false otherwise.

Answers

Explanation:

bottom [20, 20, 17, 11, 8, 8, 3, 21 top the following stack is not sorted (the 15 is out of place), so passing it to your method should return a result of false: bottom [18, 12, 15, 6, 11 top an empty or one-element stack is considered to be sorted. when your method returns, the stack should be in the same state as when it was passed in. in other words, if your method modifies the stack, you must restore it before returning.

Which process is based on repulsion of oil and water?
A.
plotting
B.
flexography
C.
lithography
D.
screen printing
E.
offset printing

Answers

Answer:

C.  lithography

Explanation:

Lithography is one of the methods of printing. In this form oil and water are used. The repulsion of oil and water is used in the process. It was a method by which the publication of the art and theatrical works were done. In this process the printing was done on the paper, metal surface or smooth surface. During the process, the wetness of the stone is retained by placing it in water.

ntify five key technologies/innovations and discuss their advantages and
disadvantages to developing countries like Ghana

Answers

Answer:

1. Blockchain Technology: Blockchain is a distributed ledger technology that lets data to be stored globally on its servers and it is based on a P2P topology which makes it difficult for someone to tamper with the network.

It can be used as a cryptocurrency wallet that supports BitCoin, Ethereum, etc.

An advantage of it is that it is distributed among several users and stable.

A disadvantage for a developing country like Ghana is that once a blockchain is sent, it cannot go back which brings up the question of security.

2.Artificial Intelligence: This technology is simply the simulation of human intelligence in machines. AI can be used for problem-solving and learning. An advantage of AI is that it reduces human error and is fast in solving problems. A disadvantage of AI is that its expensive to maintain and also it does not improve with experience.

3. Global Positioning System: GPS is a satellite-based positioning system that is used to pinpoint and track location. It has the advantage of being available worldwide and information is provided to users in real-time. One disadvantage of the GPS for a developing country like Ghana is that electromagnetic interference can affect the accuracy of the GPS.

4. 5G Network: This is the 5th generation of mobile internet connectivity that gives super fast download and upload speeds when compared to its predecessors 4G, 3G, 2G, and Edge networks.

One major disadvantage of 5G for a developing country like Ghana is that it is expensive and quite unknown and its security and privacy issues are yet to be resolved.

5. Lasers: This isn't a new technology as it has been in use for some time already but its importance cannot possibly be over-emphasized. LASER is an acronym that means Light Amplification by the Stimulated Emission of Radiation.

It is precise and accurate in cutting when compared to thermal and other conventional cutting methods. It is being used in surgeries that require the highest levels of accuracy with great success.

A disadvantage of Laser technology is that it is expensive to use and maintain.

What is the difference between

Answers

I need more context

Explanation:

you didn't the whole question

Correct or False, when formatting conditional data, I start by selecting the range of data that I want to format

Answers

Answer:

Correct

Explanation:

what is the linear cycle? ​

Answers

Answer:

a mixed media installation that delves into the nature of patterns, cycles and resonant frequencies

Distinguish between composition and inheritance.

Answers

Answer:

compotsition: The combining of distinct parts or elements to form a whole

Inheritance: The action of inheriting something

Explanation:


Katie and her mom had an argument. Katie was at the mall when her mom called on her cell phone. What type of noise came up in their
communication?

Answers

Answer:

Noise pollution.

Explanation:

Noise pollution is too loud noise that is harmful to health or that significantly reduces the comfort of the environment or significantly impairs work. Noise pollution arises, for example, from traffic and work machines, as well as from noisy events such as open-air concerts. Noise pollution can also arise from industrial plants (such as wind turbines, rock crushers), work machines (such as cargo handling equipment in ports and other sites), individual machines and equipment (such as leaf blowers, clearing and chainsaws, air conditioners), water pumps) and other noise sources. The noise of the work machines also causes inconvenience to the user of the device if the source of the noise is close to the hearing system of the machine operator.

Select
the correct answer from each drop-down menu.
At which stage should James, a website designer, gather information about the website he wants to create, and at which stage should he begin its
coding?
James should gather information in the
phase and begin the site's coding in the
phase.

Answers

Answer:

At which stage should James, a website designer, gather information about the website he wants to create, and at which stage should he begin its coding?

James should gather information in the planning phase and begin the site's coding in the development phase.

Hope this helps!

Other Questions
Hiring workers, dealing with suppliers and serving customers are all part of ______.planningcontrollingimplementation Select the correct answerRead this excerpt from an essay. What type of essay is this?Even students can get involved and make a difference in their communities. One example is a high school classmate of mine. When she wasa freshman, she was very nervous about speaking in public. For a social studies research project, a teacher suggested that she visit a localnursing home. There she discovered that they needed volunteers to read to the residents. She tried it for a week and was hooked. Theexperience gave her confidence and brought joy to the residents. Over the years, she encouraged her friends to join her and was inspired tostart the Community Service Council as a senior project. She wrote her college application essays about the impact of these experiences.Today, she's a college service organizer and an advisor to a state legislator. This is just one example of how to make a difference in yourcommunityInformative essaypersuasive essayC.research essayDnarray a charge 48.0 cm -long solenoid 1.35 cm in diameter is to produce a field of 0.500 mt at its center. How much current should the solenoid carry if it has 995 turns of the wire? How people made decisions starting from conformity to Individuality. The Giver thesis QUICLYDUE TOMMOROW Work out the difference between the largest share and the smallest share when 3450 yen is divided in the ratios 2:6:7 What was the goal of McCarthyism is an educational website educating consumers on the dangers of credit and loan services. is this statement true or false? In American flag how are the authors' purposes in the two selections alike, and how are theydifferent? Include one major similarity and one major different in your response. Witch source would be most relevent for an essay with the fallowing research questionQuestion: Why shouldvolenteering be a graduation requierment for high schoolers?A A country website that lists all the dfferent volenteer opratunities availible in the community.B A book describing how volenteering is the best way fr young peope to build charecter C an article that describes how student who play sports exel at teamwork and problem solvingD Results from a survey showing that parnts think there are to many demands on high schoolers Think about your topic. What vivid details can you include? Brainstorm a list. select all that apply. Which terms are concerned with cycles? A) accident B) one time C) order D) repetition E) luck F) design Which is an example of a split complementary color scheme? (Using red as 1 point the dominant color) * O Red, Blue-Green, Yellow-Green Red, Blue, Yellow O Red, Green, Yellow Red, Violet, Yellow-Green The U.S. Sanitary Commission:a) was the first major organization to be run entirely by womenb) raised money for the amilies of soldiers on both sidesc) coordinated war donations on the northern home frontd) was the nation's first garbage collection agency Assume that Glass A and Glass B are identical except that Glass A has more cracks that Glass B. Based on this knowledge, we can conclude that Glass A will have a lower fracture toughness than Glass B. Jupiter is closer to the sun than the earthtruefalse I need help on number 16 these instructions say to solve these equations by cross multiplying All of the following except __________ caused american adults to worry about american teenagers. Write correct answer on paper, take a picture and upload 1. After recently overpaying for two acquisitions using the company's stock, the Non-Value- Added Acquirers Ltd. has been informed by the Toronto Stock Exchange that its stock will be de-listed from the stock exchange because its share price is not high enough to meet the exchange's specified minimum price level. As a high-flying Carleton MBA, what do you think the company can do to remedy this situation and reduce the number of shares outstanding at the same time? A. Pay a regular cash dividend. B. Execute a stock split. C. Execute a reverse stock split. D. Pay a stock dividend. i need heeeelllllpppppppp plz ..................... If a white dog with a short tail is crossed with a dog that is hom0zygous for black fur and heterozygous for a long tail, what is the probability (chance) that a puppy will be black with a short tail?1 out of 16 (6% chance)4 out of 16 (25% chance)8 out of 16 (50% chance)16 out of 16 (100% chance)