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
list ten beeping sounds in a computer system according to the hard ware
Answer:
CMOS Shutdown Register Failure
Explanation:
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
Write a python function to compute a certain number to a given power. The program should continue asking the user for number and power and display the result until the user enters 0 as the number. Note: don't use the power function of Python. Compute the power using a for or a while loop.
while True:
number = int(input("input the number: "))
exponent = int(input("input the exponent : "))
if number == 0:
break
else:
result = 1
while exponent != 0:
result *= number
exponent-=1
print("Answer = " + str(result))
we are asked not to use the power function of python. The question wants us to use a for or a while loop to compute the power.
The while loop makes sure the user is always asked to input the number and an exponent.
If the users number equals 0, the while loop will break.
Else the code will find the power of the number.
Finally, we print the answer if the user number is not zero
The bolded part of the code are python keywords.
read more: https://brainly.com/question/12992668?referrer=searchResults
Partially-filled Arrays
Write the function rindby() which stands for remove mark>if not divisiby by. The function removes all elements from the array that are not evenly divisible by the argument n. You can find out if a number is evenly divisible by n using the remainder operator: % (there will be nothing left over).
The function returns the number of items removed or -1 if the array was originally empty.
The function takes 3 arguments:
the array of int that may be modified.
the size of the array (use size_t as the type)
the int n used to check for divisibility
Here are two short examples:
int a[] = {2, 3, 4, 5, 6};
size_t size = 5;
int removed = rindby(a, size, 2);
// removed->2, a = [2, 4, 6], size = 3
size = 0;
removed = rindby(a, size, 3);
// removed-> -1, no change otherwise
In the first case, the numbers 3 and 5 are removed because they are not divisible by 2. Only the numbers that are divisible by 2 are left in the array.
In the second, size has been set to , so the input array is empty and the function returns - 1.
Exam C++ Quick Reference
p1.cpp
1 #include // size_t for sizes and indexes
2 using namespace std;
3
4 ////////////////WRITE YOUR FUNCTION BELOW THIS LINE ///////////////
5 int rindby(int all, size_t& size, int number)
6 {
7 int result;
8 // Add your code here
9 return result;
10 }
11
Answer:
um
Explanation:
A good algorithm should have which three components?
O A. Commands, inputs, and outputs
B. Clarity, readability, and sequencing
C. Steps, order, and outcomes
O D. Clarity, simplicity, and brevity
Answer:
a good algorithm must be able to accept a set of defined input. Output: a good algorithm should be able to produce results as output, preferably solutions. Finiteness: the algorithm should have a stop after a certain number of instructions. Generality: the algorithm must apply to a set of defined inputs.Explanation:
A good algorithm should have Steps, order, and outcomes. The correct option is C.
What is algorithm?An algorithm is a set of instructions that solves a particular problem or performs a specific task.
An algorithm must be well-defined and organised in order to be effective, with clear steps or procedures, a logical order of operations, and a clear understanding of the expected outcomes or results.
As a result, the steps, the order in which those steps are executed, and the expected outcomes or results of following those steps are three essential components of a good algorithm.
Option A describes the fundamental components of a programme, but it is not always a good algorithm.
Option B emphasises some important characteristics of good code, but not specifically related to algorithm design.
Option D addresses important aspects of any type of technical writing, but is not specifically related to algorithm design.
Thus, the correct option is C.
For more details regarding algorithm, visit:
https://brainly.com/question/22984934
#SPJ7
LIst types of computer process ?
Answer:
Transaction Processing.
Distributed Processing.
Real-time Processing.
Batch Processing.
Multiprocessing.
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
Assume that the speed of new computers costing a certain amount of money grows exponentially over time, with the speed doubling every 18 months. Suppose you need to run a very time consuming program and are allowed to buy a new computer costing a fixed amount on which to run the program. If you start now, the program will take 7 years to finish. How long should you delay buying the computer and starting the program so that it will finish in the shortest amount of time from now
Therefore, in order to run the program in the shortest time, you should delay for 3 years
Given that the speed of new computers costing a certain amount of money grows exponentially over time, with the speed doubling every 18 months.
Exponential equation as a function of time can be expressed as
P(t) = [tex]P_{0}[/tex][tex]R^{t/T}[/tex]
Quantity P will be increasing exponentially when R > 1. And it will decrease exponentially when R < 1.
Suppose you need to run a very time consuming program and are allowed to buy a new computer costing a fixed amount on which to run the program. If you start now, the program will take 7 years to finish.
Let the time required to run and complete a program for time t years be P(t).
If the speed doubling every 18 months, which is 3/2 years. This will eventually cause the running time to decrease by half (0.5)
P(t) = 7[tex](1/2)^{3t/2}[/tex] = 7[tex](2)^{-3t/2}[/tex]
The total time T will be sum of the delay time t and the time of running the program. That is
T(t) = t + P(t)
T(t) = t + 7[tex](2)^{-3t/2}[/tex] .......... (2)
We can calculate the minimum time t by differentiating the above equation and make it equal to zero.
dT/dt = 1 + 14/3[tex](2)^{-3t/2}[/tex](ln0.5) = 0
14/3[tex](2)^{-3t/2}[/tex](ln0.5) = -1
[tex](2)^{-3t/2}[/tex](ln0.5) = -3/14
[tex](2)^{-3t/2}[/tex] = -3/14ln0.5
Log (natural logarithm) both sides
-3t/2ln2 = ln(3/14ln2)
make t the subject of formula
t = - 3ln(3/14ln2) ÷ 2ln2
t = 2.5 approximately
To know how long you should delay buying the computer and starting the program so that it will finish in the shortest amount of time from now, substitute t into equation 2
T(2.5) = 2.5 + (7)[tex]2^{-3(2.5)/2}[/tex]
T(2.5) = 2.5 + 0.5202
T(2.5) = 3.02 years
T (2.5) = 3 years approximately
Therefore, in order to run the program in the shortest time, you should delay for 3 years
Learn more here: https://brainly.com/question/6497099
How has technology has impacted Ghana
Answer:
there are many ways that technology has impacted Ghana.
1. The republic of Ghana have been making some plans that can help with economic growth in the last decade.
2. Ghana has a higher productivity rate than the neighboring nations.
3. The republic of Ghana made a shift onto incentive-driven economic policies, so that way it could help improve leadership.
We can find out how robots work by looking in detail at the smaller parts. What do we call this?
Answer: This can be called the engineering.
Explanation:
Because the small parts is the bearings inside the robot
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.
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
F= A· (B+C). draw the symbol for the logic gate
Answer:
You need an AND gate and an OR gate.
Explanation:
see picture below
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.
An engine that creates ignites fuel with highly compressed air.
Explanation:
An engine that creates ignites fuel with highly compressed air. air engine
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
#include
void main()
{
int m=45,first,last;
first=m/10;
last=m%10;
printf("%d",first);//line 1
printf("\n%d",last);//line 2
printf("\nSum=%d",first*last);//line 3
printf("\n%d",first*last);//line 4
printf("\n%d",last*last);//line 5
printf("\nCube=%d",first*first*first);//line 6
}
Select the correct output for line 1 ~
1 point
4
5
0
Answer:
4
Explanation:
45 divided by 10 using integer division is 4
I ran the program, output is below.
Name a type of malware designed to provide unauthorized, remote access to a user's computer
Answer:
spyware
Explanation:
your welcome;)
Answer:
trojan horse
Explanation:
or just trojan
Identify the false statement. a. When you use inheritance to create a class, you save time because you can copy and paste fields, properties, and methods that have already been created for the original class. b. When you use inheritance to create a class, you reduce the chance of errors because the original class's properties and methods have already been used and tested. c. When you use inheritance to create a class, you make it easier for anyone who has used the original class to understand the new class because such users can concentrate on the new features.
Uploading this answer for points please do not accept this answer thank you.
Each road is associated with a value indicating the level of danger in maintaining that road during winter months. There are many subsets of roads such that the roads in such subsets keep the towns connected directly or indirectly. Each subset is assigned a cost of maintenance, which is directly proportional to the highest danger level of the road present in that subset. The engineer wants to select the smallest subset that keeps the towns connected directly or indirectly and that also has the lowest cost of maintenance. Develop an algorithm to find such a subset. Justify the correctness of your algorithm and derive its runtime.
Answer:
Each road is associated with a value indicating the level of danger in maintaining that road during winter months. There are many subsets of roads such that the roads in such subsets keep the towns connected directly or indirectly.
Edhesive 4.3 code practice question 2
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.
What is the full form of MPEG? The full form of MPEG is blank.
Answer:
Moving Picture Experts Group
Explanation:
Answer:
The full form of MPEG is Moving Picture Experts Group.
Explanation:
MPEG is a group of working experts to determine video or audio encoding and transmitting specifications/standards.
Write a program that, given a file name typed by the user, reads the content of the file and determines the highest salary, lowest salary and average salary. The file contains employee records, and each record consists of the hours worked and the hourly rate. The salary is calculated as the product of the hours worked and the hourly rate.
An example of file containing three records is as follows:
10.5 25.0
40.0 30.0
30.9 26.5
Using the pandas packge in python, the program which performs the required calculation goes thus :
file_name = input()
#user types the filename
df = pd.read_csv(file_name, names=['hours_worked', 'rate']
#file is read into a pandas dataframe
df['salary'] = df['hours_worked'] * df['rate']
#salary column is created using the product of rate and hours worked
highest_salary = df['salary'].max()
#the max method returns the maximum value of a series
print('highest_salary)
lowest_salary = df['salary'].min()
#the min method returns the minimum value of a series
print('lowest_salary)
avg_salary = df['salary'].mean()
#the mean method returns the average value of a series
print('avg_salary)
Learn more : https://brainly.com/question/25677416
Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating the number of integers that follow.If the input is:5246810Then the output is:all evenIf the input is:513579
Answer:
uuuuu
Explanation:
Answer:
57677748957394209690369-34064666
Explanation:
The capability of moving a completed programming solution easily from one type of computer to another is known as ________. Group of answer choices
Answer: Portability
Explanation: I hope it helps you!
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
How does a computer work?
Answer:
A computer is a Device that can run multiple applications at a time and access the internet where you can find online stores and more also used to make video calls and more.
Pre-Test: Players on EverQuest II encounter Pizza Hut stores and can even order a pizza in real life using an in-game command. This is an example of
EverQuest II case is an example of a transactional ad.
What is transactional ad?
A transactional advertisement is a method of completing a financial transaction through an advertisement, without the need for the user / buyer to travel to the store.
Why does the example classify as transactional ad?
The EverQuest II case is an example of transactional ad because they implemented a command for players to complete a transaction (the purchase of a pizza) through an in-game command without having to go to the pizza shop.
Learn more about videogames in: https://brainly.com/question/11274464