Answer:
The function is as follows:
double testAverage(double n1, double n2, double n3, double n4){
double small = findLowest(n1,n2,n3,n4);
double total = n1 + n2 + n3+ n4 - small;
double ave = total/3;
return ave;
}
Explanation:
This defines the function
double testAverage(double n1, double n2, double n3, double n4){
This calls the findLowesr function and save the smallest in variable small
double small = findLowest(n1,n2,n3,n4);
This calculates the sum of the largest 3
double total = n1 + n2 + n3+ n4 - small;
This calculates the average of the largest 3
double ave = total/3;
This returns the calculated average
return ave;
}
Note that: I assume that function findLowest exists (according to the question).
what is homeostasis?
a. the body maintains balance
b. the body changes
c. the body is imbalance
d. none of the above
Answer:
Homeostasis is the body maintaining balance.
Explanation:
In biology, homeostatis is the state of internal, physical, and chemical conditions maintained by living systems. Having a balance for these is crucial to the organism.
Write a method named randomStar that takes two parameters, a Random object r and an integer num. The method should keep printing lines of * characters, where each line has between 5 and 19 * characters inclusive, until it prints a line with greater than or equal to num characters. num is guaranteed to be between 5 and 19. For example, the method call randomStar(14) will print:
Answer:
The method is as follows:
public static void randomStar(Random r, int num) {
int n;
do {
n = 5 + r.nextInt(15);
for(int count = 0; count < n; count++){
System.out.print("*");
}
System.out.println();
} while(n < num);
}
Explanation:
This defines the method
public static void randomStar(Random r, int num) {
This declares n as integer
int n;
The following is repeated until n >= num
do {
This generates a random number for n (5 and 19)
n = 5 + r.nextInt(15);
The following loop prints n *'s
for(int count = 0; count < n; count++){
System.out.print("*");
}
This prints n
System.out.println();
} while(n < num); The loop is repeated as long as the condition is valid
}
1. Write a method to measure sortedness of an array. The method header is:
2. Write an iterative method to measure sortedness of a collection of linked nodes. The method header is:
3. Write a recursive method to measure sortedness of a collection of linked nodes.
Document Preview:
Meetup Questions and ideas Write a method to measure sortedness of an array. The method header is: public static double sortedness(Comparable[] array) Write an iterative method to measure sortedness of a collection of linked nodes. The method header is: public static double sortednessIterative(Node node) Write a recursive method to measure sortedness of a collection of linked nodes. public static double sortednessIterative(Node node)
is a language composed of commands within a file that can be executed without being compiled.
Answer:
A Scripting Language
Explanation:
Edge 2021
An interpreted language is a type of programming language for which several of its iterations explicitly and voluntarily implement instructions, without translating code into machine-language directives before.
What is the work of interpreter?An interpreter converts orders of a high-level into an intermediary type which instead performs. Interpreters are also used in learning as they provide immersive content for pupils.Simply stated, an editor is a program where you construct and tweak programs. The program is encoded, or compiled, using the compiler.
IDEs are a formidable collection of tools designed to make programming as simple as it can be. A code editor is essentially a text editor with strong built-in functionality and dedicated features that are geared to simplify and expedite the editing of code.
Therefore, An interpreted language is a type of programming language for which several of its iterations explicitly and voluntarily implement instructions, without translating code into machine-language directives before.
Learn more about interpreted language on:
https://brainly.com/question/23838084
#SPJ3
Please help ASAP!!! :))
Answer:
You can upgrade the OS by applying SECURITY patches to the server
Explanation:
I can't think of anything else it could be
PLS HELP
Select the correct answer from each drop-down menu. Daniel, Abeeku, and Carlos are three friends in the same physiology class. All three demonstrate different types of listening. Identify the different listening techniques displayed by each of them. Daniel listens to all the key content of the lecture and takes notes. He displays _______ listening. Abeeku is restless and begins to focus on the emotions and mood of the professor when he’s just bored. Abeeku displays _______ listening. Carlos also focuses on the key content of the lectures, but he evaluates them for accuracy based on what he has read or heard somewhere else. Carlos displays_______listening.
The blanks are: informative, critical, discriminative
Answer:
informative, discrimiitive,critical thats the order
adaptability within a species can only occur if there is genetic.
Answer:
Variation or diversity.
Explanation:
Natural selection can be defined as a biological process in which species of living organisms having certain traits that enable them to adapt to environmental factors such as predators, competition for food, climate change, sex mates, etc., tend to survive and reproduce, as well as passing on their genes to subsequent generations.
Simply stated, natural selection entails the survival of the fittest. Therefore, the species that are able to adapt to the environment will increase in number while the ones who can't adapt will die and go into extinction.
Adaptability within species can only occur if there is genetic variation or diversity i.e a drift in the genetic makeup of the total number of living organisms living together at a particular place (population).
What would be the best tool to display the following information from a basketball game?
Eric had 21 points, 3 rebounds, and 1 assist
Sean had 10 points, 1 rebound, and 10 assists
Jim had 8 points, 3 rebounds, and 5 assists
A.table
B.memo
C.research paper
D.business letter
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. Which device transmits frequencies to mobile phones?
towers transmit frequencies to mobile phones.
Answer:
Cell.
Explanation:
Electromagnetic waves is a propagating medium used in all communications device to transmit data (messages) from the device of the sender to the device of the receiver.
Generally, the most commonly used electromagnetic wave technology in telecommunications is radio waves.
Radio waves can be defined as an electromagnetic wave that has its frequency ranging from 30 GHz to 300 GHz and its wavelength between 1mm and 3000m. Therefore, radio waves are a series of repetitive valleys and peaks that are typically characterized of having the longest wavelength in the electromagnetic spectrum.
Basically, as a result of radio waves having long wavelengths, they are mainly used in long-distance communications such as the carriage and transmission of data.
In the field of telecommunication, all telecommunication setup are designed and developed to make use of two network devices: one device is typically used for the transmission of data while the other device is used to receive data that are sent on the network.
Generally, cell towers are tall poles that are used to transmit frequencies to mobile phones.
Answer:
Cell
Explanation:
plato
When writing professional emails, it is okay to use emoticons and
abbreviations.
True
False
Answer:
False
Explanation:
Answer:
false
Explanation:
Point out the wrong statement: SOA eliminates the use of application boundaries, the traditional methods where security is at the application level aren't likely to be effective An atomic service cannot be decomposed into smaller services that provide a useful function XML security service may be found in retail application communication. None of the mentioned
Answer:
All the three statements given are true so the correct option is option 4 which is none of the above.
Explanation:
The options are given in a jumbled up form the options are sorted which are as follows:
SOA eliminates the use of application boundaries, the traditional methods where security is at the application level aren't likely to be effective An atomic service cannot be decomposed into smaller services that provide a useful function XML security service may be found in retail application communication. None of the mentionedSOA stands for Service Oriented Architecture. This eliminates the application boundaries so option 1 is true.
An atomic service is defined as the smallest service which cannot be divided further. So this is true as well
The XML security service is incorporated in all retail applications. so this is true as well.
So the remaining option is just None of the mentioned.
To provide for unobtrusive validation, you can install the ____________________ package for unobtrusive validation.
Answer:
AspNet.ScriptManager.jQuery?
Explanation:
Unobtrusive validation means we can perform a simple client-side validation without writing a lot of validation code by adding suitable attributes and also by including the suitable script files.
One of the benefits of using a unobtrusive validation is that it help to reduce the amount of the Java script that is generated. We can install the AspNet.ScriptManager.jQuery? for the unobtrusive validation.
When the unobtrusive validation is used, validation of the client is being performed by using a JavaScript library.
Create a class Car, which contains Three data members i.e. carName (of string type), ignition (of bool type), and currentSpeed (of integer type)
A no-argument constructor to initialize all data members with default values
A parameterized constructor to initialize all data members with user-defined values
Three setter functions to set values for all data members individually
Three getter function to get value of all data members individually
A member function setSpeed( ) // takes integer argument for setting speed
Derive a class named Convertible that contains
A data member top (of Boolean type)
A no-argument constructor to assign default value as “false” to top
A four argument constructor to assign values to all data-members i.e. carName, ignition, currentSpeed and top.
A setter to set the top data member up
A function named show() that displays all data member values of invoking object
Write a main() function that instantiates objects of Convertible class and test the functionality of all its member functions.
Answer:
Here.
Explanation:
#include <iostream>
#include <string>
using namespace std;
//Create a class Car, which contains • Three data members i.e. carName (of string type), ignition (of bool type), and //currentSpeed (of integer type)
class Car
{
public:
string carName;
bool ignition;
int currentSpeed;
//A no-argument constructor to initialize all data members with default values
//default value of string is "",bool is false,int is 0
Car()
{
carName="";
ignition=false;
currentSpeed=0;
}
//A parameterized constructor to initialize all data members with user-defined values
Car(string name,bool i,int speed)
{
carName=name;
ignition=i;
currentSpeed=speed;
}
//Three setter functions to set values for all data members individually
// Three getter function to get value of all data members individually
void setCarName(string s)
{
carName=s;
}
void setIgnition(bool ig)
{
ignition=ig;
}
void setCurrentSpeed(int speed)
{
currentSpeed=speed;
}
string getCarName()
{
return carName;
}
bool getIgnition()
{
return ignition;
}
int getCurrentSpeed()
{
return currentSpeed;
}
//A member function setSpeed( ) // takes integer argument for setting speed
void setSpeed(int sp1)
{
currentSpeed=sp1;
}
};
//Derive a class named Convertible
class Convertible:public Car
{
//A data member top (of Boolean type)
public:
bool top;
public:
//A no-argument constructor to assign default value as “false” to top
Convertible()
{
top=false;
}
//A four argument constructor to assign values to all data-members i.e. carName, ignition,
//currentSpeed and top.
Convertible(string n,bool i,int s,bool t):Car(n,i,s)
{
carName=n;
ignition=i;
currentSpeed=s;
top=t;
}
// A setter to set the top data member up
void setTop(bool t)
{
top=t;
}
//A function named show() that displays all data member values of invoking object
void show()
{
cout<<"Car name is:"<<carName<<endl;
cout<<"Ignition is: "<<ignition<<endl;
cout<<"Current Speed is :"<<currentSpeed<<endl;
cout<<"Top is:"<<top<<endl;
}
};
//main function
int main()
{
//creating object for Convertible class
Convertible c1("Audi",true,100,true);
c1.show();
c1.setCarName("Benz");
c1.setIgnition(true);
c1.setCurrentSpeed(80);
c1.setTop(true);
c1.show();
cout<<"Car Name is: "<<c1.getCarName()<<endl;
cout<<"Ignition is:"<<c1.getIgnition()<<endl;
cout<<"Current Speed is:"<<c1.getCurrentSpeed()<<endl;
return 0;
}
The following are the program to the given question:
Program Explanation:
Defining the header file.Defining a class "Car", inside the three variables "carName, ignition, and currentSpeed" is declared that are "string, bool, and integer" types.Inside the class, "default and parameterized constructor" and get and set method has defined that set and returns the parameter values.Outside the class, another class "Convertible" (child) is declared that inherit the base class "Car".Inside the child class, "default and parameterized constructor" is defined, which inherits the base class constructor.In the child class parameterized constructor it takes four parameters, in which 3 are inherited from the base class and one is bool type that is "t".In this class, a method "setTop" is defined that sets the "t" variable value and defines a show method that prints the variable values.Outside the class, the Main method is defined that creating the child class object and calling the parameterized constructor and other methods to print its values.Program:
#include <iostream>//header file
#include <string>
using namespace std;
class Car//defining a class Car
{
//defining a data members
public:
string carName;//defining string variable
bool ignition;//defining bool variable
int currentSpeed;//defining integer variable
Car()//defining default constructor
{
carName="";//initiliaze a space value in string variable
ignition=false;//initiliaze a bool value in bool variable
currentSpeed=0;//initiliaze an integer value into int variable
}
Car(string name,bool i,int speed)//defining parameterized constructor that holds value into the variable
{
carName=name;//holding value in carName variable
ignition=i;//holding value in ignition variable
currentSpeed=speed;//holding value in currentSpeed variable
}
void setCarName(string s)//defining a set method that takes parameter to set value into the variable
{
carName=s;//set value
}
void setIgnition(bool ig)//defining a set method that takes a parameter to set value into the variable
{
ignition=ig;//set value
}
void setCurrentSpeed(int speed)//defining a set method that takes a parameter to set value into the variable
{
currentSpeed=speed;//set value
}
string getCarName()//defining a get method that return input value
{
return carName;//return value
}
bool getIgnition()//defining a get method that return input value
{
return ignition;//return value
}
int getCurrentSpeed()//defining a get method that return input value
{
return currentSpeed;//return value
}
void setSpeed(int sp1)//defining a method setSpeed that holds parameter value
{
currentSpeed=sp1;//hold value in currentSpeed
}
};
class Convertible:public Car//defining a class currentSpeed that inherits Car class
{
public:
bool top;//defining bool variable
public:
Convertible()//defining default constructor
{
top=false;//holing bool value
}
Convertible(string n,bool i,int s,bool t):Car(n,i,s)//defining parameterized constructor Convertible that inherits base class parameterized constructor
{
carName=n;//holding value in string variable
ignition=i;//holding value in bool variable
currentSpeed=s;//holding value in integer variable
top=t;//holding value in bool variable
}
void setTop(bool t)//defining a method setTop that takes parameter to set bool value
{
top=t;//holding bool value
}
void show()//defining show method that prints variable value
{
cout<<"Car name is:"<<carName<<"\n";//prints value
cout<<"Ignition is: "<<ignition<<"\n";//prints value
cout<<"Current Speed is :"<<currentSpeed<<"\n";//prints value
cout<<"Top is:"<<top<<"\n";//prints value
}
};
int main()//defining a main method
{
Convertible cs("BMW",true,180,true);//creating the Convertible calss object that calls the parameterized constructor by accepting value into the parameter
cs.show();//calling method show
cs.setCarName("Benz");//calling the setCarName method
cs.setIgnition(true);//calling the setIgnition method
cs.setCurrentSpeed(160);//calling setCurrentSpeed method
cs.setTop(true);//calling setTop method
cs.show();//calling show method
cout<<"Car Name is: "<<cs.getCarName()<<"\n";//calling the getCarName method and print its value
cout<<"Ignition is:"<<cs.getIgnition()<<"\n";//calling the getIgnition method and print its value
cout<<"Current Speed is:"<<cs.getCurrentSpeed();//calling the getCurrentSpeed method and print its value
return 0;
}
Output:
Please find the attached file.
Learn more:
brainly.com/question/23313563
You have written a program to keep track of the money due to your company. The people in accounting have entered the information from the invoices they have sent out. However, the total from accounting does not agree with a total of a second listing of items that can be billed from the production department.
Using the drop-down menus, complete the sentences about the steps in the debugging process.
As a first step in diagnosing the problem, you will
✔ reproduce the error.
A good place to begin is by examining the
✔ error codes.
Next, you can
✔ troubleshoot
the problem.
This will help you
✔ identify the source of the problem.
Answer:
1. REPRODUCE THE ERROR
2. ERROR CODES
3. TROUBLESHOOT
4. IDENTIFY THE SOURCE OF THE PROBLEM
Explanation:
Debugging a program simply means a sequence of steps which one takes to correct an imperfect program, that is a program that does not run as intended.
A good way to start debugging is to run the code, by running the code, one will be able to determine if the program has a bug. If it has then it produces an error. This error is a good starting point as the error code gives a headway into where the bug may lie.
The error code gives a hint into the type of error causing a program to malfunction which could be a syntax error, logic, Runtime and so on. In some case probable lines where there error lies are spotted and included in the error code produced.
After evaluating the error code, then we troubleshoot the probable causes of the error. By troubleshooting all the possible causes, the source of the error will eventually be identified.
Answer:
As a first step in diagnosing the problem, you will
✔ reproduce the error.
A good place to begin is by examining the
✔ error codes.
Next, you can
✔ troubleshoot
the problem.
This will help you
✔ identify the source of the problem.
Explanation:
Create a class Car, which contains Three data members i.e. carName (of string type), ignition (of bool type), and currentSpeed (of integer type)
A no-argument constructor to initialize all data members with default values
A parameterized constructor to initialize all data members with user-defined values
Three setter functions to set values for all data members individually
Three getter function to get value of all data members individually
A member function setSpeed( ) // takes integer argument for setting speed
Derive a class named Convertible that contains
A data member top (of Boolean type)
A no-argument constructor to assign default value as “false” to top
A four argument constructor to assign values to all data-members i.e. carName, ignition, currentSpeed and top.
A setter to set the top data member up
A function named show() that displays all data member values of invoking object
Write a main() function that instantiates objects of Convertible class and test the functionality of all its member functions.
Answer:
Copy paste it.
Explanation:
#include <iostream>
#include <string>
using namespace std;
//Create a class Car, which contains • Three data members i.e. carName (of string type), ignition (of bool type), and //currentSpeed (of integer type)
class Car
{
public:
string carName;
bool ignition;
int currentSpeed;
//A no-argument constructor to initialize all data members with default values
//default value of string is "",bool is false,int is 0
Car()
{
carName="";
ignition=false;
currentSpeed=0;
}
//A parameterized constructor to initialize all data members with user-defined values
Car(string name,bool i,int speed)
{
carName=name;
ignition=i;
currentSpeed=speed;
}
//Three setter functions to set values for all data members individually
// Three getter function to get value of all data members individually
void setCarName(string s)
{
carName=s;
}
void setIgnition(bool ig)
{
ignition=ig;
}
void setCurrentSpeed(int speed)
{
currentSpeed=speed;
}
string getCarName()
{
return carName;
}
bool getIgnition()
{
return ignition;
}
int getCurrentSpeed()
{
return currentSpeed;
}
//A member function setSpeed( ) // takes integer argument for setting speed
void setSpeed(int sp1)
{
currentSpeed=sp1;
}
};
//Derive a class named Convertible
class Convertible:public Car
{
//A data member top (of Boolean type)
public:
bool top;
public:
//A no-argument constructor to assign default value as “false” to top
Convertible()
{
top=false;
}
//A four argument constructor to assign values to all data-members i.e. carName, ignition,
//currentSpeed and top.
Convertible(string n,bool i,int s,bool t):Car(n,i,s)
{
carName=n;
ignition=i;
currentSpeed=s;
top=t;
}
// A setter to set the top data member up
void setTop(bool t)
{
top=t;
}
//A function named show() that displays all data member values of invoking object
void show()
{
cout<<"Car name is:"<<carName<<endl;
cout<<"Ignition is: "<<ignition<<endl;
cout<<"Current Speed is :"<<currentSpeed<<endl;
cout<<"Top is:"<<top<<endl;
}
};
//main function
int main()
{
//creating object for Convertible class
Convertible c1("Audi",true,100,true);
c1.show();
c1.setCarName("Benz");
c1.setIgnition(true);
c1.setCurrentSpeed(80);
c1.setTop(true);
c1.show();
cout<<"Car Name is: "<<c1.getCarName()<<endl;
cout<<"Ignition is:"<<c1.getIgnition()<<endl;
cout<<"Current Speed is:"<<c1.getCurrentSpeed()<<endl;
return 0;
}
Describe one health problem related to fertilizers?
How has the shift to locally grown produce decreased greenhouse emissions?
Answer:
How has the shift to locally grown produce decreased greenhouse emissions? 1 Large farms often create greenhouse emissions by poor farming practices. 2 Locally grown produce allows fewer dangerous toxins to seep into the soil and the atmosphere.
To extract detailed and comprehensive responses from your client, use the _____ questioning technique.
Pleeeeeeeeeease hellppppppp ASAP!!!:)
Answer:
I think it’s open ended question technique
Explanation:
but I would definitely change it if’s it wrong and I’m also sorry if it is
Answer:
what do you need To extract detailed and comprehensive responses from your client?
Damion recently did an update to his computer and added a new video card. After the update, Damion decided that he would like to play his favorite game. While he was playing the game, the system locked up. He restarted the computer and did not have any issues until he tried to play the same game, at which point, the computer locked up again. What might be the problem with Damion's computer
Write a police description a person who know you well
Answer:
I will be describing Jude. He is a neighbor.
Explanation:
A police description refers to the method of describing a person using high-level detailing. An example is given below:
He is a Five feet-three male caucasianWith brown eyes andan Australian accentHe has a military haircutAbout 38 yearsWeighs about 95Kgand dresses casuallyhe walks with a slant to the lefta dove tattoed at the back of his neckand a birthmark on his left ear lobeCheers
You wish to use your personal laptop computer at work. However, the IT department folks are unwilling to allow you. The likely reason is ______. a. you will use your laptop for non-work related activity b. your productivity could not be measured correctly c. your non-work related use of the laptop could increase vulnerability d. your activities could not be monitored
Answer:
B and C are the most likely options
i would probably pick C because if the IT department said no C is the option, otherwise if your boss said no it would be B.
que disminuye o destruye la televisión en cultura contemporánea según McLuhan
ayuda pls
Answer:
Traslation=
That diminishes or destroys television in contemporary culture according to McLuhan
help pls
Explanation:
Write a python statement that print the number 1000
1.
print(1000)
2.
x = 600
y = 400
print(x + y)
What refers to a collection of small sections of code that are stored together to solve many everyday programs?
- school
- mausoleum
- museum
- library
Hey none of them are corect
Hope you have a good day
-scav
Answer:
Explanation:
School
advantage of internet to millennials
Answer any choices for this question
Explanation:
Why vechiles Tyres are black in colour?
Answer: See explanation
Explanation:
It should be noted that the rubber that tire is made from has a color that's milky white but due to the fact that carbon black is being added to the rubber, then the tire will turn to black.
The importance of carbon black to tires is immense as it acts as the stabilizing chemical compound. Also, it helps in increasing the strength of the tire and its durability and also protects the tire from ozone effect.
Patrick manages the cloud services that are used by a small hospital system. He knows that there are a lot of laws and regulations out there that pertain to storing PII that are different than other industries. Which of the following sets of laws and regulations is he specifically thinking of that do not apply to other industries?
a. HIPAA
b. PCI DSS
c. GDPR
d. SLA
Answer:
a. HIPAA
Explanation:
HIPPA represents the Health Insurance Portability and Accountability Act that of the United States which becomes mandatory for protecting the medical data in any form.
Also in the case of data protection that represent the general regulations, PCI DSS, GDPR etc would be used
So the option a is correct
hence, all the other options are wrong
Answer:
A. HIPAAExplanation:
sets of laws and regulations is he specifically thinking of that do not apply to other industries.
I will give brainliest!!!!! I NEED HELP ASAP!!!!!!!
Answer:
c
Explanation:
Why should data be collected and analyze for evaluation?
Answer:
During outcomes assessment, data can provide the basis for you and other stakeholders to identify and understand results and to determine if your project has accomplished its goals. Therefore, much care must go into the design of your data collection methods to assure accurate, credible and useful information.
Consider an array of length n containing positive and negative integers in random order. Write C++ code that rearranges the integers so that the negative integers appear before the positive integers. Your solution should use
a. O(n2) operations
b. O(n) operations