Answer:
Follows are the code to this question:
#include <stdio.h>// header file
int main()//main method
{
int i,x, y;//declaring integer variable
float result;//declaring flat variable
for(i=0; i<16; i++) //defining foe loop for calculate value
{
x = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value
y = (rand() % (50 - 0 + 1)) + 1;//use x variable for hold random value
result=(float)x/y;//use result variable for calculate value
printf("%.4f\n",result);//print value
}
return 0;
}
Output:
0.2200
0.2857
0.8684
0.7755
2.3000
0.1875
1.0500
1.3043
1.4839
1.2812
4.0000
0.9250
2.5000
1.8000
1.1034
1.1250
Explanation:
In the given code, three integer variable "i,x, and y" one float variable "result" is defined, in which integer variable "x and y" is used in the for loop, that uses the random function input value and in the float variable "result" it divides the value from x to y. This variable uses the typecasting to convert an integer to float and print its value.
ASAP.
13. How do distracters impact your study time? They cause you to lose focus and lose time. They make studying almost impossible. They cause you to lose focus and that results in lower grades. They make you drowsy and distracted.
Answer:
A
Explanation:
You could pick any answer and make a case for it. It depends on what you have been told.
I would pick A but I wouldn't be surprised if the answer isn't the last one.
Why would a user select More Items for mail merge fields? to manually set an IF-THEN logic for the data field to manually change what merge field data is shown to manually select the format of the name in the greeting line to manually select and place additional fields at an insertion point
Answer:to manually select and place additional fields at an insertion point
Explanation:
Answer:
D. to manually select and place additional fields at an insertion point
Explanation:
edg. 2020
3.
State and explain any Three elements of control unit
Answer:
There are two types of control units: Hardwired control unit and Microprogrammable control unit.
Explanation:
The components of this unit are instruction registers, control signals within the CPU, control signals to/from the bus, control bus, input flags, and clock signals.
Answer:
The control unit (CU) is a component of a computer's central processing unit (CPU) that directs the operation of the processor. It tells the computer's memory, arithmetic and logic unit and input and output devices how to respond to the instructions that have been sent to the processor.
The three elements of a control unit are :
Memory or Storage Unit.a control unit.ALU(Arithmetic Logic Unit)Explanation:
Mark brainliest.
Print the two-dimensional list mult_table by row and column. Hint: Use nested loops.
Sample output with input: '1 2 3,2 4 6,3 6 9':
1 | 2 | 3
2 | 4 | 6
3 | 6 | 9
Must be in Python
Answer:
m = int(input("Rows: "))
n = int(input("Columns:= "))
mult_table = []
for i in range(0,m):
mult_table += [0]
for i in range (0,m):
mult_table[i] = [0]*n
for i in range (0,m):
for j in range (0,n):
print ('Row:',i+1,'Column:',j+1,': ',end='')
mult_table[i][j] = int(input())
for i in range(0,m):
for j in range(0,n):
if not j == n-1:
print(str(mult_table[i][j])+" | ", end='')
else:
print(str(mult_table[i][j]), end='')
print(" ")
Explanation:
The next two lines prompt for rows and columns
m = int(input("Rows: "))
n = int(input("Columns:= "))
This line declares an empty list
mult_table = []
The following two iterations initializes the list
for i in range(0,m):
mult_table += [0]
for i in range (0,m):
mult_table[i] = [0]*n
The next iteration prompts and gets user inputs for rows and columns
for i in range (0,m):
for j in range (0,n):
print ('Row:',i+1,'Column:',j+1,': ',end='')
mult_table[i][j] = int(input())
The following iteration prints the list row by row
for i in range(0,m):
for j in range(0,n):
if not j == n-1:
print(str(mult_table[i][j])+" | ", end='')
else:
print(str(mult_table[i][j]), end='')
print(" ")
In this exercise we have to use the knowledge of computational language in python to describe a code, like this:
The code can be found in the attached image.
To make it easier the code can be found below as:
m = int(input("Rows: "))
n = int(input("Columns:= "))
mult_table = []
for i in range(0,m):
mult_table += [0]
for i in range (0,m):
mult_table[i] = [0]*n
for i in range (0,m):
for j in range (0,n):
print ('Row:',i+1,'Column:',j+1,': ',end='')
mult_table[i][j] = int(input())
for i in range(0,m):
for j in range(0,n):
if not j == n-1:
print(str(mult_table[i][j])+" | ", end='')
else:
print(str(mult_table[i][j]), end='')
print(" ")
See more about python at brainly.com/question/26104476
Write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a divisor (denominator). Your program should then divide the numerator by the denominator, and display the quotient followed by the remainder.Hint: If you use division (/) to calculate the quotient, you will need to use int() to remove the decimals. You can also use integer division (// ), which was introduced in Question 10 of Lesson Practice 2.3.Once you've calculated the quotient, you will need to use modular division (%) to calculate the remainder. Remember to clearly define the data types for all inputs in your code. You may need to use float( ) , int( ), and str( ) in your solution.float( ): Anything inputted by a user should be transformed into a float — after all, we are accepting ALL positive numbers, integers and those with decimals.int( ): When you divide the numerator and the divisor using /, make sure that the result is an integer.str( ): After using modular division, you can transform the quotient and remainder back into strings to display the result in the print() command.
Answer:
did you end up getting an answer
Explanation:
What is Napoleon's friend's full name? From the Napoleon Dynamite movie.
His friend's full name was Pedro Sanchez :)
How is the Internet Simulator similar to the Internet?
Answer:
The internet simulator is similar to the internet because it connects multiple independent devices together to create a web of networks. the internet simulator is also not similar to the internet because the internet simulator is much slower than the actual internet because it transmits data bit by bit.
Explanation:
The Internet, as well as the Internet simulator, would be comparable in that they both connect many devices to establish communication. A further explanation is provided below.
Internet Simulator: It seems to be a technology meant to assist learners throughout obtaining practical learning or knowledge in addressing various difficulties associated with interconnected computing devices.Internet: A worldwide networking system that links computers all across the entire globe, is described as the internet.
Thus the above response is correct.
Learn more about the internet here:
https://brainly.com/question/17971707
which team member on a project typically enjoys solving difficult problems? ILL MARK BRAINEST
Answer: the programmer.
Explanation: I did the test you used the picture on
Answer:
whats THE ANSWER IS HER WRONG
Explanation:
The text help readers understand the relationship between gender and sports?THESE PUMPKINS SURE CAN KICK!
Answer:
What's the question?????I don't understand
a researcher is discourage from putting too many words in the research title.why?
1. Why Science and Technology is important in nation-building?
Answer: Technology, science and knowledge are important in modern contemporary society. ... Studies of technology and science provides students with insight into how different processes of knowledge are initiated and progressed, and how innovative technological processes are developed, employed and increase in importance.
Explanation: The role that science and technology has played in improving the life conditions across the globe is vivid, but the benefit has to been harvested maximum by all countries. Science and technology has made life a lot easier and also a lot better with the advancement of medicines and analysis on diseases.
Science and technology play a crucial role in nation-building for several reasons. Firstly, advancements in these fields drive economic growth by fostering innovation, leading to new industries and job opportunities.
Secondly, they improve the overall quality of life through better healthcare, communication, and infrastructure.
Additionally, scientific research and technological developments enhance a nation's global competitiveness and position it as a knowledge-based society.
Moreover, science and technology contribute to addressing societal challenges, such as environmental sustainability and resource management.
Know more about Science and technology:
https://brainly.com/question/1626729
#SPJ5
A file concordance tracks the unique words in a file and their frequencies. Write a program that displays a concordance for a file. The program should output the unique words and their frequencies in alphabetical order. Variations are to track sequences of two words and their frequencies, or n words and their frequencies. Below is an example file along with the program input and output: example.txt I AM SAM I AM SAM SAM I AM
Answer:
Here is the Python program:
filename=input('Enter the file name: ') #prompts to enter file name
file = open(filename,"r+") #opens file in read mode
dict={} #creates a dictionary
for word in file.read().split(): #reads and splits the file and checks each word in the file
if word not in dict: #if word is not already present in dictionary
dict[word] = 1 #sets dict[word] to 1
else: #if word is already in the dictionary
dict[word] += 1 #adds 1 to the count of that word
file.close(); #closes file
for key in sorted(dict): #words are sorted as per their ASCII value
print("{0} {1} ".format(key, dict[key])); #prints the unique words (sorted order) and their frequencies
Explanation:
I will explain the program with an example:
Lets say the file contains the following contents:
I AM SAM I AM SAM SAM I AM
This file is read using read() method and is split into a list using split() method so the file contents become:
['I', 'AM', 'SAM', 'I', 'AM', 'SAM', 'SAM', 'I', 'AM']
for word in file.read().split():
The above for loop checks file contents after the contents are split into a list of words. So if statement if word not in dict: inside for loop checks if each item in the list i.e. each word is not already in dict. It first checks word 'I'. As the dictionary dict is empty so this word is not present in dict. So the statement dict[word] = 1 executes which adds the word 'I' to dict and sets it to 1. At each iteration, each word is checked if it is not present in dictionary and sets its count to 1. This way the words 'I', 'AM' and 'SAM' count is set to 1. Now when 'I' appears again then this if condition: if word not in dict: evaluates to false because 'I' is already present in the dict. So else part executes dict[word] += 1 which adds 1 to the count of this word. So frequency of 'I' becomes 2. Now each time when 'I' in encountered its count is incremented by 1. Since 'I' appears three times so frequency of 'I' is 3.
After all the words are checked and the loop ends, the next for loop for key in sorted(dict): uses sorted method to sort the items in dict in alphabetical order then check each key of the dict and prints the key value along with it frequency. So the output of the entire program is:
AM 3 I 3 SAM 3
The screenshot of program along with its output is attached.
Fill in the blank
What is the output of this program?
age = 4
if age > 5
print("more")
else
print("less")
Output:
age = 4
if age > 5:
print("more")
else:
print("less")
Answer: Less
Explanation: 4 is less than 5, so it will print less. I just tried it out on PyCharm.
You're a ticket agent for a commercial airline and responsible for checking the identification for each passenger before issuing their boarding pass. Due to federal regulations, there is a total of three different forms of ID that can potentially be used. You must determine whether the passenger has the sufficient identification to board the plane or not. Facts: ⢠A passport is enough for a boarding pass ⢠Without a passport, passengers must have two other forms of ID: driver's license birth certificate ⢠If the above two conditions are not met, then they are denied. Input Your solution must take in three boolean inputs. The first input represents whether they have a passport or not. The second input represents whether they have a driver's license or not. The third input represents whether they have a birth certificate or not Output The output should display as a boolean result whether they can board the plane or not. Sample Input Sample output true false false true false true true true false false false false
Answer:
Follows are the code to this question:
import java.util.*;//import package for user input
public class Main //defining class
{
public static void main(String[] as)//main method
{
boolean x,y,z;//defining boolean variable
Scanner ox= new Scanner(System.in);//create Scanner class object for user input
System.out.println("input value: "); //print message
x=ox.nextBoolean();//input value
y=ox.nextBoolean();//input value
z=ox.nextBoolean();//input value
System.out.println("Output: ");//print message
System.out.println(x || (y &&z));//use print method to check value and print its value
}
}
Output:
1)
input value:
true
false
false
Output:
true
2)
input value:
false
true
true
Output:
true
3)
input value:
false
false
false
Output:
false
Explanation:
In the given code, inside the class three boolean variable "x,y, and z" is declared, that uses the scanner class for input the value from the user end, and in the next print, the method is declared, that uses " OR and AND" gate for calculating the input value and print its value.
In the AND gate, when both conditions are true. it will print the value true, and in the OR gate, when one of the conditions is true, it will print the value true.
When collecting digital evidence from a crime scene, often the best strategy for dealing with a computer that is powered on is to:
Options:
a. remove the hard drive
b. transport it while running
c. perform a clean shutdown
d. unplug it
Answer:
d. unplug it
Explanation:
Indeed, unplugging the computer often the best strategy for dealing with a computer that is powered on so to preserve (or collect) digital evidence. By so doing it allows the investigator to safely check through the computer found at the crime scene.
However, if the investigator decides to remove the hard drive or performing a clean shutdown, valuable evidence may be lost as a result. Also, transporting it while running isn't going to be a viable option.
The birthday attacks are called so because we can only have 365 birthdays (oh well, excluding 2/29). So, if there are 366 people in a place at least two of them have the same birthday - thus causing collision(s). Same things happens in hash algorithm. The people in birthday attack is the same thing as
Answer:
The correct approach would be "the input in the hash algorithm".
Explanation:
The value that will also be determined because after value or importance is based seems to be hash. The birthday sometimes used measure the hash would have been the key. The algorithm would have a certain code as well as a pseudocode. Therefore the input upon whom hash would be evaluated is individuals.Xcode, Swift, and Appy Pie are all tools for doing what?
writing code in C#
creating smartphone apps
creating apps to run on a desktop or laptop
writing code in Java
Answer:
creating smartphone apps
Explanation:
Xcode, Swift, and Appy Pie are all tools for creating iOS applications.
These tools are used for app development in the iOS platform which is a rival to the Android platform.
They are used to build the apps from scratch, develop and test them,
Answer:
smart phone apps
Explanation:
If the machine executes 5000 instructions every microsecond (millionth of a second), how many instructions does the machine execute during the time between the typing of two consecutive characters?
Answer:
5*10^9 instructions
Explanation:
Let's apply logic to solve this particular problem.
If 5000 instructions get executed in a millionth of a second, then this means that
5000 instructions gets executed every 1*10^-6 second
5000*10^6 instructions get executed every second, or say
5*10^9 instructions get executed after every second.
Going forward, it isn't stated how long it takes to type two consecutive characters, so will assume it's just 1 second(since it's consecutively).
So, succinctly put, if it takes 1 second to type the two characters consecutively, then the machine executed 5*10^9 instructions. And if it takes 2 seconds to type the two characters, then the machine would have executed 10*10^9 instructions
Lifelong learning ____?
A. stops when your career is over
B. only occurs in a classroom setting
C. begins after you retire
D. can be informal
Answer:
can be informal
Explanation:
just took the Unit Test
Write the letter from D'Artagnan's father that was stolen from D'Artagnan in Meung. Include information about how D'Artagnan's father knows M. de Treville, describe D'Artagnan to M. de Treville, and request what D'Artagnan's father would like M. de Treville to do for D'Artagnan. Minimum 4 sentences.
Answer:
D'Artagnan's father advises him to be guided by his courage and his wits, ... town, but finds that the gentleman has stolen his letter of introduction to M. de Treville. ... D'Artagnan is received into M. de Treville's private chamber. However, before the two can speak, de Treville calls in two of his musketeers, Aramis and Porthos.
Explanation:
After turning the volume all the way up on your speakers on your computer you still cannot hear any sound which of the following should be your next day? Should you replace your system speakers should you try to reinstall your sound card should you unplug your computer and plug it back in or should you check that your sound isn't muted?
Answer:
Shut your computer, and open it again. And if that doesn't work do it again
Explanation: The computer has done this before
What do you use for soaking hands and holding soapy water
Answer:
a bowl
Explanation:
a round, deep dish or basin used for food or liquid.
plz mark brainliest
The European Union requires companies to:
a
erase user data when requested.
b
keep all data open source.
c
never sell data.
d
delete all personal customer data after two years.
Answer:
C is the correct
Explanation:
Give 2 bennifits of expert system
Answer:
Provide answers for decisions, processes and tasks that are repetitive.
Hold huge amounts of information.
Minimize employee training costs.
Centralize the decision making process.
Make things more efficient by reducing the time needed to solve problems.
here are a few
hope it helps : )
THIS IS PYTHON QUESTION
d = math.sqrt(math.pow(player.xcor() - goal.xcor(), 2) + math.pow(player.ycor()-goal.ycor(), 2))
here is the error message that I am getting when I run this using the math module in python: TypeError: type object argument after * must be an iterable, not int
Answer:
ok
Explanation:yes
What order means that the highest numbers will be on top of the column
Answer:
Descending
Explanation:
What was the biggest problem with the earliest version of the internet in the late 1960’s?
Answer:
Explanation:
1.security issue
2. Computers were too big
3. Not very reliable
4. Networks couldn't talk to each other
5. Only be used in universities, governments, and businesses
Was able to solve it by myself. Thank you very much
Answer:
i hope you have a good day :) hehe
Explanation:
What is the World Wide Web?
A.
an information system where each document is linked to all other documents
B.
a large worldwide network of interconnected computers
C.
the collection of all online content you can access from your computer
D.
a worldwide social media network
Answer:
A an information system where each document is linked to all other documents
Jose wants to convert his birth year from digital to binary. Which Python function should Jose use?
O bin(year)
O bin = year
O binary(year)
O digi(year)
The correct python function is bin() therefore,
bin(year) is the correct answer.