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
The system tray contains _____.
A. the battery life
B. the computer's hard drive
C. the operating system
D. Quick Launch
The notification area (also called the "system tray") is located in the Windows Taskbar, usually at the bottom right corner. It contains miniature icons for easy access to system functions such as antivirus settings, printer, modem, sound volume, battery status, and more.
Answer:
A BATTERY LIFEExplanation: The person said it and it was right I believed them, and they made me get a 100% thank you sir/madam and as you can see, I have proof so your welcome and thank you.I Wouldn't just say the letter like A or C because everyone's quiz is different, and it changes but either way whatever your welcome and again thank you.Why do some computer systems not allow users to activate macros?
O Amacro can be used by only one person.
0 You must close all other programs to run a macro.
O The Word software does not work well with macros.
O Macros can carry viruses that can harm a computer.
how can computers be a threat to public safety??
help asap marking brainiest
In order to send and receive packets in the Internet, hosts require an IP address. What are the 2 ways a host can obtain an IP address
Answer:
Explanation:
An IP address is a 32-bit number. It uniquely identifies a host (computer or other device, such as a printer or router) on a TCP/IP network.
IP addresses are normally expressed in dotted-decimal format, with four numbers separated by periods, such as 192.168.123.132. To understand how subnet masks are used to distinguish between hosts, networks, and subnetworks, examine an IP address in binary notation.
For example, the dotted-decimal IP address 192.168.123.132 is (in binary notation) the 32-bit number 110000000101000111101110000100. This number may be hard to make sense of, so divide it into four parts of eight binary digits.
These 8-bit sections are known as octets. The example IP address, then, becomes 11000000.10101000.01111011.10000100. This number only makes a little more sense, so for most uses, convert the binary address into dotted-decimal format (192.168.123.132). The decimal numbers separated by periods are the octets converted from binary to decimal notation.
For a TCP/IP wide area network (WAN) to work efficiently as a collection of networks, the routers that pass packets of data between networks don't know the exact location of a host for which a packet of information is destined. Routers only know what network the host is a member of and use information stored in their route table to determine how to get the packet to the destination host's network. After the packet is delivered to the destination's network, the packet is delivered to the appropriate host.
For this process to work, an IP address has two parts. The first part of an IP address is used as a network address, the last part as a host address. If you take the example 192.168.123.132 and divide it into these two parts, you get 192.168.123. Network .132 Host or 192.168.123.0 - network address. 0.0.0.132 - host address.
The second item, which is required for TCP/IP to work, is the subnet mask. The subnet mask is used by the TCP/IP protocol to determine whether a host is on the local subnet or on a remote network.
In TCP/IP, the parts of the IP address that are used as the network and host addresses aren't fixed. Unless you have more information, the network and host addresses above can't be determined. This information is supplied in another 32-bit number called a subnet mask. The subnet mask is 255.255.255.0 in this example. It isn't obvious what this number means unless you know 255 in binary notation equals 11111111. So, the subnet mask is 11111111.11111111.11111111.00000000.
Lining up the IP address and the subnet mask together, the network, and host portions of the address can be separated:
11000000.10101000.01111011.10000100 - IP address (192.168.123.132)
11111111.11111111.11111111.00000000 - Subnet mask (255.255.255.0)
The first 24 bits (the number of ones in the subnet mask) are identified as the network address. The last 8 bits (the number of remaining zeros in the subnet mask) are identified as the host address. It gives you the following addresses:
11000000.10101000.01111011.00000000 - Network address (192.168.123.0)
00000000.00000000.00000000.10000100 - Host address (000.000.000.132)
So now you know, for this example using a 255.255.255.0 subnet mask, that the network ID is 192.168.123.0, and the host address is 0.0.0.132. When a packet arrives on the 192.168.123.0 subnet (from the local subnet or a remote network), and it has a destination address of 192.168.123.132, your computer will receive it from the network and process it.
Almost all decimal subnet masks convert to binary numbers that are all ones on the left and all zeros on the right. Some other common subnet masks are:
Decimal Binary 255.255.255.192 1111111.11111111.1111111.11000000 255.255.255.224 1111111.11111111.1111111.11100000
Internet RFC 1878 (available from InterNIC-Public Information Regarding Internet Domain Name Registration Services) describes the valid subnets and subnet masks that can be used on TCP/IP networks.
Hope this helps!
Write a function predict_wait that takes a duration and returns the predicted wait time using the appropriate regression line, depending on whether the duration is below 3 or greater than (or equal to) 3.
The appropriate function which could be used to model the scenario can be written thus ; The program is written in python 3 ;
y = 3x + 3.5
#since no data is given ; using an hypothetical regression equation expressed in slope - intercept format ; where, x = duration and y = Predicted wait time.
def predict_wait(x) :
#initialize a function named predict_wait and takes in a certain duration value, x
y = 3*x + 3.5
#input the x - value into the regression equation to calculate y
return y
#return y
Learn more : https://brainly.com/question/25556810
Choose one piece of information your class can know, but you don’t want to share on your website. Why is it okay for your classmates and teacher to know it, but not to post it publicly?
Answer:
because other people you dont know can see it and it can sometimes not be good
Explanation:
stages of IT revolution
Answer:
Technological revolutions are dissected into three stages:
The introduction stageThe permeation stageThe power stage
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
What is ligma? please someone answers ill give the brainliest.
Answer:
Ligma is just a made-up disease, its not real. Tons of people use that word now for a inappropriate joke, don't fall for it!
Explanation:
The sugma and ligma are the rare diseases cause by the bofa family viruses.
What Sugma and Ligma are related?Sugma and Ligma are both diseases and are related to each other where LIGMA is also known as loose internal gene miaasintits and this is the second stage od BOFA which is biologically offset farkowonian asintits and this diseases interferes with the immune system and it increases the risk of having tuberculosis and if in LIGMA a person enter the BOFA stage.
It is considered as last treatable stage and due to highly weakened immune system the people are most likely to die at this stage but still there is one treatment suggested n this case called as LIGMA balls where as SUGMA is the rarest antibiotic strain resistant of LIGMA virus.
The sugma is non lethal but is contagious and can spread very fast and its great prevention is by awareness of BOFA family viruses s sugma strain can be transferred via both verbal and virtual communication and as it is a rare disease.
Therefore, The sugma and ligma are the rare diseases cause by the bofa family viruses.
Learn more about virus on:
https://brainly.com/question/7480851
#SPJ2
What are the steps to creating a text box? Use the drop-down menus to complete them.
1. Go to the
View
tab on the ribbon.
2. Click
.
3. Select any of the templates shown or
, which will open a blank text box.
4. Position the text box and adjust the text size, font, and color as desired.
Answer: The answers (in order) are
Insert
Text Box
Draw Text Box
Explanation: Just took the test on edgen, November 2021.
What is the best data type for nationality field
Answer:
ISO Alpha-2 (two-letter country code) ISO Alpha-3 (three-letter country code) ISO Numeric (three-digit country code)
What is primary difference between the header section of a document and the body
Answer:
A HTML file has headers and a "body" (payload) — just like a HTTP request. The <body> encapsulates the contents of the document, while the <head> part contains meta elements, i.e., information about the contents. This is (typically) title, encoding, author, styling etc.
Explanation:
CAN I GET BRAINLIEST
Can someone help me explain Nvm scheduling in operating systems?
Low-power and short-latency memory access is critical to the performance of chip multiprocessor (CMP) system devices, especially to bridge the performance gap between memory and CPU
Using WEKA software, answer the following questions based on the Phishing dataset provided.
a) Draw a simple confusion matrix (general one, not from WEKA) of the possible data scenarios for this
Phishing dataset. (0.5 Mark)
b) Draw a table that will outline the Accuracy, Precision, Recall, F-Measure, ROC Area of the following
Rules based algorithms; RIPPER (JRip), PART, and Decision Table (2 Marks)
c) Use Decision Trees algorithms (Random Forest, Random Tree) and Artificial Neural Network
(Multilayer Perceptrol) to compare with the results in part b) above. Do you have better prediction
accuracy with these in this dataset? (2 Marks)
d) What is your conclusion in these experiments pertaining to ML algorithms used? (0.5 Mark)
Answer:
This isn’t a difficult question, its a task
Explanation:
Which device can perform both input and output functions?
Answer:
For instance, a keyboard or computer mouse is an input device for a computer, while monitors and printers are output devices. Devices for communication between computers, such as modems and network cards, typically perform both input and output operations.
Answer:
Modems and network cards, typically perform both input and output operations
what are the main barriers to the adoption of an industry standard for internet system
Answer:
Industry experts say that although many companies find the potential of the Internet of Things very attractive, they either lack a clear value proposition for end-users or lack interoperability.
Describe the two problems that appear in the construction of large programs that led to the development of encapsulation constructs.
Two problems that can lead to the development of encapsulation constructs when creating large programs are the complexity of data and the lack of security in sensitive data.
We can arrive at this answer because:
Encapsulation constructs are designed to prevent data from being invaded by unauthorized person.These constructions must be done without causing inconsistencies in the system, interfering with codes, and increasing the complexity of data. For this reason, large programs that present high complexity and difficult codes, demand the use of encapsulation constructs, so that their data does not become more complex.Encapsulation constructs are also necessary when there are flaws in data security and it is not possible to keep them away from the attack by intruders.Although there are other ways to accomplish these goals, encapsulation constructs are widely used because of their simplicity and efficiency.
More information:
https://brainly.com/question/13438419
A large company pays its salespeople on a commission basis. The salespeople receive $900 per week, plus 8.75 percent of their gross sales for that week. For example, a salesperson who sells $10000 worth of merchandise in a week receives $900 plus 8.75 percent of $10000, or a total of $1775. You have been supplied with a list of the products sold by each salesperson. The values of these products are as follows:
Item Value
1 100
2 200
3 300
4 400
Develop a script that inputs one salesperson’s items sold for last week, calculates the salesperson’s earnings and outputs HTML5 text that displays the salesperson’s earnings.
Answer:
Explanation:
Without proper synchronization, which is possible, a deadlock, corrupted data, neither or both? Give reasons for your answer.
need answer pls
Without proper synchronization, corrupted data is possible due to the fact that a shared datum can be accessible by multiple processes.
Data synchronization simply means the idea of keeping multiple copies of dataset in coherence with one another in order to maintain data integrity. It's the process of having the same data in two or more locations.
Without proper synchronization, corrupted data is possible because a shared datum could be accessed by multiple processes without mutual exclusive access.
Read related link on:
https://brainly.com/question/25640052
camera mount that is worn over the shoulders of a camera operator. What is it called?
Write a program, using case statements, that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output the numbers, the operator, and the result. For division, of the denominator is zero, output an appropriate message.
Answer:#include<iostream>
using namespace std;
int main() {
int var1, var2;
char operation;
cout << "Enter the first number : ";
cin >> var1;
cout << endl;
cout <<"Enter the operation to be perfomed : ";
cin >> operation;
cout << endl;
cout << "Enter the second nuber : ";
cin >> var2;
cout << endl;
bool right_input = false;
if (operation == '+') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 + var2);
right_input = true;
}
if (operation == '-') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 - var2);
right_input = true;
}
if (operation == '*') {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 * var2);
right_input = true;
}
if (operation == '/' && var2 != 0) {
cout << var1 << " " << operation << " " << var2 << " = " << (var1 - var2);
right_input = true;
}
if (operation == '/' && var2 == 0) {
cout << "Error. Division by zero.";
right_input = true;
}
if (!right_input) {
cout << var1 << " " << operation << " " << var2 << " = " << "Error;";
cout << "Invalid Operation!";
}
cout << endl;
system("pause");
return 0;
}
Explanation:
.tag is used to draw a horizontal line
Answer:
<hr> tag.
Explanation:
<hr> tag makes a line along the webpage :)
A programmer will typically write a(n) _____ and pass it to the interpreter. Group of answer choices object method variable script
Answer:
Script
Explanation:
A set of code blocks which is written to solve a particular problem in a certain programming language and passed to the interpreter to run is called a script.
The script is program's body which is made up of codes written in accordance to the syntax of a certain programming language. In other to execute the program written, it has to be passed to the interpreter, which run the script and produces an output.Hence, the set of code written by a programmer is called the script.
Learn more :https://brainly.com/question/14364607
Why does a computer need an operating system?
Answer:
An operating system helps it to manage and run its designed duties.
If it lacks an operating system, it wouldn't be able to work
You are a knowledge engineer and have been assigned the task of developing a knowledge base for an expert system to advise on mortgage loan applications. What are some sample questions you would ask the loan manager at a bank?
As a knowledge engineer, it should be noted that some of the questions that should be asked include:
What do you expect in the loan application process?How is the loan going to be processed?What do you expect from the applicant to fund the loan?A knowledge engineer simply means an engineer that's engaged in the science of building advanced logic into the computer systems.
Since the knowledge engineer has been assigned the task of developing a knowledge base for an expert system to advise on mortgage loan applications, he should asks questions that will be vital for the loan process.
Learn more about engineers on:
https://brainly.com/question/4231170
30th Nov 2020. Difference between Data and Information
Answer:
Data is a collection of unstructured or unorganized facts and figures.
Information is a collection of processed data.
Hope it helps...............the reasons why business processes are necessary in a company
Before knowing why they are necessary, let me explain what a business process is to be clear so you can understand a little bit more before I get to the meat. When a group of people work together to accomplish a certain goal, the process is called a "business process." A participant is assigned a task at each step of a business process. To put it another way, it serves as the foundation for several related concepts such as business progress management and process automation
The importance of a business process.In big firms, having a business process is a must, and the advantages of doing so are immediately apparent. Organizations are made up of processes, which allow them to streamline and maximize the utilization of resources at the same time.
Reasons to have a well-defined business processIdentify which tasks are the most important to your larger business goalsImprove efficiencyStreamline communicationSet approvals to ensure accountability and an optimum use of resourcesPrevent chaos from lurking and lingering in your daily operationsStandardize a set of procedures to complete tasks that really matter to your business and tie it togetherReduction of risks from BPM softwareElimination of redundanciesMinimized costsImproved collaborationImproved productivity so that means more moneyHigher efficiencyHigher complianceAnswer:
Key reasons to have well-defined business processes
Identify what tasks are important to your larger business goals. Improve efficiency. Streamline communication between people/functions/departments. Set approvals to ensure accountability and an optimum use of resources.What is the grooming process as it relates to online predators
the process by which online predators lure in minors to get close enough to hurt them.
What is the best data type for traveling day?
Write a function named parts that will take in as parameters the dimensions of the box (length, width, and height) and the radius of the hole, and returns the volume of material remaining. Assume the hole has been drilled along the height direction. Note: first write the function assuming the hole has radius less than min(length/2, width/2). For full credit, you will need to account for larger radii (bigger than half the length or width of the box).
The function in Python where comments are used to explain each line is as follows:
#This defines the parts() function
def parts(length, width, height, radius):
#This calculates the volume of the box
VBox = length * width * height
#This calculates the volume of the hole
VHole = 3.142 * radius ** 2 * height
#This calculates the remaining volume
Volume = VBox - VHole
#This returns the volume of the remaining material
return Volume
The above program is a sequential program, and it does not require loops, iterations and conditions.
Read more about similar programs at:
https://brainly.com/question/13971394