Answer:
An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.
Memory Management.
Processor Management.
Device Management.
File Management.
Security.
Control over system performance.
Job accounting.
Error detecting aids.
Write a program that prompts the user to enter the hourly rate, the total consulting time, and whether the person has low income. The program should output the billing amount. Your program must contain a function that takes as input the hourly rate, the total consulting time, and a value indicating whether the person has low income. The function should return the billing amount. Your program may prompt the user to enter the consulting time in minutes.
Answer:
Explanation:
The following program was written in Java. It creates the function as requested and asks the user for all the values as inputs. No proper reason was given for asking for low income so I just added it as a yes or no print statement. The picture below shows the inputs and outputs of the program.
import java.util.ArrayList;
import java.util.Scanner;
class Brainly {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Hourly rate: ");
double rate = in.nextDouble();
System.out.println("Consulting Time in minutes: ");
int consultingTime = in.nextInt();
System.out.println("Low Income? y/n");
String lowIncome = in.next().toLowerCase();
String lowIncomeAnswer;
if (lowIncome.charAt(0) == 'y') {
lowIncomeAnswer = "Yes";
} else {
lowIncomeAnswer = "No";
}
System.out.println("Billing Amount: " + billing(rate, consultingTime, lowIncome));
System.out.println("Low Income: " + lowIncomeAnswer);
}
public static double billing(double rate, int consultingTime, String lowIncome) {
double timeHours = consultingTime / 60;
double billing = rate * timeHours;
return billing;
}
}
A(n) ____ is a central computer that enables authorized users to access networked resources.
A) peripheral
B) server
C) application
D) LAN
Answer:
Server
Explanation:
Server is a central computer that enables authorized users to access networked resources.
Code to be written in python:
Correct answer will be automatically awarded the brainliest!
Since you now have a good understanding of the new situation, write a new num_of_paths function to get the number of ways out. The function should take in a map of maze that Yee Sian sent to you and return the result as an integer. The map is a tuple of n tuples, each with m values. The values inside the tuple are either 0 or 1. So maze[i][j] will tell you what's in cell (i, j) and 0 stands for a bomb in that cell.
For example, this is the maze we saw in the previous question:
((1, 1, 1, 1, 1, 1, 1, 1, 0, 1),
(1, 0, 0, 1, 1, 1, 0, 0, 1, 1),
(0, 1, 1, 1, 0, 0, 1, 1, 1, 0),
(1, 1, 0, 1, 1, 1, 1, 0, 1, 1),
(0, 1, 0, 1, 0, 0, 1, 0, 1, 0),
(1, 0, 1, 1, 1, 1, 0, 1, 1, 1),
(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
(1, 0, 1, 0, 0, 1, 1, 0, 1, 1),
(1, 0, 1, 1, 1, 0, 1, 0, 1, 0),
(1, 1, 0, 1, 0, 1, 0, 1, 1, 1))
Note: You should be using dynamic programming to pass time limitation test.
Hint: You might find the following algorithm useful:
Initialize an empty table (dictionary), get the number of rows n and number of columns m.
Fill in the first row. For j in range m:
2.1 If maze[0][j] is safe, set table[(0, j)] to be 1 because there's one way to go there.
2.2 If maze[0][j] has a bomb, set table[(0, k)] where k >= j to be 0. Since one cell is broken along the way, all following cells (in the first row) cannot be reached.
Fill in the first column. For i in range n:
3.1 If maze[i][0] is safe, set table[(i, 0)] to be 1 because there's one way to go there.
3.2 If maze[i][0] has a bomb, set table[(i, 0)] and all cells under it to be 0. The reason is same as for the first row.
Main dynamic programming procedure - fill in the rest of the table.
If maze[i][j] has a bomb, set table[(i, j)] = 0.
Otherwise, table[(i, j)] = table[(i - 1, j)] + table[(i, j - 1)]
Return table[(n - 1, m - 1)]
Incomplete code:
def num_of_paths(maze):
# your code here
# Do NOT modify
maze1 = ((1, 1, 1, 1, 1, 1, 1, 1, 0, 1),
(1, 0, 0, 1, 1, 1, 0, 0, 1, 1),
(0, 1, 1, 1, 0, 0, 1, 1, 1, 0),
(1, 1, 0, 1, 1, 1, 1, 0, 1, 1),
(0, 1, 0, 1, 0, 0, 1, 0, 1, 0),
(1, 0, 1, 1, 1, 1, 0, 1, 1, 1),
(1, 1, 0, 1, 0, 1, 0, 0, 1, 1),
(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
(1, 0, 1, 0, 0, 1, 1, 0, 1, 1),
(1, 0, 1, 1, 1, 0, 1, 0, 1, 0),
(1, 1, 0, 1, 0, 1, 0, 1, 1, 1))
maze2 = ((1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1))
maze3 = ((1, 0, 1, 1),
(1, 0, 1, 1),
(1, 0, 1, 1),
(1, 0, 1, 1),
(1, 0, 1, 0),
(1, 0, 0, 1))
Test Cases:
num_of_paths(maze1) 2
num_of_paths(maze2) 3003
num_of_paths(maze3) 0
Answer:
def num_of_paths(maze):
# Initialize the table with zeros
n = len(maze)
m = len(maze[0])
table = [[0 for j in range(m)] for i in range(n)]
# Fill in the first row
for j in range(m):
if maze[0][j] == 0:
break
table[0][j] = 1
# Fill in the first column
for i in range(n):
if maze[i][0] == 0:
break
table[i][0] = 1
# Fill in the rest of the table using dynamic programming
for i in range(1, n):
for j in range(1, m):
if maze[i][j] == 0:
table[i][j] = 0
else:
table[i][j] = table[i - 1][j] + table[i][j - 1]
# Return the value in the bottom right corner of the table
return table[n - 1][m - 1]
maze1 = ((1, 1, 1, 1, 1, 1, 1, 1, 0, 1),
(1, 0, 0, 1, 1, 1, 0, 0, 1, 1),
(0, 1, 1, 1, 0, 0, 1, 1, 1, 0),
(1, 1, 0, 1, 1, 1, 1, 0, 1, 1),
(0, 1, 0, 1, 0, 0, 1, 0, 1, 0),
(1, 0, 1, 1, 1, 1, 0, 1, 1, 1),
(1, 1, 0, 1, 0, 1, 0, 0, 1, 1),
(0, 1, 1, 1, 1, 1, 1, 1, 1, 0),
(1, 0, 1, 0, 0, 1, 1, 0, 1, 1),
(1, 0, 1, 1, 1, 0, 1, 0, 1, 0),
(1, 1, 0, 1, 0, 1, 0, 1, 1, 1))
maze2 = ((1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1),
(1, 1, 1, 1, 1, 1, 1, 1, 1))
maze3 = ((1, 0, 1, 1),
(1, 0, 1, 1),
(1, 0, 1, 1),
(1, 0, 1, 1),
(1, 0, 1, 0),
(1, 0, 0, 1))
print(num_of_paths(maze1))
print(num_of_paths(maze2))
print(num_of_paths(maze3))
My code doesn't give me the right output: I have to use the Python input command, and the number could be a decimal fraction, such as 6.5, so I should use floating point numbers?
I need to have a loop that repeats six times, with a routine in the middle of the loop to get the user input as a floating point number and add the number to a sum.
Can someone check it for me?
score_list = [ input("Judge No {} :score ".format(num+1)) for num in range(6)]
int_accumilator :int = 0
for score in score_list:
if(score > 10 ):
print("i only like numbers within the 0-10 range !")
exit()
int_accumilator+= score
print("the average score is ...", int_accumilator/ len(score_list))
Answer:
def get_score(judge_num: int) -> float:
"""
Asks the user for the score of a single judge and returns it.
"""
score = float(input(f"Score for Judge {judge_num}: "))
return score
def calculate_average(scores: list[float]) -> float:
"""
Calculates the average score given a list of scores.
"""
return sum(scores) / len(scores)
# Initialize the total score to 0
total_score = 0
# Initialize an empty list to store the scores of the judges
scores = []
# Loop through each judge
for judge_num in range(1, 7):
# Get the score for the current judge
score = get_score(judge_num)
# Add the score to the total score
total_score += score
# Append the score to the list of scores
scores.append(score)
# Calculate the average score
average_score = calculate_average(scores)
# Print the average score
print(f"The average score is: {average_score:.2f}")
Why does trust usually break down in a designer-client relationship?
A lack of service
B lack of privacy
C lack of communication
D lack of contract
Trust is usually broken down in a designer-client relationship due to a lack of service. Thus, the correct option for this question is A.
How do you end a client relationship?You would end a client relationship by staying calm, rational, and polite. Apart from this, reasons for terminating the relationship, but keep emotion and name-calling out of the conversation.
Follow-up with a phone call. You can start the process with an email, but you should follow up with a phone call in order to talk your client through the process and answer any questions.
But on contrary, one can build trust with clients by giving respect to them, Admit Mistakes and Correct Ethically, listening to them, listening to their words first followed by a systematic response, etc.
Therefore, trust is usually broken down in a designer-client relationship due to a lack of service. Thus, the correct option for this question is A.
To learn more about Client relationships, refer to the link:
https://brainly.com/question/25656282
#SPJ1
Which of the following are numbers and text that do not change unless manually altered?
equal sign
references
constants
mathematical operators
Answer:
constants are numbers and text that do not change unless manually altered.
Answer: c
Explanation:
Complete a program that takes a weight in kilograms as input, converts the weight to pounds, and then outputs the weight in pounds. 1 kilogram = 2.204 pounds (lbs). Ex: If the input is: 10 the output is: 22.040000000000003 lbs Note: Your program must define the function def kilo_to_pounds(kilos)
Hello there!
def kilo_to_pounds(kilos):
____pounds = 2.204 * kilos
____return pounds
kilos = int(input())
print(kilo_to_pounds(kilos), 'lbs')
The program that takes a weight in kilograms as input, converts the weight to pounds, and then outputs the weight in pounds is in the explanation part.
What is programming?The process of carrying out a specific computation through the design and construction of an executable computer programme is known as computer programming.
Here is the completed program in Python:
def kilo_to_pounds(kilos):
pounds = kilos * 2.204
return pounds
# Main program
kilo_input = float(input("Enter weight in kilograms: "))
pounds_output = kilo_to_pounds(kilo_input)
print("Weight in pounds: ", pounds_output)
Thus, the kilo_to_pounds function takes a weight in kilograms as input and converts it to pounds using the conversion factor of 2.204.
For more details regarding programming, visit:
https://brainly.com/question/11023419
#SPJ2
A yellow inspection tag on a scaffold means the scaffold has been inspected and
Answer:CAUTION
Explanation: on edg
Create a program that will do the following:
Until the user types “q” to quit:
Prompt the user for a name
Prompt the user for a product name
Prompt the user for a product price (this can include decimals)
Prompt the user for a quantity of the product purchased
Have the program calculate the total (price * quantity)
Write the values to a comma separated file (Customer Name, Product Name, Price, Quantity, Total)
Could you use
Module Module1
Sub Main()
Answer:
I know it
Explanation:
I will tell later
You are given a design board with four input pins a 4-bit INDATA,
1-bit Load,Enable, and Clock; and one output, a 4-bit OUTDATA.
Build a sequential circuit that contains a register (Don’t forget to
trigger that register by the FALLING edge of the clock, Logisim’s default
is the opposite!).
The register is updated every clock cycle in which Enable is up. If
Load is down, the register is incremented, otherwise it is loaded with the
data asserted on the INDATA pin.
The register data output should be connected with the output pin
OUTDATA.
The steps to Build a sequential circuit that contains a register is given below
The first step is to connect the 4-bit INDATA input to the data input of a 4-bit register.Next, we need to connect the Load and Enable inputs to a multiplexer. The multiplexer will be used to select between the INDATA input and the output of the register.The multiplexer output should be connected to the input of the register.We also need to create an AND gate that will be used to trigger the register on the falling edge of the clock. The AND gate should have the Clock input as well as the Enable input as its inputs.The output of the AND gate should be connected to the clock input of the register.The output of the register should be connected to the OUTDATA output.Create a NOT gate and connect the Load input to it, and connect the output of the NOT gate to one of the multiplexer input.Connect the output of the register to the second input of the multiplexer.What is the design board about?To build a sequential circuit that contains a register, we can use a combination of logic gates, flip-flops, and multiplexers.
In the above way, the register will be updated every clock cycle in which the Enable input is high. If the Load input is low, the multiplexer will select the output of the register and it will be incremented.
Otherwise, the multiplexer will select the INDATA input and the register will be loaded with the data asserted on the INDATA pin. The output of the register will be connected to the OUTDATA output, providing the register data.
Learn more about design board from
https://brainly.com/question/28721884
#SPJ1
Which problem does IPv6 (Internet Protocol version 6) help to solve?
Answer:
Address space exhaustion
Explanation:
IPv6 (Internet Protocol version 6) was introduced in 1995. This model is faster and safer than the previous models due to the modifications done on it.
It was however introduced with the main aim of addressing space exhaustion. IPv4 addresses were already getting scarce and a new model had to be introduced to bridge the gap. IPv4 has billions of addresses however IPv6 has multiples of trillions addresses to take care of current and future needs.
np.arange(5,8,1) what output will be produced?
Answer: [5 6 7]
Explanation: The np.arange takes in three parameters ->start,stop,step.
Hence, since we our range is 5 to 8, incrementing by 1 until we reach 8, giving us a list -> [5,6,7]
What technique is used to store sound waves as binary numbers?
Answer:
Sound waves are analogue and therefore they need to be converted into binary in order for a computer to be able to process them. To do this, the computer must convert the waveform into a numerical representation so that the waveform can be stored digitally. For this, we use an Analogue-to-Digital Convertor (ADC).
Explanation:
The most reliable way to store important files without having to worry about backups or media failure is ____________.
A) cloud storage
B) on a USB flash drive
C) on a hard disk drive
D) on an optical disc
Alexandra went shopping for a new pair of pants. Sales tax where she lives is 5%. The price of the pair of pants is $47. Find the total price including tax. Round to the nearest cent.
Answer:
$49.35
Explanation:
A question to determine your ability to use the reference materials effectively. Your boss has determined that you will be using the CIS-20 Security Controls. He has indicated that your organization must restrict access to client machine's use of wireless so that machines with a vital business purpose can only be allowed on approved wireless networks and not allowed on other wireless networks. His question is this: which Implementation Group does this security control apply toward
Answer:
The answer is "implement on group 2 and group 3".
Explanation:
In the given scenario, When technology workers are using in the project teams. People like to be stable, and we can't allow wireless network transmission to maintain their security and privacy. When we considering category 1 being the only ones who have links to a higher authority, that's why Group 2 and Group 3 were needing to be implemented.
explain the steps to adding a password in Smart Art
Answer:
To add a password to a SmartArt graphic in Microsoft PowerPoint, follow these steps:
Open the PowerPoint presentation containing the SmartArt graphic that you want to add a password to.
Select the SmartArt graphic by clicking on it.
In the ribbon at the top of the window, click the "Format" tab.
In the "Format" tab, click the "Security" button.
In the "Security" dialog box that appears, click the "Password" tab.
In the "Password" tab, enter a password in the "Password" field.
Re-enter the password in the "Confirm password" field to confirm it.
Click the "OK" button to save the password.
Save the presentation. The SmartArt graphic will now be protected with the password that you set. You will need to enter the password to edit or modify the SmartArt graphic.
what hand glove is used to prevent electric shock and why
Answer:
Insulated gloves because their made of synthetic rubber.
Explanation:
Examine the strength of the passwords that you use. How
vulnerable are your passwords to guessing? To brute-force
hacking?
Well nobody can guess my password, and if they were to brute-force hack me they have a 50% chance of finding my password.
how computer user interact with an application programs
Answer:
From the help of graphic user interface
Explanation:
A graphical user interface, or GUI, is used in almost all software programmes. This indicates that the software contains graphical functions that the user can manipulate using a any input device like mouse or keyboard. A software configuration program's graphical user interface (GUI) contains a menu bar, toolbar, tabs, controls, as well as other functions.
"1jaiz4 and 1 more users found this answer helpful" - who the heII is 1jaiz4?
i was the one that rated that answer like waht
Answer:
My suspicioun is that they are fake engagements/profiles created by Brainly to boost the reputability of the answer.
Explanation:
TLDR; it's probably fake
Answer:
most likely a fake pf, its just so that answers can gain credibility.
Explanation:
Read the excerpt below from the play Antigone by Sophocles and answer the question that follows.
ANTIGONE:
I did not think
anything which you proclaimed strong enough
to let a mortal override the gods
and their unwritten and unchanging laws.
They’re not just for today or yesterday,
but exist forever, and no one knows
where they first appeared.
What does the passage reveal about the beliefs of the ancient Greeks?
A. Some believed humans were the ultimate authority.
B. Some believed women were the ultimate authority.
C. Some believed men were the ultimate authority.
D. Some believed the gods were the ultimate authority.
Answer:
D. Some believed the gods were the ultimate authority.
Explanation:
what is primary key? List any two advantage of it.
How do big organizations take back their data to be reviewed after a disaster?
what are the qualitative data items about text book
Answer:
Qualitative data is defined as the data that approximates and characterizes. Qualitative data can be observed and recorded. ... This type of data is collected through methods of observations, one-to-one interviews, conducting focus groups, and similar methods.
4.3 lesson practice phython
Answer:
user input loop
count variable
user input
Explanation:
these are you answers
Code to be written in python:
Correct answer will get brainliest :)
Mr Wu has been going to work every day by taxi for many years. However, the taxi fare has been increasing rather quickly in recent years. Therefore, he is considering driving to work instead. One of the costs for driving is the parking fee. The parking rates of the car park at Mr Wu's workplace are as shown as below:
Weekdays:
$2 per hour between 4am and 7am
$1.20 per half hour between 7am and 6pm
$5 per entry after 6pm
Saturdays:
$2.50 per hour between 4am and 7am
$1.50 per half hour between 7am and 6pm
$7 per entry after 6pm
Sunday: Flat rate of $5 per entry
For all days, there is a grace period of 10 minutes.
The car park opens between 4am and 12 midnight daily. We assume vehicles are magically ejected at midnight.
There is a 10% surcharge on weekdays and a 20% surcharge on Saturdays for vehicles who park for more than 10 hours. There are no surcharges on Sunday.
There is an additional fee of $3 for exiting after 10pm on any day.
Your task is to write a function compute_fee(day, time_in, time_out) that computes the parking fee, where day is an integer between 1 and 7, with 7 representing Sunday, while time_in and time_out are integer values in a 24-hour format - e.g. 700 for 7am and 2359 for 11:59pm. Assume all input is valid.
Below are a few examples of how the fee is calculated:
Example 1: Tuesday, 4:29am to 7:50am.
• 4:29am to 7am is charged as 3 1-hour slots: $2.00 * 3 = $6.00
• 7am to 7:50am is charged as 2 30-minute slots: $1.20 * 2 = $2.40
• Total fee = $6.00 + $2.40 = $8.40
Example 2: Saturday, 7:01am to 7:49pm.
• 7:01am to 6pm is charged as 22 30-minute slots: $1.50 * 22 = $33.00
• 6pm to 7:49pm is charged as one entry: $7.00
• 20% Surcharge for parking more than 10 hours: ($33.00 + $7.00) * 20% = $8.00
• Total fee = $33.00 + $7.00 + $8.00 = $48.00
Example 3: Sunday, 3pm to 10:01pm.
• 3pm to 10:01pm is charged as one entry: $5.00
• Additional fee for exiting after 10pm: $3.00
• Total fee = $5.00 + $3.00 = $8.00
Example 4: Thursday, 11:49pm to 11:59pm.
• Grace period
• Total fee = $0.00
Example 5: Monday, 12pm to 10:01pm.
• 12pm to 6pm is charged as 12 30-minute slots: $1.20 * 12 = $14.40
• 6pm to 10:01pm is charged as one entry: $5.00
• 10% Surcharge for parking more than 10 hours: ($14.40 + $5.00) * 10% = $1.94
• Additional fee for exiting after 10pm: $3.00
• Total fee = $14.40 + $5.00 + $1.94 + $3.00 = $24.34
def compute_fee(day, time_in, time_out):
"""Your code here"""
Test Cases:
compute_fee(2, 429, 750) 8.4
compute_fee(6, 701, 1949) 48
compute_fee(7, 1500, 2201) 8
compute_fee(4, 2259, 2301) 0
compute_fee(1, 1200, 2201) 24.34
Here is the requested Python function that computes the parking fee based on the given information:
2. While Wii was an accessible console that appealed to a broad audience, Zynga made access to video games even easier for everyone by ________ .
a) Shipping a console for free with their game
b) Making their game accessible via the internet, with no need for a console
c) Providing a free downloadable file of the game
d) Shipping their game on every type of cell phone available at that time
Answer:
Making their game accessible via the internet, with no need for a console
Explanation:
They made games like Farmville around this time
8 cosas que hacemos que gastan mucha energia
Q1: Fill in the blanks in each of the following statements: a. The international standard database language is ______________. b. A table in a database consists of ___________and ___________ c. Statement objects return SQL query results as ___________ d. The ___________uniquely identifies each row in a table. e. SQL keyword _________ is followed by the selection criteria that specify the rows to selectin a query. f. SQL keywords ___________specify the order in which rows are sorted in a query. g. Merging rows from multiple database tables is called __________ the tables. h. A(n) ________ is an organized collection of data. i. A(n) ________is a set of columns whose values match the primary-key values of anothertable. j. method _______is used to obtain a Connection to a database. k. Interface ___________helps manage the connection between a Java program and adatabase. l. A(n) ___________object is used to submit a query to a database
Answer:
a. SQL.
b. Rows and columns.
c. ResultSet objects.
d. Primary key.
e. WHERE.
f. ORDER BY.
g. Joining.
h. Database.
i. Foreign key.
j. DriverManager; getConnection ().
k. Connection.
l. Statement.
Explanation:
A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
A structured query language (SQL) can be defined as a domain-specific language designed and developed for managing the various data saved in a relational or structured database.
In Computer programming, any word restricted for use, only in object names because they belong to the SQL programming language are called reserved word.
Some examples of reserved words in structured query language (SQL) are UPDATE, GROUP, CURRENT_USER, CURRENT_DATE, WHERE, CREATE, DELETE, ORDER BY, etc.
Filling in the missing words or texts in the question, we have;
a. The international standard database language is SQL.
b. A table in a database consists of rows and columns.
c. Statement objects return SQL query results as ResultSet objects.
d. The primary key uniquely identifies each row in a table.
e. SQL keyword WHERE is followed by the selection criteria that specify the rows to selectin a query.
f. SQL keywords ORDER BY the order in which rows are sorted in a query.
g. Merging rows from multiple database tables is called joining the tables.
h. A database is an organized collection of data.
i. A foreign key is a set of columns whose values match the primary-key values of another table.
j. DriverManager method, getConnection () is used to obtain a Connection to a database.
k. Interface connection helps manage the connection between a Java program and a database.
l. A statement object is used to submit a query to a database.