Answer:
Arid walu apna v ker luuu
Explanation:
Answer:
hn g
Explanation:
SimpleScalar is an architectural simulator which enables a study of how different pro-cessor and memory system parameters affect performance and energy efficiency.
a. True
b. False
Answer:
a. True
Explanation:
SimpleScalar refers to a computer architectural simulating software application or program which was designed and developed by Todd Austin at the University of Wisconsin, Madison, United States of America. It is an open source simulator written with "C" programming language and it's used typically for modelling virtual computer systems having a central processing unit (CPU), memory system parameters (hierarchy), and cache.
The main purpose of SimpleScalar is to avail developers or manufacturers the ability to compare two computers based on their capacities (specifications) without physically building the two computers i.e using a simulation to show or illustrate that computer B is better than computer A, without necessarily having to physically build either of the two computers.
Hence, it is an architectural simulator which makes it possible to study how different central processing units (CPUs), memory hierarchy or system parameters and cache affect the performance and energy efficiency of a computer system.
Create a script that will determine how many of each currency type are needed to make change for a given amount of dollar and cents. Input Asks the user for a dollar and cents amount as a single decimal number. Output The program should indicate how many of each of these are needed for the given amount: $20 bills $10 bills $5 bills $1 bills Quarters ($0.25 coin) Dimes ($0.10 coin) Nickels ($0.05 coin) Pennies ($0.01 coin) If a dollar or coin is not needed (its quantity required is 0), do not print it.
Answer:
The program in Python is as follows:
dollar = float(input("Dollars: "))
t20bill = int(dollar//20)
dollar -= t20bill * 20
t10bill = int(dollar//10)
dollar -= t10bill * 10
t5bill = int(dollar//5)
dollar -= t5bill * 5
t1bill = int(dollar//1)
dollar-= t1bill * 1
qtr = int(dollar//0.25)
dollar -= qtr * 0.25
dime = int(dollar//0.10)
dollar -= dime * 0.10
nkl = int(dollar//0.05)
dollar -= nkl * 0.05
pny = round(dollar/0.01)
if t20bill != 0: print(t20bill,"$20 bills")
if t10bill != 0: print(t10bill,"$10 bills")
if t5bill != 0: print(t5bill,"$5 bills")
if t1bill != 0: print(t1bill,"$1 bills")
if qtr != 0: print(qtr,"quarters")
if dime != 0: print(dime,"dimes")
if nkl != 0: print(nkl,"nickels")
if pny != 0: print(pny,"pennies")
Explanation:
This gets input for dollars
dollar = float(input("Dollars: "))
Calculate the number of $20 bills
t20bill = int(dollar//20)
Calculate the remaining dollars
dollar -= t20bill * 20
Calculate the number of $10 bills
t10bill = int(dollar//10)
Calculate the remaining dollars
dollar -= t10bill * 10
Calculate the number of $5 bills
t5bill = int(dollar//5)
Calculate the remaining dollars
dollar -= t5bill * 5
Calculate the number of $1 bills
t1bill = int(dollar//1)
Calculate the remaining dollars
dollar-= t1bill * 1
Calculate the number of quarter coins
qtr = int(dollar//0.25)
Calculate the remaining dollars
dollar -= qtr * 0.25
Calculate the number of dime coins
dime = int(dollar//0.10)
Calculate the remaining dollars
dollar -= dime * 0.10
Calculate the number of nickel coins
nkl = int(dollar//0.05)
Calculate the remaining dollars
dollar -= nkl * 0.05
Calculate the number of penny coins
pny = round(dollar/0.01)
The following print the number of bills or coins. The if statement is used to prevent printing of 0
if t20bill != 0: print(t20bill,"$20 bills")
if t10bill != 0: print(t10bill,"$10 bills")
if t5bill != 0: print(t5bill,"$5 bills")
if t1bill != 0: print(t1bill,"$1 bills")
if qtr != 0: print(qtr,"quarters")
if dime != 0: print(dime,"dimes")
if nkl != 0: print(nkl,"nickels")
if pny != 0: print(pny,"pennies")
The function below takes one parameter: an integer (begin). Complete the function so that it prints every other number starting at begin down to and including 0, each on a separate line. There are two recommended approaches for this: (1) use a for loop over a range statement with a negative step value, or (2) use a while loop, printing and decrementing the value each time.
1 - def countdown_trigger (begin):
2 i = begin
3 while i < 0:
4 print(i)
5 i -= 1 Restore original file
Answer:
Follows are code to the given question:
def countdown_trigger(begin):#defining a method countdown_trigger that accepts a parameter
i = begin#defining variable that holds parameter value
while i >= 0:#defining while loop that check i value greater than equal to0
print(i)#print i value
i -= 2 # decreasing i value by 2
print(countdown_trigger(2))#calling method
Output:
2
0
None
Explanation:
In this code, a method "countdown_trigger" is declared, that accepts "begin" variable value in its parameters, and inside the method "i" declared, that holds parameters values.
By using a while loop, that checks "i" value which is greater than equal to 0, and prints "value" by decreasing a value by 2.
Q.No.3 b. (Marks 3)
Explain why change is inevitable in complex systems and give examples (apart from prototyping and incremental delivery) of software process activities that help predict changes and make the software being developed more resilient to change.
Answer:
The change in complex systems can be explained according to the relationship of the environment where the system is implemented.
The system environment is dynamic, which consequently leads to adaptation to the system, which generates new requirements inherent to changes in business objectives and policies. Therefore, changing systems is necessary for tuning and usefulness so that the system correctly supports business requirements.
An example is the registration of the justification of the requirements, which is a process activity that supports changes in the system so that the reason for including a requirement is understood, which helps in future changes
Explanation:
Parts of a computer software
Answer:
I think application software
utility software
networking software
Write a program named HoursAndMinutes that declares a minutes variable to represent minutes worked on a job, and assign a value to it. Display the value in hours and minutes. For example, 197 minutes becomes 3 hours and 17 minutes.'
Answer:
Explanation:
The following code is written in Python, it asks the user for the number of minutes worked. Divides that into hours and minutes, saves the values into separate variables, and then prints the correct statement using those values. Output can be seen in the attached image below.
import math
class HoursAndMinutes:
min = input("Enter number of minutes worked: ")
hours = math.floor(int(min) / 60)
minutes = (int(min) % 60)
print(str(hours) + " hours and " + str(minutes) + " minutes")
What is digital marketing?
Answer:
Digital marketing is the component of marketing that utilizes internet and online based digital technologies such as desktop computers, mobile phones and other digital media and platforms to promote products and services.
Explanation:
places where computer are used
Answer:
Banks and financial.
Business.
Communication.
Defense and military.
Education.
Internet.
Medical.
Transportation.
etc..
Answer:
businesses, schools, colleges, medical offices, banks.
One of your suppliers has recently been in the news. Workers complain of long hours, hot and stuffy workrooms, poor lighting, and even no functioning bathrooms. Some workers are less than 14 years old. Workers are paid 10 cents for each piece they complete, and fast workers are capable of finishing 50 pieces. What is the best way to describe these working conditions?
sweatshop
cottage industry
assembly line
slavery
Answer: sweatshop
Explanation
(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses of Employee. A person has a name, address, phone number, and email address.A student has a class status (freshman, sophomore, junior, or senior). Define the status as a constant. An employee has
Answer:
Explanation:
The following code is written in Java and creates all the classes as requested with their variables, and methods. Each extending to the Person class if needed. Due to technical difficulties I have attached the code as a txt file below, as well as a picture with the test output of calling the Staff class.
the importance of optimizing a code
Answer:
Definition and Properties. Code optimization is any method of code modification to improve code quality and efficiency. A program may be optimized so that it becomes a smaller size, consumes less memory, executes more rapidly, or performs fewer input/output operations.
which optical storage media has greatest storage capacity?
The optical storage media has greatest storage capacity is Single-layer, single-sided Blu-ray disc.
What is the Blu-ray disc.
A Blu-ray disc can store the most information compared to other types of optical discs. A one-sided Blu-ray disc can store around 25 GB of information.
Dual-layer or double-sided discs are discs that have two layers or two sides, which allows them to store more information. New Blu-ray discs with 20 layers can store up to 500 GB of data. Small DVDs can save about 4. 7 GB of data. A DVD that has two layers or can be played on both sides can store up to 8. 5 GB of data. If it is both dual-layer and double-sided, it can hold up to 17 GB of data.
Read more about Blu-ray disc here:
https://brainly.com/question/31448690
#SPJ6
4. What is a motion path?
Answer:
A motion path is basically a CSS module that allows authors to animate any type of graphical object along, what is called a custom path ... Next, you would then animate it along that path just by animating offset - distance, However, authors can choose to rotate it at any particular point using the offset - rotate.
Drag each statement to the correct location.
Determine if the given statements are true or false.
The hexadecimal equivalent
of 22210 is DE
The binary equivalent of
D7 is 11010011
The decimal equivalent of
1316 is 19.
True
False
Answer:
[tex](a)\ 222_{10} = DE_{16}[/tex] --- True
[tex](b)\ D7_{16} = 11010011_2[/tex] --- False
[tex](c)\ 13_{16} = 19_{10}[/tex] --- True
Explanation:
Required
Determine if the statements are true or not.
[tex](a)\ 222_{10} = DE_{16}[/tex]
To do this, we convert DE from base 16 to base 10 using product rule.
So, we have:
[tex]DE_{16} = D * 16^1 + E * 16^0[/tex]
In hexadecimal.
[tex]D =13 \\E = 14[/tex]
So, we have:
[tex]DE_{16} = 13 * 16^1 + 14 * 16^0[/tex]
[tex]DE_{16} = 222_{10}[/tex]
Hence:
(a) is true
[tex](b)\ D7_{16} = 11010011_2[/tex]
First, convert D7 to base 10 using product rule
[tex]D7_{16} = D * 16^1 + 7 * 16^0[/tex]
[tex]D = 13[/tex]
So, we have:
[tex]D7_{16} = 13 * 16^1 + 7 * 16^0[/tex]
[tex]D7_{16} = 215_{10}[/tex]
Next convert 215 to base 2, using division rule
[tex]215 / 2 = 107 R 1[/tex]
[tex]107/2 =53 R 1[/tex]
[tex]53/2 =26 R1[/tex]
[tex]26/2 = 13 R 0[/tex]
[tex]13/2 = 6 R 1[/tex]
[tex]6/2 = 3 R 0[/tex]
[tex]3/2 = 1 R 1[/tex]
[tex]1/2 = 0 R1[/tex]
Write the remainders from bottom to top.
[tex]D7_{16} = 11010111_2[/tex]
Hence (b) is false
[tex](c)\ 13_{16} = 19_{10}[/tex]
Convert 13 to base 10 using product rule
[tex]13_{16} = 1 * 16^1 + 3 * 16^0[/tex]
[tex]13_{16} = 19[/tex]
Hence; (c) is true
Write a Python class that inputs a polynomial in standard algebraic notation and outputs the first derivative of that polynomial. Both the inputted polynomial and its derivative should be represented as strings.
Answer:Python code: This will work for equations that have "+" symbol .If you want to change the code to work for "-" also then change the code accordingly. import re def readEquation(eq): terms = eq.s
Explanation:
PLS HELP SO I CAN PASS WILL GIVE BRAINLINESS AND 30 POINTS
Charlie Chaplin is know for developing
a
The Dramedy
b
Early Special Effects
c
Slap-Stick
d
The Prat-Fall
Question 2 (1 point)
Chaplin felt it was important for the audience to
a
turn off their cellphones during the movie.
b
believe the stunts were real by doing them himself.
c
escape from their problems by avoiding difficult topics.
d
have an emotional connection with the characters.
Question 3 (3 points)
Match the silent film with its modern influence
Column A
1.
Metropolis:
Metropolis
2.
The Kid:
The Kid
3.
Nosferatu:
Nosferatu
Column B
a.Freddy Kruger
b.The Simpsons
c.Sharknado
d.Star Wars
Question 4 (1 point)
How did Nosferatu change the Vampire cannon (story)?
a
Vampires are friendly
b
Vampires can be killed by sunlight
c
Vampires can become invisible
d
Vampires can be repelled by garlic
Question 5 (1 point)
Metropolis was the first film to
a
have religious undertones.
b
use special effects.
c
have humanoid robots.
d
use Gothic Imagery.
movies being the kid , nosferatu , and metropolis
Answer:
a
have religious undertones.
b
use special effects.
c
have humanoid robots.
d
use Gothic Imagery.
Explanation:
function of dobji dzong
Answer:
Dobji is consider to be the first model dzong in Bhutan
d) State any three (3) reasons why users attach speakers to their computer?
Answer:
the purpose of speakers is to produce audio output that can be heard by the listener. Speakers are transducers that convert electromagnetic waves into sound waves. The speakers receive audio input from a device such as a computer or an audio receiver.
Explanation: Hope this helps!
HURRY- I’ll give 15 points and brainliest answer!!
How do you insert text into a presentation??
By selecting text from the insert menu
By clicking in the task pane and entering text
By clicking in a placeholder and entering text
By drawing a text box clicking in it and entering text
(This answer is multiple select)
Answer:
the last one the drawing thingy:)))
What is output? public class MathRecursive { public static void myMathFunction(int a, int r, int counter) { int val; val = a*r; System.out.print(val+" "); if (counter > 4) { System.out.print("End"); } else { myMathFunction(val, r, counter + 1); } } public static void main (String [] args) { int mainNum1 = 1; int mainNum2 = 2; int ctr = 0; myMathFunction(mainNum1, mainNum2, ctr); } }
a) 2 4 8 16 32 End
b) 2 2 2 2 2
c) 2 4 8 16 32 64 End
d) 2 4 8 16 32
Answer:
The output of the program is:
2 4 8 16 32 64 End
Explanation:
See attachment for proper presentation of the program
The program uses recursion to determine its operations and outputs.
The function is defined as: myMathFunction(int a, int r, int counter)
It initially gets the following as its input from the main method
a= 1; r = 2; counter = 0
Its operation goes thus:
val = a*r; 1 * 2 = 2
Print val; Prints 2
if (counter > 4) { System.out.print("End"); } : Not true
else { myMathFunction(val, r, counter + 1); }: True
The value of counter is incremented by 1 and the function gets the following values:
a= 2; r = 2; counter = 1
val = a*r; 2 * 2 = 4
Print val; Prints 4
else { myMathFunction(val, r, counter + 1); }: True
The value of counter is incremented by 1 and the function gets the following values:
a= 4; r = 2; counter = 2
val = a*r; 4 * 2 = 8
Print val; Prints 8
else { myMathFunction(val, r, counter + 1); }: True
The value of counter is incremented by 1 and the function gets the following values:
a= 8; r = 2; counter = 3
val = a*r; 8 * 2 = 16
Print val; Prints 16
else { myMathFunction(val, r, counter + 1); }: True
The value of counter is incremented by 1 and the function gets the following values:
a= 16; r = 2; counter = 4
val = a*r; 16 * 2 = 32
Print val; Prints 32
else { myMathFunction(val, r, counter + 1); }: True
The value of counter is incremented by 1 and the function gets the following values:
a= 32; r = 2; counter = 5
val = a*r; 32 * 2 = 64
Print val; Prints 64
if (counter > 4) { System.out.print("End"); } : True
This prints "End"
So; the output of the program is:
2 4 8 16 32 64 End
Draw a flowchart to compute sum A=10 & B=20
Answer: i add the asnwer
Explanation:
The difference between a dot matrix printer and a line printer
Answer:
please give me brain list and follow
Explanation:
Difference Between Dot Matrix and Line Printer is that Dot-matrix printer produce printed images, they produce image when tine wire pins on a print head mechanism strike an inked ribbon. While Line printer is a type of impact printer which is high-speed and printer an entire line at a time.
Answer:
Difference between Dot Matrix and Line printer is that Dot Matrix printer produce printed images, they produce image when tine wire pins on a print head mechanism strike an inked ribbon. While Line printer ia a type of impact printer which is high speed and printer an entire Line at a time.
Write a Python code that takes two sequences CATCGTCCT and CACCGACCG and prints the point mutations found when aligning the two sequences. Tip: you simply need to write a for loop to go over the length of the sequences, pick a letter from each position,and, compare the two sequences position by position for matches and report the mismatches.
Answer:
Following are the code to the given question:
def match_sequence(s1,s2):#Defining a method match_sequence that accepts two parameters
for l in range(len(s1)):#defining a loop that checks range of s1 value
if(s1[l] != s2[l]): # use if block to match each sequences
print('The sequence does not match at index: ',l+1)#print value with message
s1 = 'CATCGTCCT'#defining a string varible s1
s2 = 'CACCGACCG'#defining a string varible s1
match_sequence(s1,s2)#calling a method that prints its values
Output:
The sequence does not match at index: 3
The sequence does not match at index: 6
The sequence does not match at index: 9
Explanation:
In this code, a method "match_sequence" is declared that takes two string variable "s1 and s2" in its parameters, and inside the method, a loop is declared that checks the range of s1 value and use if block to match each sequence and use a print method that prints it values.
Outside the method, two string variables are declared that holds a string value that passes into the "match_sequence" method and calls it.
Expain how central processing unit function?
Answer:
Answer of CPU
Explanation:
Central Processing Unit (CPU) consists of the following features − CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.
Answer:
A central processing unit (CPU), also called a central processor, main processor or just processor, is the electronic circuitry that executes instructions comprising a computer program.
If a system contains 1,000 disk drives, each of which has a 750,000- hour MTBF, which of the following best describes how often a drive failure will occur in that disk farm:
a. once per thousand years
b. once per century, once per decade
c. once per year, once per month
d. once per week
e. once per day
f. once per hour
g. once per minute
h. once per second
Answer:
once per month
Explanation:
The correct answer is - once per month
Reason -
Probability of 1 failure of 1000 hard disk = 750,000/1000 = 750 hrs
So,
750/24 = 31.25 days
⇒ approximately one in a month.
Write a program that will filter a list of non-negative integers such that all duplicate values are removed. Integer values will come from standard input (the keyboard) and will range in value from 0 up to 2,000,000,000. Input will be terminated by the special value, -1. Once the input is read in you should output (to the screen) the list of numbers as a sorted list (smallest to largest) with one value listed per line where all duplicates have been removed. The primary difficulty with this program is that there are an enormous number of input values and an expected large number of duplicate numbers.
Answer:
The program in python is as follows:
original = []
inp = int(input(": "))
while inp>=0:
if inp<=2000000000:
original.append(inp)
inp = int(input(": "))
newlist = []
for i in original:
if i not in newlist:
newlist.append(i)
newlist.sort()
for i in newlist:
print(i)
Explanation:
This initializes the original list
original = []
This gets input for the list
inp = int(input(": "))
The following loop is repeated while input is not negative
while inp>=0:
This ensures that only inputs from 0 and 2000000000 enters the list
if inp<=2000000000:
original.append(inp)
Prompt the user for another input
inp = int(input(": "))
This initializes a newlist
newlist = []
Iterates through the original list
for i in original:
Check for duplicate
if i not in newlist:
Each number is entered to the new list, without duplicate
newlist.append(i)
This sorts the new list in ascending order
newlist.sort()
This prints the list item one per line
for i in newlist:
print(i)
what is the role of computer in modern problem solving
Answer:
Una computadora es una herramienta muy básica para hacer tareas repetitivas de forma más eficiente. Una computadora no es capaz de analizar un problema y obtener una solución.
Explanation:
3. Write a program to find the area of a triangle using functions. a. Write a function getData() for user to input the length and the perpendicular height of a triangle. No return statement for this function. b. Write a function trigArea() to calculate the area of a triangle. Return the area to the calling function. c. Write a function displayData() to print the length, height, and the area of a triangle ( use your print string) d. Write the main() function to call getData(), call trigArea() and call displayData().
Answer:
The program in C++ is as follows:
#include<iostream>
using namespace std;
void displayData(int height, int length, double Area){
printf("Height: %d \n", height);
printf("Length: %d \n", length);
printf("Area: %.2f \n", Area);
}
double trigArea(int height, int length){
double area = 0.5 * height * length;
displayData(height,length,area);
return area;
}
void getData(){
int h,l;
cin>>h>>l;
trigArea(h,l);
}
int main(){
getData();
return 0;
}
Explanation:
See attachment for complete program where comments are used to explain the solution
Declare a 4 x 5 array called N.
Using for loops, build a 2D array that is 4 x 5. The array should have the following values in each row and column as shown in the output below:
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
Write a subprogram called printlt to print the values in N. This subprogram should take one parameter, an array, and print the values in the format shown in the output above.
Call the subprogram to print the current values in the array (pass the array N in the function call).
Use another set of for loops to replace the current values in array N so that they reflect the new output below. Call the subprogram again to print the current values in the array, again passing the array in the function call.
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4
I really need help with this thanks. (In Python)
Answer:
N = [1,1,1,1,1],
[2,2,2,2,2],
[3,3,3,3,3],
[4,4,4,4,4]
def printIt(ar):
for row in range(len(ar)):
for col in range(len(ar[0])):
print(ar[row][col], end=" ")
print("")
N=[]
for r in range(4):
N.append([])
for r in range(len(N)):
value=1
for c in range(5):
N[r].append(value)
value=value + 1
printIt(N)
print("")
newValue=1
for r in range (len(N)):
for c in range(len(N[0])):
N[r][c] = newValue
newValue = newValue + 1
printIt(N)
Explanation:
:D
Below is the required program of Python.
PythonProgram:
# Array name will be "N".
# Start program
# Defining a function and taking input array
def printIt(ar):
# Using for loop to scan the rows as well as columns of array
for row in range(len(ar)):
for col in range(len(ar[0])):
# Printing the element of array
print(ar[row][col], end=" ")
print("")
# Passing the array N
N=[]
# Again using the loop
for r in range(4):
N.append([])
# Loop to control rows
for r in range(len(N)):
value=1
# Loop to control columns
for c in range(5):
N[r].append(value)
value=value + 1
# Calling the function
printIt(N)
print("")
newValue=1
# Value in row and column
for r in range (len(N)):
for c in range(len(N[0])):
# Assigning the values to the array
N[r][c] = newValue
newValue = newValue + 1
# Printing the array
# End program
printIt(N)
Program code:
Start a program.Defining a function and taking input arrayUsing for loop to scan the rows as well as columns of arrayPrinting the element of arrayAgain using the loop to control rows and columns.Assigning the values to the arrayEnd program.Output:
Find below the attachment of the output of the program code.
Find out more information about Python here:
https://brainly.com/question/26497128
Which statement is correct?
Flat files use foreign keys to uniquely identify tables.
Flat files use foreign keys to secure data.
A foreign key is a primary key in another table.
A foreign key uniquely identifies a record in a table.
Answer:
A foreign key is a primary key in another table.
Explanation: