Answer:
Explanation:
ejhdkl;xs
'
What is the most basic way to create a query?
Assume that at time 5 no system resources are being used except for the processor and memory. Now consider the following events:
At time 5: P1 executes a command to read from disk unit 3.
At time 15: P5’s time slice expires.
At time 18: P7 executes a command to write to disk unit 3.
At time 20: P3 executes a command to read from disk unit 2.
At time 24: P5 executes a command to write to disk unit 3.
At time 28: P5 is swapped out.
At time 33: An interrupt occurs from disk unit 2: P3’s read is complete.
At time 36: An interrupt occurs from disk unit 3: P1’s read is complete.
At time 38: P8 terminates.
At time 40: An interrupt occurs from disk unit 3: P5’s write is complete.
At time 44: P5 is swapped back in.
At time 48: An interrupt occurs from disk unit 3: P7’s write is complete.
For time 37, identify which state each process is in. If a process is blocked, further identify the event on which it is blocked.
Answer:
Follows are the solution to this question:
Explanation:
In Time = 22:
The P5 and P8 are in the ready/running state, and the P1, P3, P7 are into the block state for Input/output.
In Time = 37:
The P1, P3, P8 are in the ready/running state, P5 is in the block state. It suspends or swapped out, and P7 is on the block state for Input/output.
In Time= 47:
The P1, P3, and P5 are in the ready/running state, P7 is on the block state for Input/output, and P8 is in the exit state.
Before inserting a preformatted table of contents, what must you do first?
apply heading styles to text
update the table of contents
navigate to the Review tab and the Table of Contents grouping
navigate to the Insert Table of Contents dialog box
Answer: apply heading styles to text.
Explanation:
3.2 lesson practice edhesive
Answer:
3.2 Question 1
x = float(input("Enter a number: "))
if (x > 45.6):
print("Greater than 45.6")
3.2 Question 2
x = float(input("Enter your grade: "))
if (x >= 90):
print("Great! ")
Explanation:
I hope this works I do not know exactly what you were asking for
Cleary specifying the theme to be used for a site
before building it provides which main advantage:
site navigation
site consistency
O
a clear message
O O O
improved readability
Answer: site consistency
Answer:
B) Site Consistency
Explanation:
What is troubleshooting?
creating a checklist
finding and fixing a problem
scanning for viruses
performing regular maintenance
Create a flowchart designing a solution to the following problem:
Anna has saved $50,000 for a down payment on a house. Your algorithm will ask Anna how much the house she would like to purchase costs (verify that the entered value is at least $10,000 and no more than $1,000,000.) If Anna’s savings is at least 20% of the house cost, provide a message that tells her that she will not have to pay for mortgage insurance. If, however her savings is less than 20%, but more than 10% provide a message that she can still purchase the home but will have to have the insurance. If unfortunately her savings are 10% or less of the home cost provide a message that she is not eligible to purchase the home and tell her the maximum home price she can afford.
Answer:
The question requires the answer as an attachment
Explanation:
I've added the flowchart as an attachment (See attachment for flowchart)
The flowchart follows the sequence and conditions in the question
what are motherboards
Answer:
Explanation:
Motherboard
A motherboard is the main printed circuit board in general-purpose computers and other expandable systems. It holds and allows communication between many of the crucial electronic components of a system, such as the central processing unit and memory, and provides connectors for other peripherals
The trigonometry book says: sin^2(t) + cos^2(t) = 1 Write a Python program that verifies the formula with the help of the Python Math module. Note that the trigonometric functions in the module act on the angles in radians. Your program should perform the following steps 3 times: 1. Pick a random number between 0 and 180 degrees representing an angle in degrees, say Dangle 2. Convert the angle from degrees to radians, say Rangle 3. Use the Math module to find and print the values of sin(Rangle) and cos(Rangle), and 4. Compute and print the value of the above expression: sin^2(Rangle) + cos^2(Rangle). You can then visually verify if the result printed is 1 (or close to it).
Answer:
If you open your python-3 console and execute the following .py code you will have the following output. (Inputing 20 e.g)
Write the angles in degrees: 20
radian angles is: 0.3490658503988659
cosene( 0.3490658503988659 ) = 0.9396926207859084
sine( 0.3490658503988659 ) = 0.3420201433256687
sin^2( 0.3490658503988659 ) + cos^2( 0.3490658503988659 ) = 1.0
Explanation:
Code
import math
for i in range(1,4):
angle = int(input('Write the angles in degrees: '))
#mat library better works with radians
angle_radians = (angle*math.pi)/180
#print output
print('radian angles is: ',angle_radians)
print('cosene(',angle_radians,') = ',math.cos(angle_radians))
print('sine(',angle_radians,') = ',math.sin(angle_radians))
res = (math.sin(angle_radians))**2 + (math.cos(angle_radians))**2
print('sin^2(',angle_radians,') + cos^2(',angle_radians,') = ',res)
PLEASE HURRY!!!
Look at the image below!
Answer:A and E
Explanation:
The last three are strings while the other choices are integers.
Putting ' ' or " " around something makes it a string and the input is asking the user to input a string.
1 // Application contains a starting list of three products for sale2 // The user is prompted for additional items3 // After each new entry, the alphabetically sorted list is displayed4 import java.util.*;5 public class DebugNine36 {7 public static void main(String[] args)8 {9 ArrayListproducts = new ArrayList();10 products.add(shampoo);11 products.add(moisturizer);12 products.add(conditioner);13 Collections.sort(products);14 display(products);15 final String QUIT = "quit";16 String entry;17 Scanner input = new Scanner(System.in);18 System.out.print("\nEnter a product or " + QUIT + " to quit >> ");19 entry = input.nextLine();20 while(entry.equals("quit"))21 {22 products.add(entry);23 Collections.sort(products);24 display()25 System.out.print("\nEnter a product or " + QUIT + " to quit >> ");26 entry = input.nextLine();27 }28 public static void display(ArrayList products)29 {30 System.out.println("\nThe size of the list is " + products.size());31 for(int x = 0; x == products.size(); ++x)32 System.out.println(products.get(x));33 }34 }35//Debugging Exercises, Chapter 9;Java Programming, Joyce Farraell, 8th
Answer:
Here is the corrected code:
import java.util.*;
public class DebugNine36 { //class name
public static void main(String[] args) { //start of main method
ArrayList<String>products = new ArrayList<String>(); //creates an ArrayList of type String names products
products.add("shampoo"); //add shampoo to product array list
products.add("moisturizer"); //add moisturizer product array list
products.add("conditioner"); //add conditioner product array list
Collections.sort(products); //sort the elements in products array list
display(products); //calls display method by passing products array list
final String QUIT = "quit"; //declares a variable to quit the program
String entry; //declares a variable to hold product/element or quit
Scanner input = new Scanner(System.in); //creates Scanner object
System.out.print("\nEnter a product or " + QUIT + " to quit >> "); //prompts user to enter a product or enter quit to exit
entry = input.nextLine(); //reads the entry value from user
while(!entry.equals("quit")) { //loops until user enters quit
products.add(entry); //adds entry (product) to products array list
Collections.sort(products); //sorts the elements in products array list
display(products); //calls display method by passing products arraylist
System.out.print("\nEnter a product or " + QUIT + " to quit >> "); //keeps prompting user to enter a product or enter quit to exit
entry = input.nextLine(); } } //reads the entry value from user
public static void display(ArrayList products) { // method to display the list of products
System.out.println("\nThe size of the list is " + products.size()); //displays the size of the array list named products
for(int x = 0; x < products.size(); ++x) //iterates through the arraylist products
System.out.println(products.get(x)); } } //displays each item/element in products array list
Explanation:
In the code the following statement are corrected:
1.
ArrayListproducts = new ArrayList();
This gave an error: cannot find symbol
This is corrected to :
ArrayList<String>products = new ArrayList<String>();
2.
products.add(shampoo);
products.add(moisturizer);
products.add(conditioner);
Here shampoo moisturizer and conditioner are String type items that are to be added to the products so these strings have to be enclosed in quotation marks.
This is corrected to :
products.add("shampoo");
products.add("moisturizer");
products.add("conditioner");
3.
display();
This method is called without giving any arguments to this method. The method display takes an ArrayList as argument so it should be passed the arraylist products to avoid error that actual and formal argument lists differ in length .
This is corrected to :
display(products);
The screenshot of output is attached.
How does multimedia content enhance a user’s Web browsing experience?
Answer:
hi
Explanation:
89
Answer:
I would say it is more engaging and helps the user remember the content better as multimedia is more memorable than just plain text. It can also display things that plain text is unable to, such as sounds and detailed pictures.
Explanation:
how to unblock a school computer
Answer: use a vpn
Explanation:
go to Explanation:
apponvps
What is one way to calm your feelings before taking
a test?
Answer:
For me I chew gum if avaliable and if it's not I think of something funny
Explanation:
Implement a binary search function in three substantially different programming languages. In each program (identical, except for the programming language), carry out the same 10,000,000 unsuccessful searches for eight different-sized arrays, namely arrays of sizes 128, 512, 2048, 8192, 32768, 131072, 524288, and 2,097,152. Measure in each of the three programs the time it takes to do the 10,000,000 searches for each of the eight arrays. Compare these timings to the theoretical timings the algorithm binary search provides. Are there differences between the three programs? Explain your timings and observations!!
Answer:
The code to this question can be defined as follows:
Explanation:
C language code:
#include <stdio.h>//defining header file
int binarySearch(int x[], int l, int y, int z)//defining method binarySearch that accepts four integer parameter
{
if (y >= l)//defining if block that check r value is greater the l
{
int m= l + (y - l)/2; //defining if block that holds mid value of array
if (x[m] == z)//use if block that check value in array
return m;// return array value
if (x[m] > z) //defining if block that check array value greater then x value
return binarySearch(x, l, m-1, z);//use return keyword to call method
return binarySearch(x, m+1, y, z);// in else it use return keyword to call method
}
return -1;//return value -1
}
int main()//defining main method
{
int x[] = {2, 3, 4, 10, 40};//defining array that hold integer values
int n = sizeof(x)/ sizeof(x[0]);//use n variable to hold its size value
int z = 10;//defining x varaiable that hold integer value
int r= binarySearch(x, 0, n-1, z);//use r varaiable to hold method return value
if(r== -1) //defining if block that check its value equal to -1
printf("Number is not foud in array ");//print message
else
printf("Number is present at %d position", r);//print value
return 0;
}
C++ language code:
#include <iostream>// header file
using namespace std;
int binarySearch(int x[], int l, int y, int z)//defining method binarySearch that accepts four integer parameter
{
if (y >= l)//defining if block that check r value is greater the l
{
int m= l + (y - l)/2; //defining if block that holds mid value of array
if (x[m] == z)//use if block that check value in array
return m;// return array value
if (x[m] > z) //defining if block that check array value greater then x value
return binarySearch(x, l, m-1, z);//use return keyword to call method
return binarySearch(x, m+1, y, z);// in else it use return keyword to call method
}
return -1;//return value -1
}
int main()//defining main method
{
int x[] = {2, 3, 4, 10, 40};//defining array that hold integer values
int n = sizeof(x)/ sizeof(x[0]);//use n variable to hold its size value
int z = 10;//defining x varaiable that hold integer value
int r= binarySearch(x, 0, n-1, z);//use r varaiable to hold method return value
if(r== -1) //defining if block that check its value equal to -1
cout<<"Number is not foud in array ";//print message
else
cout<<"Number is present at position "<< r;//print value
return 0;
}
Python language code:
def binarySearch (a, x, r, y):#defining a method binarySearch
if r >= x:#defining if block that checks r is greater than equal to x
m = x + (r - x)//2#defining m variable that hold mid value
if a[m] == y:#use if that check its input value equal y
return m#return m value
elif a[m] > y:#use array that check its value greaterthan y
return binarySearch(a,x, m-1, y) #use return keyword to call method
else:#defining else block
return binarySearch(a, m+1, r, y)#use return keyword to call method
else: #defining else block
return -1#return value -1
a = [ 2, 3, 4, 10, 40 ]#defining list a that holds value
y = 10#defining integer variable
r = binarySearch(a, 0, len(a)-1, y)#defining r variable that holds method value
if r != -1:#use if that check r is not equal to -1
print ("Number is available at ", r," position")#print value
else:#else block
print ("Number is not available in array")#print message
ASAP 20 Points please hurry
Answer:
All you got to do is type System.out printIn("Study English) etc...
Explanation:
Look at the answer to see if it is right.
sa kumbensiyon naihalal si andres bonofacio bilang
Answer:
the contemporary Supremo (supreme leader) of the Katipunan
The IP address and the port are both numbers. Which statement is true?
A computer has many IP addresses and many ports.
A computer has one IP address and many ports.
A computer has one IP address and one port,
Acomputer has many IP addresses and one port.
Answer:
A computer has one IP address and many ports.
Explanation:
Answer:
A computer has one IP address and many ports.
Explanation:
Select the action that a database does not perform.
Sort and manipulate the data.
Find the average of four numbers.
Update information in more than one place at the same time.
Create data entry forms.
Answer:
the answer is B. find the average of four numbers
Explanation:
The following are basic word processing functions that all students should be able to utilize in their work, EXCEPT:
Group of answer choices
A.) Spell check
B.) Convert to PDF
C.) Printing
D.) References
/ Looks up author of selected books
import java.util.*;
class DebugNine1
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String[][] books = new String[6][2];
books[0][0] = "Ulysses";
books[0][1] = "James Joyce";
books[1][0] = "Lolita"
books[1][1] = "Vladimir Nabokov";
books[2][1] = "Huckleberry Finn";
books[2][1] = "Mark Twain";
books[3][0] = "Great Gatsby";
books[3][2] = "F. Scott Fitzgerald";
books[4][0] = "1984";
books[4][1] = "George Orwell";
books[5][5] = "Sound and the Fury";
books[5][1] = "William Faulkner";
String entry,
shortEntry,
message ="Enter the first three characters of a book title omitting \"A\" or \"The\" ";
int num, x;
boolean isFound = true;
while(!isFound)
{
System.out.println(message);
entry = input.next();
shortEntry = entry.substring(0,3);
for(x = 0; x < books.length; ++x)
if(books[x][0].startsWith(shortEntry))
{
isFound = true;
System.out.println(books[x][x] + " was written by " + books[x][1]);
x = books.length;
}
if(isFound)
System.out.println("Sorry - no such book in our database);
}
}
}
Answer:
What's the question?
Explanation:
Chris would like to adjust an image that he has inserted to give it an older look and feel.
What is the easiest way of doing this?
adjusting contrast and color
adjusting background
applying picture styles
adjusting the size and shape
Answer:
C- applying picture styles
Explanation: ;)
Answer:
applying picture styles
Explanation:
edge/canvas test review
(PYTHON)
Ask the user if they want to multiply two numbers entered from the keyboard. If they type "YES" ask for two numbers and multiply them. What happens if they type Yes, yes, yes, try a few combinations.
I hope this helps! If you have anymore questions, I'll do my best to answer them.
PLEASE HURRY!!
Look at the image below!
The missing word is input. The input function asks the user to enter something and in this case, its asking for the user to enter the x-coordinate of the first point.
Witch of the following involves unethical use of another intellectual property
Answer: the answer is C
hope you have a good day...... <3
Explanation:
You are given the program to support the management of a movie rental place
You are required to perform refactoring on that program to improve its quality. You are encouraged to use refactoring services in IDEs such as Eclipse or IntelliJ.
Then, you are required
1) to add a main() method to test the program; and
2) to add a new method to print the statement for a customer in XML format, e.g., John Smith , Independent Day , etc. Please submit your resulting code
Your solution must at least contain:
1. At least 3 method extraction operations
2. At least 3 creation of 3 new classes
3. At least 3 moving method operations
4. At least 3 renaming operations
Answer:
to add a main loop
Explanation:
What issues will the Internet of Things present to Cybersecurity?
Answer:
The IoT offers new ways for businesses to create value, however the constant connectivity and data sharing also creates new opportunities for information to be compromised. Explore some of the more notable developments in the battle to combat cyber risks.
Explanation:
I hope this helps you. UwU. P.S. Plz mark me Brainlyest
What feature did the 32X add to the Sega Genesis?
Answer:
ngl why would i know this
Explanation:
It allowed the console to run 32-bit cartridges.
list any five feature of drwing toolbar
Line, arrow, rectangle, ellipse, text, vertical text, curve, stars are all possible answers -hope this helped, have a good night!!
Answer:
The tools in this part of the Drawing toolbar are:
Select: selects objects. To select multiple objects click on the top leftmost object and while keeping the mouse button pressed, drag the mouse to the bottom rightmost object of the intended selection. A marching ants rectangle identifying the selection area is displayed. It is also possible to select several objects by pressing the Control button while selecting the individual objects.
Line: draws a straight line.
Arrow: draws a straight line ending with an arrowhead. The arrowhead will be placed where you release the mouse button.
Rectangle: draws a rectangle. Press the Shift button to draw a square.
Ellipse: draws an ellipse. Press the Shift button to draw a circle.
Text: creates a text box with text aligned horizontally.
Vertical text: creates a text box with text aligned vertically. This tool is available only when Asian language support has been enabled in Tools > Options > Language Settings > Languages.
Curve: draws a curve. Click the black triangle for more options, shown below. Note that the title of the submenu when undocked is Lines.
Creating a map of your current knowledge is called __________.
a.
Critical reading
c.
Pre-questioning
b.
Collaborative learning
d.
Concept-mapping
Answer:
d
Explanation:
Creating a map of your current knowledge is called concept-mapping.
We have,
The given statement is,
Creating a map of your current knowledge is called _
Since, A concept map is a visual tool that allows you to organize and represent your knowledge of a particular subject in a structured format.
It is a nonlinear diagram that represents concepts and their interrelationships.
Concept maps are a valuable tool for learning and understanding complex information as they help to link abstract concepts and ideas to concrete examples.
Concept mapping is a way to create a visual representation of your current knowledge of a subject.
This can be done by brainstorming all the concepts that you know about a particular topic, organizing and grouping them, and then linking them together based on their relationships. By doing this, you can identify gaps in your knowledge and focus your learning on areas that you need to improve.
Concept mapping is often used in educational settings as a form of active learning, where students can collaborate and share their knowledge. It is also a useful tool for professionals to organize and present complex information in an easily understandable format.
In summary, concept mapping is a powerful tool for organizing and representing your knowledge of complex information.
It allows you to identify gaps in your knowledge and focus your learning on areas that you need to improve.
Learn more about concept-mapping visit:
https://brainly.com/question/4290933
#SPJ2