what don't you like about creating a new document using Microsoft office button
Write the function void sort2(double* p, double* p) that receives two pointers and sorts the values to which they point. To test the function, write the main function that prompts the user to enter two values and then print out the sorted values. If you call sort2(&x, &y) then x <= y after the call.
The function illustrates the use of pointers.
Pointers are used to store address in programming languages such as C and C++.
The program in C language where comments are used to explain each line is as follows:
#include <stdio.h>
//This defines the function
void sort2(double* p1, double* p2){
//This declares a temporary variable t
double t;
//If p2 is less than p1,
if (*p2 < *p1) {
//The next 3 lines swap their values
t = *p2;
*p2 = *p1;
*p1 = t;
}
//This prints p1
printf("%f ", *(p1));
//This prints p2
printf("%f ", *(p2));
}
//The main method to test the function begins here
int main(){
double x = 23.0;
double y = 14.1;
sort2(&x, &y);
return 0;
}
//The program ends here
Read more about similar programs at:
https://brainly.com/question/15683939
identify another natural cyclic event, other than phases and eclipses, that is caused by the moon's gravitational pull on earth
Answer:
TEKS Navigation
Earth Rotation.
Moon Phases.
Tides.
Cyclical events happen in a particular order, one following the other, and are often repeated: Changes in the economy have followed a cyclical pattern. an example would be pamdemic and vircus it is belived that a new pamdemic starts every 100 years.
Explanation:
The rise and fall of ocean tides is the natural cyclic event caused by the moon's gravitational pull on earth
The gravitational pull of the moon's causes the two bulges of water on the Earth's oceans:
where ocean waters face the moon and the pull is strongestwhere ocean waters face away from the moon and the pull is weakestIn conclusion, the rise and fall of ocean tides is the natural cyclic event caused by the moon's gravitational pull on earth
Read more about gravitational pull
brainly.com/question/856541
An engine that creates ignites fuel with highly compressed air.
Explanation:
An engine that creates ignites fuel with highly compressed air. air engine
Just a quick question, how do you set something == to char and int in an if statement (java)
Write a method checkCharacter() which has 2 parameters: A String, and a specified index (an int). Method checkCharacter() checks the character at the specified index of the String parameter, and returns a String based on the type of character at that location indicating if the character is a letter, digit, whitespace, or unknown character.
Ex: The method calls below with the given arguments will return the following Strings:
checkCharacter("happy birthday", 2) returns "Character 'p' is a letter"
checkCharacter("happy birthday", 5) returns "Character ' ' is a white space"
checkCharacter("happy birthday 2 you", 15) returns "Character '2' is a digit"
checkCharacter("happy birthday!", 14) returns "Character '!' is unknown"
Your program must define the method:
public String checkCharacter(String word, int index)
this is what i got to but im stuck on how to find out if its a char or int
public class TollCalculation {
public double calcToll(int hour, boolean isMorning, boolean isWeekend) {
Scanner scnr = new Scanner(System.in);
int timeHour; // Time of travel hour (24 hour format)
int timeMinute; // Time of travel minute
int inputColon; // Used to read time format
String userInput; // User specified time
double tollAmount;
}
public static void main(String[] args) {
TollCalculation tollObj = new TollCalculation();
// Test the three samples from the specification.
System.out.println(tollObj.calcToll(7, true, false));
System.out.println(tollObj.calcToll(1, false, false));
System.out.println(tollObj.calcToll(3, true, true));
}
}
This is the requested code in java.
public class CharTest {
public static String checkCharacter(String text, int index) {
if (0 <= index && index <= text.length()) {
char ch = text.charAt(index);
if (Character.isLetter(ch)) {
return ch + " is a letter";
} else if (Character.isDigit(ch)) {
return ch + " is a digit";
} else if (Character.isWhitespace(ch)) {
return ch + " is a whitespace character";
} else {
return ch + " is an unknown type of character";
}
} else {
return "index " + index.toString() + " is out of range";
} // end if
} // end function checkChar()
public static void main(String[] args) {
// Test the three samples from the specification.
System.out.println(checkCharacter("happy birthday", 2));
System.out.println(checkCharacter("happy birthday", 5));
System.out.println(checkCharacter("happy birthday 2 you", 15));
} // end function main()
} // end class CharTest
The function checkcharacter(text, index) returns a string value describing the kind of character found at the position in text specified by index; whether it was a letter, digit, whitespace, or an unknown kind of character.
How it does that is to make use of respective functions defined within the Character class in java. That is
isLetter(char) returns a bool specifying if the char parameter is a letter.isDigit(char) returns a bool specifying if the char parameter is a digit.isWhitespace(char) returns a bool specifying if the char parameter is a whitespace character.It calls these functions in an if statement. These else part of the if statement is then executed if the character is neither a letter, digit, or whitespace.
Finally, the function main() calls checkCharacter() three times to test the function and return the results to the console.
Another example of a java program on characters is found in the link below
https://brainly.com/question/15061607
A machine that converts energy to useful work.
Answer:
heat engine
A heat engine is any machine which converts heat into useful work for example, a steam engine or a car engine. Real heat engines are complex and there are many ways of converting heat energy into useful work. We can abstract and generalise the workings of any heat engine into three parts:
Explanation:
CAN I GET BRAINLIEST
Imagine you were going to use a dedicated workstation for an animation job rather than a personal PC. What differences would you expect to see between a dedicated 3D animation workstation and a typical PC
I'm no expert here, as I don't own a workstation but rather a gaming pc. But hey, I did tons of research on pc components and I think I can answer your question.
A dedicated workstation would be FAR more capable of running 3d applications, given how demanding they can get than a personal PC. You'd instantly regret using a typical pc for 3d rendering, even a top of the line gaming pc. Point is, gpus created by nvidia are far more capable of running graphic intensive programs specifically made for work than any other gpu. If you want to be satisfied, i'd advise you go for a workstation (Plus they're so much easier to get your hands on than a gaming rig).
Write an inheritance hierarchy for classes Quadrilateral, Trapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as the superclass of the hierarchy. Create and use a Point class to represent the points in each shape. Make the hierarchy as deep (i.e., as many levels) as possible. Specify the instance variables and methods for each class. The private instance variables of Quadrilateral should be the x-y coordinate pairs for the four endpoints of the Quadrilateral. Write a program that instantiates objects of your classes and outputs each object‟s area (except Quadrilateral
Answer:
CODE:
public class QuadrilateralTest {
public static void main(String[] args) {
// NOTE: All coordinates are assumed to form the proper shapes
// A quadrilateral is a four-sided polygon
Quadrilateral quadrilateral =
new Quadrilateral(1.1, 1.2, 6.6, 2.8, 6.2, 9.9, 2.2, 7.4);
// A parallelogram is a quadrilateral with opposite sides parallel
Parallelogram parallelogram =
new Parallelogram(5.0, 5.0, 11.0, 5.0, 12.0, 20.0, 6.0, 20.0);
// A rectangle is an equiangular parallelogram
Rectangle rectangle =
new Rectangle(17.0, 14.0, 30.0, 14.0, 30.0, 28.0, 17.0, 28.0);
// A square is an equiangular and equilateral parallelogram
Square square =
new Square(4.0, 0.0, 8.0, 0.0, 8.0, 4.0, 4.0, 4.0);
System.out.printf(
"%s %s %s %s\n", quadrilateral, parallelogram,
rectangle, square);
}
}
RESULT:
Coordinates of Quadrilateral are:
2 (1.1, 1.2), (6.6, 2.8), (6.2, 9.9), (2.2, 7.4)
3
4 Coordinates of Parallelogram are:
5 (5.0, 5.0), (11.0, 5.0), (12.0, 20.0), (6.0, 20.0)
6 Width is: 6.0
7 Height is: 15.0
8 Area is: 90.0
9
10 Coordinates of Rectangle are:
11 (17.0, 14.0), (30.0, 14.0), (30.0, 28.0), (17.0, 28.0)
12 Width is: 13.0
13 Height is: 14.0
14 Area is: 182.0
15
16 Coordinates of Square are:
17 (4.0, 0.0), (8.0, 0.0), (8.0, 4.0), (4.0, 4.0)
18 Side is: 4.0
19 Area is: 16.0
Explanation:
In this exercise we have to use the knowledge of computational language in JAVA, so we have that code is:
It can be found in the attached image.
So, to make it easier, the code in JAVA can be found below:
public class QuadrilateralTest {
public static void main(String[] args) {
new Quadrilateral(1.1, 1.2, 6.6, 2.8, 6.2, 9.9, 2.2, 7.4);
new Parallelogram(5.0, 5.0, 11.0, 5.0, 12.0, 20.0, 6.0, 20.0);
new Rectangle(17.0, 14.0, 30.0, 14.0, 30.0, 28.0, 17.0, 28.0);
new Square(4.0, 0.0, 8.0, 0.0, 8.0, 4.0, 4.0, 4.0);
System.out.printf(
"%s %s %s %s\n", quadrilateral, parallelogram,rectangle, square);
}
}
See more about JAVA at brainly.com/question/2266606
3. Elaborate why and how you use “Output” command in Python Programming Language, write the syntax of output command?
Answer:
Explanation:
you use print() to output something
so it would be like this:
print("What is up, gamer?")
so the syntax is print() with whatever is in the parentheses being what you want to output
Project managers have the overall responsibility for planning, executing, and completing a project. (3 points) True False
Keisha needs to connect to the Internet, but no wireless networks or Wi-Fi hotspots are available. What can she use instead to make the connection
There are several ways of connecting to the internet aside the use of WiFi Hotspot. Hence, Keisha could make use of Bluetooth or a modem.
Bluetooth tethering allows users to establish internet connection between smart devices such as a smartphone and a computer by using the Bluetooth functionality of the devices. Similarly, modems can be used to establish a connection by inserting a data Sim into the USB modem and Inputting it into the port of the computer.Learn more : https://brainly.com/question/25698028
Consider the following class. public class ClassicClass { private static int count = 0; private int num; public ClassicClass() { count++; num = count; } public String toString() { return count + " " + num; } } What is printed when the following code in the main method of another class is run? ClassicClass a = new ClassicClass(); ClassicClass b = new ClassicClass(); ClassicClass c = new ClassicClass(); System.out.println(a + ", " + b + ", " + c);
The the code in the main method is run, it will print
"3 1, 3 2, 3 3"
The static/class field count stores the number of instances of the class created. count is always incremented when the instance constructor is called.
The instance field num acts like an identifier/serial number for the instance created. When the constructor is called, the current count is stored in the num field of the instance.
Each instance's toString( ) method will output the total count (from count) and the serial of the instance (from num).
When the code runs in the main method, it creates three instances (making count==3), so that we have
a = {count: 3, num: 1}b = {count: 3, num: 2}c = {count: 3, num: 3}and implicitly calls toString( ) in the println method for each of the three instances to produce the following output
"3 1, 3 2, 3 3"
Learn more about programs here: https://brainly.com/question/22909010
If you will choose among the multimedia mentioned, what will you use to promote this advocacy: Stop strand discrimination. We are all equal.
The media that I would choose to promote the arrest of discrimination would be television, radio, newspaper, and social media.
When we want to transmit a message to many people, the most appropriate thing is to use mass media, that is, media that have a large coverage of people, such as:
TVRadioNewspapers
On the other hand, in recent years people can expose their ideas or disseminate information through social networks, because their messages can become a trend among people and have an even greater reach than conventional media.
Another positive aspect of social networks is that they reach a greater diversity of people with different characteristics such as:
ReligionPolitical positionSocioeconomic positionEducational levelAgeSexBirthplaceTherefore, to spread an anti-discrimination message the best option is to spread it through mass media such as television, radio, newspapers and social networks.
Learn more in: https://brainly.com/question/23228635
Ruzwana is a system administrator at an organization that has over 1000 employees. Each of the employees brings their own devices to work. She wants to find an efficient method that will allow her to make the various devices meet organizational standards. In addition, she would like to deploy various universal applications such as the VPN client, meeting software, and productivity software to these systems. Which of the following options should Ruzwana use to achieve the desired outcome in this scenario?
a. A provisioning package.
b. A catalog file.
c. A configuration set.
d. An answer filE.
In this scenario, the option which Ruzwana should use to ensure that the various devices meet organizational standards and for the deployment of various universal applications is: d. An answer file
An answer file can be defined as an XML-based file which contains the configuration settings and values that should be used during the installation of a software program on one or more devices in accordance with specific standards. Thus, each and every device using the same answer file would have the same configuration setting.
Additionally, an answer file allows a system administrator to automatically deploy various software programs such as meeting software and productivity software to a particular system or network.
In this context, the most appropriate option which Ruzwana should use to ensure that the various devices meet organizational standards and for the deployment of various universal applications is an answer file.
Read more on software here: https://brainly.com/question/25703767
In your own words, explain the process undertaken while testing the significance of a multiple linear regression model parameter Indicating clearly the hypothesis considered, test statistics used rejection criteria and conclusion.
Write javascript code for the form that appears in the image below. you are expected to add validation to the name field, email field, and radio button selection. The HTML code is given below, Insert the javascript validation code in the area of the HTML code shown below and save the file. Paste one screenshot of the validation you have written.
Couldn't find much on this, and don't rly know what to do.
Which invention made it possible to have an entire computer for a single circuit board
Answer:
ok lang
Explanation:
please help!!!! what is the meaning of M,I,C,R,O,S,O,F,T word?
M-
I-
C-
R-
O-
S-
O-
F-
T-
Answer:
Microsoft (the word being a portmanteau of "microcomputer software") was founded by Bill Gates and Paul Allen on April 4, 1975, to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the personal computer operating system market with MS-DOS in the mid-1980s, followed by Microsoft Windows
Explanation:
if you need full answer this is it
Differentiate between patent and copyright.
Answer: Patent - securing an invention
Copyrights - securing original ideas
Both are governed by different rules and regulations and both are for different purposes.
Would appreciate brainly <3
Imagine that you have an image that is too dark or too bright. Describe how you would alter the RGB settings to brighten or darken it. Give an example.
What are the three algorithm constructs?
Answer:
The algorithm constructs are sequence, decision/selection and repetition.
Explanation:
The three algorithm constructs in C are?
Sequence.Selection.Iteration.What are three algorithm constructs?There are known to be 3 basic constructs in an algorithm. They are:
Linear SequenceConditionalLoopNote that an algorithm is a combination of instructions for handling a problem or fulfilling a task.
Learn more about algorithm from
https://brainly.com/question/24953880
#SPJ2
Which tab must be enabled to access the VBA Editor?
O Developer
O Insert
O Review
O View
The answer to your question is Developer.
What is the difference between a computer’s RAM and its hard disk?
A. RAM is not volatile, which means that it is more reliable than a hard disk. A hard disk is volatile, which means that it is vulnerable to electronic interference.
B. RAM is volatile, which means that it does not retain information in memory after powering down. A hard is not volatile, which means that it retains information in memory after powering down.
C. RAM is not volatile, which means that it retains information in memory after powering down. A hard disk is also not volatile, which means that it retains information in memory after powering down.
D. RAM is volatile, which means that it must be handheld with care when removed or replaced. A hard disk is not volatile, which means that it is much more resistant to movement during removal or replacement.
Answer:
D. RAM is volatile, which means that it must be handheld with care when removed or replaced. A hard disk is not volatile, which means that it is much more resistant to movement during removal or replacement.
Explanation:
Most RAM (random access memory) used for primary storage in personal computers is volatile memory. Volatile memory contrasts with non-volatile memory, which does not lose content when power is lost. Non-volatile memory has a continuous source of power and does not need to have its memory content periodically refreshed.
Answer:
Explanation:
RAM can be accessed faster than hard drive. – Any changes made to the file will be present in RAM while once the changes are saved it is copied to the hard drive permanently. – RAM needs power to store data, hard drives do not.
An engine that generates hot, expanding gases by burning fuel inside the machine.
Answer:
Piston engines, jet engines, and rocket engines all depend on the same basic principles to produce thrust. The engine mixes fuel with oxygen or another oxidizer in a combustion chamber. The mixture is ignited. The burning mixture creates hot, expanding gases.
Explanation:
PA BRAINLIEST
In the EXPLORE online library, the ratio of the number of novels to that of dictionaries is 2:3 and the total number of novels is 624. If Joe buys more novels and the ratio becomes 7:3, then how many novels have been bought in total?
Answer:
Answer is 2184
Explanation:
1st of all we need to know the total number of novels in the library if I have it with a ratio of one meaning:
2---------624
1----------???
(1×624)÷2 =312
Meaning with a ratio of 1 I'll have 312
Take the 312 and multiply with 7
It will give you 2184
That's the number of Novels which were bought by joe
In which wireless configuration type do nodes communicate directly with each other, rather than with an access point?
1)802.11b
2)Mesh network
3)Ad-hoc
4)2.4Ghz
Ad-hoc
Explanation:
In which wireless configuration type do nodes communicate directly with each other, rather than with an access point? In an AD-HOC network, all nodes communicate and transmit directly to each other.
Today we see the advantages as well as disadvantages of a wired network. In comparison what technology would you recommend Wired Ethernet or a Wireless network technology for home and what would you recommend for business? Explain your answer
Answer:
wired network
Explanation:
Wired networks are generally much faster than wireless networks. ... This is mainly because a separate cable is used to connect each device to the network with each cable transmitting data at the same speed. A wired network is also faster since it never is weighed down by unexpected or unnecessary traffic.
hope that helps your welcome
Please describe how you can use the login page to get the server run two SQL statements. Try the attack to delete a record from the database, and describe your observation.
In this paper https://arxiv.org/pdf/2008.10150.pdf, I'm having a hard time understanding how the assignment in the picture is derived, can you please work this out?
Answer:
f*(i,z) = log pxz
Explanation:
they round
1. Where did the Industrial Revolution start and why did it begin there?
Answer:
The first Industrial Revolution began in Great Britain in the mid-to-late 1700s, when innovation led to goods being produced in large quantities due to machine manufacturing.
This process began in Britain in the 18th century and from there spread to other parts of the world. Although used earlier by French writers, the term Industrial Revolution was first popularized by the English economic historian Arnold Toynbee (1852–83) to describe Britain's economic development from 1760 to 1840.
Answer:
This process began in Britain in the 18th century and from there spread to other parts of the world. Although used earlier by French writers, the term Industrial Revolution was first popularized by the English economic historian Arnold Toynbee (1852–83) to describe Britain’s economic development from 1760 to 1840
Historians have identified several reasons for why the Industrial Revolution began first in Britain, including: the effects of the Agricultural Revolution, large supplies of coal, geography of the country, a positive political climate, and a vast colonial empire.
Explanation: