Answer:
- 36
Explanation:
-42 + 6 = -36
Mrs. Bautista is kinda broke
Imagine you have a friend who is new to computing. He is not necessarily interested in going into programming, but he would like to know the basics in terms of how computers work, how programs are written, and how computers communicate with each other. You are talking to him about the basics, but he keeps confusing operating systems, programming language, computer language, and markup language. How would you use very plain language to explain to him the differences between these things and how they interact with each other?
An operating system is responsible for the overall function of a computer system and it enables us to program a computer through thes use of a computer language.
What is programming?Programming can be defined as a process through which software developer and computer programmers write a set of instructions (codes) that instructs a software on how to perform a specific task on a computer system.
What is an operating system?An operating system can be defined as a system software that is pre-installed on a computing device, so as to manage computer hardware, random access memory (RAM), software, and all user processes.
Basically, an operating system is responsible for the overall function of a computer system and as such without it, a computer cannot be used for programming. Also, a computer language is typically used for programming while a markup language is a type of computer language that is mainly used for designing websites through the use of tags.
Read more on software here: https://brainly.com/question/26324021
Algorithm:
Suppose we have n jobs with priority p1,…,pn and duration d1,…,dn as well as n machines with capacities c1,…,cn.
We want to find a bijection between jobs and machines. Now, we consider a job inefficiently paired, if the capacity of the machine its paired with is lower than the duration of the job itself.
We want to build an algorithm that finds such a bijection such that the sum of the priorities of jobs that are inefficiently paired is minimized.
The algorithm should be O(nlogn)
My ideas so far:
1. Sort machines by capacity O(nlogn)
2. Sort jobs by priority O(nlogn)
3. Going through the stack of jobs one by one (highest priority first): Use binary search (O(logn)) to find the machine with smallest capacity bigger than the jobs duration (if there is one). If there is none, assign the lowest capacity machine, therefore pairing the job inefficiently.
Now my problem is what data structure I can use to delete the machine capacity from the ordered list of capacities in O(logn) while preserving the order of capacities.
Your help would be much appreciated!
To solve the problem efficiently, you can use a min-heap data structure to store the machine capacities.
Here's the algorithm:Sort the jobs by priority in descending order using a comparison-based sorting algorithm, which takes O(nlogn) time.
Sort the machines by capacity in ascending order using a comparison-based sorting algorithm, which also takes O(nlogn) time.
Initialize an empty min-heap to store the machine capacities.
Iterate through the sorted jobs in descending order of priority:
Pop the smallest capacity machine from the min-heap.
If the machine's capacity is greater than or equal to the duration of the current job, pair the job with the machine.
Otherwise, pair the job with the machine having the lowest capacity, which results in an inefficient pairing.
Add the capacity of the inefficiently paired machine back to the min-heap.
Return the total sum of priorities for inefficiently paired jobs.
This algorithm has a time complexity of O(nlogn) since the sorting steps dominate the overall time complexity. The min-heap operations take O(logn) time, resulting in a concise and efficient solution.
Read more about algorithm here:
https://brainly.com/question/13902805
#SPJ1
the fibonacci sequence begins with 0 and then 1 follows. all subsequent values are the sum of the previous two, ex: 0, 1, 1, 2, 3, 5, 8, 13. complete the fibonacci() function, which has an index n as parameter and returns the nth value in the sequence. any negative index values should return -1. ex: if the input is: 7 the output is: fibonacci(7) is 13 note: use a for loop and do not use recursion.
The fibanocci sequence with the use of a for loop and do not use a recursion .
Program :
def fibonacci(num):
if num < 0:
print("-1")
elif num == 0:
return 0
elif num == 1:
return 1
else:
return fibonacci(num-1) + fibonacci(num-2)
if __name__ == '__main__':
start_number = int(input())
print(f'fibonacci({start_number}) is {fibonacci(start_number)}')
what is a Fibonacci sequence?
The Fibonacci series is a sequence of numbers (also known as Fibonacci numbers) in which each number is the sum of the two numbers before it, with the first two terms being '0' and '1'. The term '0' may have been omitted in earlier versions of the series. A Fibonacci series can thus be written as 0, 1, 1, 2, 3, 5, 8, 13, 21, 34,... As a result, every term can be calculated by adding the two terms preceding it.
Thus the code return the fibanocci series
To know more on fibanocci follow this link:
https://brainly.com/question/29764204
#SPJ4
What is an example of an Internet access problem?
O It takes longer to upload files than to download them.
O It takes a long time to upload and download files.
O Audio files that you get online are quiet when played.
O One type of web browser is faster than another.
B.
it's literally common sense
An example of an Internet access problem is it takes a long time to upload and download files. The correct option is B.
What is the Internet access problem?The internet provides us with information, knowledge, and data that are useful for our personal, social, and economic development. Restarting your modem and router will usually solve a lot of internet problems. It's a simple solution that is always worth a try.
Unplug your power cable for ten seconds, then plug it back in to restart your modem and router. Rebooting the equipment will take a while.
Simple issues like a modem, router, or network cable that is loose or unplugged might occasionally cause an internet connection to drop. Your computer's wireless network interface card can be off if you're connected to a wireless network.
Therefore, the correct option is b. It takes a long time to upload and download files.
To learn more about Internet access, refer to the link:
https://brainly.com/question/7469696
#SPJ2
In a balanced budget, the amount is the amount
In a balanced budget, the Income amount is same as the expense amount.
What is a balanced budget?A balanced budget is one in which the revenues match the expenditures. As a result, neither a fiscal deficit nor a fiscal surplus exist. In general, it is a budget that does not have a budget deficit but may have a budget surplus.
Planning a balanced budget assists governments in avoiding excessive spending and focuses cash on regions and services that are most in need.
Hence the above statement is correct.
Learn more about Budget:
https://brainly.com/question/15683430
#SPJ1
How to protect data in transit Vs rest?
Implement robust network security controls to help protect data in transit. Network security solutions like firewalls and network access control will help secure the networks used to transmit data against malware attacks or intrusions.
If this helps Brainliest please :)
Which are the 2 main elements that’s make up computer architecture?
Answer:
Explanation:
Computer architecture is made up of two main components the Instruction Set Architecture (ISA) and the RTL model for the CPU.
7.8 REQUIRED - LAB 7D: Hailstone sequence
Given a positive integer n, the following rules will always create a sequence that ends with 1, called the hailstone sequence:
If n is even, divide it by 2
If n is odd, multiply it by 3 and add 1 (i.e. 3n +1)
Continue until n is 1
Write a program that reads an integer as input and prints the hailstone sequence starting with the integer entered. Print all the numbers on one line. You can choose whether or not to use a prompt with your input.
Using the knowledge of computational language in python it is possible to describe Write a program that reads an integer as input and prints the hailstone sequence starting with the integer entered.
Writting the code:#take the input n
n=int(input())
#generate the sequence
while n>1:
#print n
print(n,end=" ")
#check if n is odd
if(n%2==1):
n=3*n+1
else:
n=int(n/2)
print(n)
See more about python at brainly.com/question/19705654?
#SPJ1
Choose the correct climate association for: deciduous forest
Answer:
Mid Latitude Climate!
Explanation:
I've studied this! Hope this helps! :)
Answer:
mid-latitude climate
Explanation:
Correct answer on a quiz.
Problem decomposition means
O Fixing the problem
O Solving the problem
O Breaking down tasks into smaller, manageable parts
0 None of the above
PLEASE HELPPPPPP
Answer: Breaking down tasks into smaller, manageable parts
Explanation:
The word decomposition means to break down so Problem decomposition means to break down the problem being faces into smaller parts with the reason being to be able to manage it better.
Some problems are simply too large to handle singularly because of the amount of resources that would have to be devoted. It would be better to break them down into smaller tasks that can then be be confronted one at a time with enough resources to solve them each.
In the negative side of the battery, there are millions and millions of _________.
Answer:
Electrons
Explanation:
Suppose we want to put an array of n integer numbers into descending numerical
order. This task is called sorting. One simple algorithm for sorting is selection sort.
You let an index i go from 0 to n-1, exchanging the ith element of the array with
the maximum element from i up to n. Using this finite set of integers as the input
array {4 3 9 6 1 7 0}:
i. Perform the asymptotic and worst-case analysis on the sorting algorithm
been implemented
i) Time complexity for worst case is O(n^2).
What is asymptotic?
Asymptotic, informally, refers to a value or curve that is arbitrarily close. The term "asymptote" refers to a line or curve that is asymptotic to a given curve. Let be a continuous variable that tends to some limit, to put it more formally.
1) Asymptotic & worst case analysis:
The worst case analysis occur when the array is sorted in decreasing order.
Time Complexity = O(n^2)
Pseudocode:
for(i=0; i<n-1; i++)
{
int min_index = i;
for (j=i+1;, j<n; j++)
{
if(arr[i]<arr[min_index])
{
min_index = j; }
swap(arr[i],arr[min_index]);
}
}
Let n=6
so,
i =[0,1,2,3,4]
j = [1→5,2→5,3→5,4→5,5→5]
Number of iteration:
5,4,3,2,1
General case:
\(\sum^{n-1}_1= 1 + 2 +3 +......+(n-1)\)
\(\sum^{n-1}_1= \frac{n(n-1)}{2}\)
\(= \frac{n^2-n}{2}\)
So, Time complexity = O(n^2).
∴Time complexity for worst case is O(n^2).
Learn more about asymptotic click here:
https://brainly.com/question/28328185
#SPJ1
How could using WellConnect help you with time management and in personal health and wellness?
Answer:
Well Connect help in personal health and wellness
Explanation:
Well Connect is a collaboration of the individuals, and it focused on optimizing the experience of health. Rochester improves healthcare. Well, Connect created. Half of the adults have a physical, mental health condition. Chronic conditions are acute conditions as they cannot be cured. They manage and prevented it. They manage healthcare. Well Connect supports individuals. Well Connect brings the public health community to create a unified system. It is designed to develop relationships with healthcare. Everyone is involved in Well Connect with passion.
When an external device becomes ready to be serviced by the processor the device sends a(n) _________ signal to the processor? A) accessB) haltC) handlerD) interrupt
When an external device becomes ready to be serviced by the processor the device sends a access.
What is processor?
A processor is an integrated electronic circuit that performs the calculations that run a computer. A processor performs arithmetical, logical, input/output (I/O) and other basic instructions that are passed from an operating system (OS). Most other processes are dependent on the operations of a processor.
The terms processor, central processing unit (CPU) and microprocessor are commonly linked as synonyms. Most people use the word “processor” interchangeably with the term “CPU” nowadays, it is technically not correct since the CPU is just one of the processors inside a personal computer (PC).
The Graphics Processing Unit (GPU) is another processor, and even some hard drives are technically capable of performing some processing.
To know more about computer
https://brainly.com/question/614196
#SPJ4
what is the internet good behaviour "netiquette"?
Answer:
The internet good behavior netiquette is a set of guidelines or kind of rules that everyone follow because it's good manners while using the internet.
Take for example, etiquette in real life.
An example of netiquette could be not using all caps when texting because it makes it seem like you're shouting or angry.
Explanation:
Which of the following is the MOST important reason for creating separate users / identities in a cloud environment?
Answer:
Because you can associate with other
Answer:
Explanation:
To avoid cyberbully
What is the binary of the following numbers
10
6
22
12
You can use this table to help you!
Answer:
10 = 00001010
6 = 00000110
22 = 00010110
12 = 00001100
3D graphics are based on vectors stored as a set of instructions describing the coordinates for lines and shapes in a three-dimensional space. What do these vectors form?
a. A bitmap graphic
b. A zipped file
c. A wireframe
d. All of the above
The vectors stored as a set of instructions describing the coordinates for lines and shapes in a three-dimensional space form option C: a wireframe.
What are the 3D graphics?A wireframe may be a visual representation of a 3D question composed of lines and bends that interface a arrangement of focuses in a 3D space. It does not incorporate color or surface data and is frequently utilized as a essential system for making more complex 3D models.
Subsequently, the right reply is choice (c) - a wireframe. option (a) - a bitmap realistic and alternative (b) - a zipped record are not tools as they are not related to the concept of 3D wireframes.
Learn more about 3D graphics from
https://brainly.com/question/27512139
#SPJ1
what is your opinion on the statement "A woman trapped in a mans body.
Answer:
i think it's like the man is back hugging or hugging the woman? or the man is forcefully hugging her while she is trying to escape him.
How would QuickBooks Online alert you of a discrepancy in the beginning balance when reconciling your clients’ accounts?
An alert would have to be made by QuickBooks Online of the discrepancy that is occuring.
How does Quickbook alert work?
QuickBooks alerts are a feature within the QuickBooks accounting software that allows users to set up notifications for various events or situations that require attention. These alerts can be sent via email or within the QuickBooks software itself.
To set up a QuickBooks alert, follow these steps:
Open QuickBooks and navigate to the "Edit" menu.
Click on "Preferences" and select "Reminders" from the left-hand menu.
Check the box next to the type of alert you wish to receive (e.g. overdue invoices, upcoming bills, low inventory).
Read more on quickbook here"
https://brainly.com/question/24441347
#SPJ1
Question 2: Fill in the blanks i. In MS Excel, keyboard shortcut keys to create a new workbook is ii. The extension of a Microsoft Excel file is xx iii. The intersection of a column and a row in a worksheet is called ell dri+x iv. To return frequent value of the cell in a given range, mode function is used. v. Applying a formatting without any criteria is called_normal formatting [5]
It is to be noted tht the words used to fill in the blanks for the MS Excel prompt above are:
i. Ctrl + N
ii. .xlsx
iii. cell
iv. mode
v. default formatting.
What are the completed sentences?
The completed sentences are
i. In MS Excel, keyboard shortcut keys to create a new workbook is "Ctrl + N".
ii. The extension of aMicrosoft Excel file is ".xlsx".
iii. The intersection of a column and a row in a worksheet is called a "cell".
iv. To return the most frequent value of a cell in a given range, the mode function is used.
v. Applying formatting without any criteria is called "default formatting".
Learn more about MS Excel at:
https://brainly.com/question/24749457
#SPJ1
The total number of AC cycles completed in one second is the current’s A.timing B.phase
C.frequency
D. Alterations
The total number of AC cycles completed in one second is referred to as the current's frequency. Therefore, the correct answer is frequency. (option c)
Define AC current: Explain that AC (alternating current) is a type of electrical current in which the direction of the electric charge periodically changes, oscillating back and forth.
Understand cycles: Describe that a cycle represents one complete oscillation of the AC waveform, starting from zero, reaching a positive peak, returning to zero, and then reaching a negative peak.
Introduce frequency: Define frequency as the measurement of how often a cycle is completed in a given time period, specifically, the number of cycles completed in one second.
Unit of measurement: Explain that the unit of measurement for frequency is hertz (Hz), named after Heinrich Hertz, a German physicist. One hertz represents one cycle per second.
Relate frequency to AC current: Clarify that the total number of AC cycles completed in one second is directly related to the frequency of the AC current.
Importance of frequency: Discuss the significance of frequency in electrical engineering and power systems. Mention that it affects the behavior of electrical devices, the design of power transmission systems, and the synchronization of different AC sources.
Frequency measurement: Explain that specialized instruments like frequency meters or digital multimeters with frequency measurement capabilities are used to accurately measure the frequency of an AC current.
Emphasize the correct answer: Reiterate that the current's frequency represents the total number of AC cycles completed in one second and is the appropriate choice from the given options.
By understanding the relationship between AC cycles and frequency, we can recognize that the total number of AC cycles completed in one second is referred to as the current's frequency. This knowledge is crucial for various aspects of electrical engineering and power systems. Therefore, the correct answer is frequency. (option c)
For more such questions on AC cycles, click on:
https://brainly.com/question/15850980
#SPJ8
what is python programming?
Answer:
Explanation:
Python is a popular programming language that lets you work quickly and integrate systems more effectively. It can be used for a wide range of tasks, including web development, data analysis, artificial intelligence, and more. Python is known for its readability and ease of use, making it a great language for beginners to learn. It has a large and supportive community of developers who contribute to its development and provide resources for learning and using the language.
program a macro on excel with the values: c=0 is equivalent to A=0 but if b is different from C , A takes these values
The followng program is capable or configuring a macro in excel
Sub MacroExample()
Dim A As Integer
Dim B As Integer
Dim C As Integer
' Set initial values
C = 0
A = 0
' Check if B is different from C
If B <> C Then
' Assign values to A
A = B
End If
' Display the values of A and C in the immediate window
Debug.Print "A = " & A
Debug.Print "C = " & C
End Sub
How does this work ?In this macro, we declare three integer variables: A, B, and C. We set the initial value of C to 0 and A to 0.Then, we check if B is different from C using the <> operator.
If B is indeed different from C, we assign the value of B to A. Finally, the values of A and C are displayed in the immediate window using the Debug.Print statements.
Learn more about Excel:
https://brainly.com/question/24749457
#SPJ1
Which of the following allows hundreds of computers all to have their outbound traffic translated to a single IP?
Answer: NAT
Which of the following allows hundreds of computers all to have their outbound traffic translated to a single IP? One-to-many NAT allows multiple devices on a private network to share a single public IP address.
The following that allows for hundreds of computers all to have their outbound traffic translated to a single IP is the One-to-many NAT. Option C
How does One-to-many NAT works
One-to-many NAT allows hundreds of computers to have their outbound traffic translated to a single IP this is done by designating each computer to a unique port number, that is used to identify the specific device within the the network address transition NAT, where all private network gain access to public network .
The NAT device serves as translator, keeping track of the original source IP and port number in the translation table, translates the source IP address and port number of each outgoing packet to the single public IP address, This allows for a possible multiple devices to share a single IP address for outbound connections.
Learn more about One-to-many NAT on brainly.com/question/30001728
#SPJ2
The complete question with the options
Which of the following allows hundreds of computers all to have their outbound traffic translated to a single IP?
a. Rewriting
b. Port forwarding
c. One-to-many NAT
d. Preservation
ANSWER ALL QUESTIONS PLEASE HELP ASAP WILL GIVE BRAINLIEST CORRECT ANSWERS ONLYYYY!!!!!!!!
The corrected loop will be:
for number in range(2, 13, 2):
print(number)
What is a loop?A loop is a set of instructions that are repeatedly carried out until a specific condition is met in computer programming. In most cases, a given procedure, such as collecting data and changing it, is followed by a condition check, such as determining whether a counter has reached a predetermined number.
The range function needs to have a starting value of 2 and an ending value of 13, since the ending value is exclusive. The third argument specifies the step size, which should be 2 to only print even numbers. Additionally, the print statement should be indented so that it is part of the for loop.
Learn more about loop on:
https://brainly.com/question/2902510
#SPJ1
As discussed in the chapter, one push by computer manufacturers is making computers run as
efficiently as possible to save battery power and electricity. What do you think is the motivation
behind this trend? Is it social responsibility or a response to consumer demands? Should the energy
consumption of electronic devices be regulated and controlled by the government or another
organization? Why or why not? How responsible should consumers be for energy conservation in
relation to electronic use? In your opinion, what, if anything, should all computer users do to practice
green computing?
The motivation behind making computers run efficiently is likely a combination of social responsibility and consumer demand.
What is the role of customers here?Consumers increasingly prioritize energy efficiency and environmental sustainability in their purchasing decisions, which drives manufacturers to create products that meet those expectations.
While government regulation may help enforce energy consumption standards, it is also important for consumers to take responsibility for their own energy use and make conscious choices to conserve energy when using electronic devices.
Simple actions like adjusting screen brightness and turning off devices when not in use can make a difference in reducing energy consumption. Additionally, manufacturers should continue to prioritize energy efficiency in product design and development.
Read more about computers here:
https://brainly.com/question/28498043
#SPJ1
12.2 question 3 please help
Instructions
Write a method swap_values that has three parameters: dcn, key1, and key2. The method should take the value in the dictionary dcn stored with a key of key1 and swap it with the value stored with a key of key2. For example, the following call to the method
positions = {"C": "Anja", "PF": "Jiang", "SF": "Micah", "PG": "Devi", "SG": "Maria"}
swap_values(positions, "C", "PF")
should change the dictionary positions so it is now the following:
{'C': 'Jiang', 'PF': 'Anja', 'SF': 'Micah', 'PG': 'Devi', 'SG': 'Maria'}
Answer:
def swap_values(dcn, key1, key2):
temp = dcn[key1] # store the value of key1 temporarily
dcn[key1] = dcn[key2] # set the value of key1 to the value of key2
dcn[key2] = temp # set the value of key2 to the temporary value
positions = {"C": "Anja", "PF": "Jiang", "SF": "Micah", "PG": "Devi", "SG": "Maria"}
print("Initial dictionary: ")
print(positions)
swap_values(positions, "C", "PF")
print("Modified dictionary: ")
print(positions)
Explanation:
explain approaches of AI
Answer:
Main AI Approaches
There are three related concepts that have been frequently used in recent years: AI, machine learning, and deep learning.
Enter the cube's edge: 4
The surface area is 96 square units.
Python
Answer:
See the program code below.
Explanation:
def cube_SA(edge):
edge = int(input("Enter the cube's edge: "))
sa = edge * edge * 6
print("The surface area is {} square units".format(sa))
cube_SA(4)
Best Regards!
In this exercise we have to use the computer language knowledge in python to write the code.
This code can be found in the attachment.
So we have what the code in python is:
def cube_SA(edge):
edge = int(input("Enter the cube's edge: "))
sa = edge * edge * 6
print("The surface area is {} square units".format(sa))
cube_SA(4)
See more about python at brainly.com/question/18502436