How does computer hardware and software work together?

Answers

Answer 1

Answer:

Computer software controls computer hardware which in order for a computer to effectively manipulate data and produce useful output I think.

Explanation:


Related Questions

See the lseek_example.c file. Modify the lseek_example.c, such that it reads from an input file (named "start.txt") and will print to an output file (named "end.txt") every (1+3*i)th character, starting from the 1st character in the input file. In other words, it will print the 1st character, then skip 2 characters and print the 4th one, then skip 2 characters and print the 7th one, and so on.
For instance, for input file:
ABCDEFGHIJKLM
It will output:
ADGJM
Iseek_example.c file contant:
// C program to read nth byte of a file and
// copy it to another file using lseek
#include
#include
#include
#include
void func(char arr[], int n)
{
// Open the file for READ only.
int f_read = open("start.txt", O_RDONLY);
// Open the file for WRITE and READ only.
int f_write = open("end.txt", O_WRONLY);
int count = 0;
while (read(f_read, arr, 1))
{
// to write the 1st byte of the input file in
// the output file
if (count < n)
{
// SEEK_CUR specifies that
// the offset provided is relative to the
// current file position
lseek (f_read, n, SEEK_CUR);
write (f_write, arr, 1);
count = n;
}
// After the nth byte (now taking the alternate
// nth byte)
else
{
count = (2*n);
lseek(f_read, count, SEEK_CUR);
write(f_write, arr, 1);
}
}
close(f_write);
close(f_read);
}
// Driver code
int main()
{
char arr[100];
int n;
n = 5;
// Calling for the function
func(arr, n);
return 0;
}

Answers

Answer:

See the lseek_example.c file. Modify the lseek_example.c, such that it reads from an input file (named "start.txt") and will print to an output file (named "end.txt") every (1+3*i)th character, starting from the 1st character in the input file. In other words, it will print the 1st character, then skip 2 characters and print the 4th one, then skip 2 characters and print the 7th one, and so on.

For instance, for input file:

ABCDEFGHIJKLM

It will output:

ADGJM

Iseek_example.c file contant:

// C program to read nth byte of a file and

// copy it to another file using lseek

#include

#include

#include

#include

void func(char arr[], int n)

{

// Open the file for READ only.

int f_read = open("start.txt", O_RDONLY);

// Open the file for WRITE and READ only.

int f_write = open("end.txt", O_WRONLY);

int count = 0;

while (read(f_read, arr, 1))

{

// to write the 1st byte of the input file in

// the output file

if (count < n)

{

// SEEK_CUR specifies that

// the offset provided is relative to the

// current file position

lseek (f_read, n, SEEK_CUR);

write (f_write, arr, 1);

count = n;

}

// After the nth byte (now taking the alternate

// nth byte)

else

{

count = (2*n);

lseek(f_read, count, SEEK_CUR);

write(f_write, arr, 1);

}

}

close(f_write);

close(f_read);

}

// Driver code

int main()

{

char arr[100];

int n;

n = 5;

// Calling for the function

func(arr, n);

return 0;

}

Explanation:

. Which of these perform real-world activities such as eating, sleeping, walking, and running in virtual worlds?

Answers

Answer:

all

Explanation:

Answer:

avatars

Explanation: I just took the test

how to learn python ?

Answers

Answer:

See below.

Explanation:

To learn python programming language, first, you have to know the basic. Surely, you may recognize this function namely print()

print(“Hello, World!”) — output as Hello, World!

First, start with familiarizing yourself with basic function such as print. Then step up with arithmetic and declare or assign variable then list.

Here are example of functions:

1.) print(argument) — If argument is a string (word-typed), make sure to use “” or ‘’ or else it’ll output an error and say the argument is not defined.

print(“Hi, Brainly”) will output Hi, Brainly

print(2+3) will output 5

Numerical data or numbers do not necessarily require “ “ or ‘ ‘

print(3+3) will output 6 but print(“3+3”) will output 3+3 which is now a string.

2.) type(argument) - this tells you which data/argument it is. There are

< class ‘str’ > which is string, meaning it contains “ “ or ‘ ‘< class ‘int’ > which is integer< class ‘float’ > which is decimal (20.0 is also considered as float, basically anything that contains decimal is all float type)< class ‘list’ > which is a list. List is something that contains elements within square brackets [ ]

etc.

Make sure you also do print(type(argument)) as well so it will print out the output.

3.) Arithmetic

+ is addition

Ex. print(1+3) will output 4

   2. - is subtraction

Ex. print(5-4) will output 1

   3. * is multiply

Ex. print(4*5) will output 20

   4. ** is exponent

Ex. print(5**2) will output 25

   5. / is division

Ex. print(6/3) will output 2 — sometimes will output the float type 2.0

   6. % is modulo or remainder

Ex. print(7%2) will output 1

4.) Variables

To assign a variable, use =

An example is:

x = 2

y = 5

print(x+y) will output 7

print(type(x)) will output the < class ‘int’ >

These are examples of what you’ll learn in basic of python - remember, programming depends on experience and always focus on it. Keep practicing and searching will improve your skill at python.

An administrator wants to restrict access to a particular database based upon a stringent set of requirements. The organization is using a discretionary access control model. The database cannot be written to during a specified period when transactions are being reconciled. What type of restriction might the administrator impose on access to the database

Answers

Answer:

Time of the day and object restrictions

Explanation:

From the question, we understand that the database is not allowed to be accessed at a certain period of time.  

Because this has to do with time (period), the administrator will need to set a time of the day object restriction on the database in order to prevent the users from accessing the database objects

User ideas for ro blox? I prefer no numbers or underscores.

Answers

do what the other person said

NO LINKS OR I WILL DELETE YOUR FORTNITE ACCOUNT
What can you do with the free version of the splice editor

Answers

Answer:

can i have ur fortnite account if u hav one and dont use it :) i only say that cuz u mentioned fortnite

Explanation:

with the free version you can add effects (cheap effects) cut the video, crop some parts. and posting leaves a watermark until u buy money

Answer:

It has a 7 day free trial while your using the free version

Explanation:

What Are the Components of a Web Address? *​

Answers

Answer:

What Are the Components of a Web Address?

1.Protocol. The first component of a web address is the protocol, which is also known as the scheme. ...

2.Domain Name. The domain name part of the web address is the unique identifier for the website on the internet. ...

3.Domain Extension. ...

4.Path & Filename.

What is a key consideration when evaluating platforms?

Answers

Answer:

The continuous performance of reliability data integrity will lead to the benefit and profit of the platform's regular structure changes. Cleanliness in the platform whereas addresses the straightforward structure of task performance and adequate data integrity.

Other Questions
What is 3x3/6 because I cant figure it out The total weight of 9 bags of potatoes is 36 kilograms. Each bag weighs the same amount. What is the weight, in grams, of each bag of potatoes? 4 grams 40 grams 400 grams 4,000 grams Someone help me ASAP ! Please choose A, B, C, or D Chris borrowed $1,500 at a simple interest rate of 5% to buy a computer. He plans to have the loan paid back in 2.5 years. How much simple interest will Chris paywork needs to be shown Popular petitions in history The cone and cylinder above have the same radius and height. The volume of the cylinder is 48 cm3. What is the volume of the cone? A. 24 cm3 B. 16 cm3 C. 96 cm3 D. 144 cm3 Which of the following is not provided by either the ACA or CAC? A.) research, recommendations, and surveys related to corrections operationsB.) facility audits with recommendations for changes and improvementsC.) financial support for correctional officers salaries and benefitsD.) manuals and training materials for staff Why should a scientist repeat the same experiment several times before reporting the results?Helpp Briefly describe each of the suns layers. Ill give brainless What will happen to a number, if it was added to its inverse? Renaldo says that parallel lines intersect a circle at oppositeends of the same diameter. If a line is tangent to a circle, thenthe radius of the circle is perpendicular to the line at the point oftangency. Does this fact support Renaldo's conjecture? Explain Describe the types of evidence or concerns that may show that a child is in danger or at risk of harm or abuse. Identify the subject and the complete verb in the sentence.Juanita is not taking Stewart to the prom.A.Subject: JuanitaVerb: is notB.Subject: JuanitaVerb: is not takingC.Subject: JuanitaVerb: is takingD.Subject: StewartVerb: to which vaule is farthest away form 0 on the number line -16, 15.5, |15|, |16.5| find ratio of 13cm : 65m I already asked this question once, but it got deleted so let me be clear. THIS CHOIR AUDITION IS FOR SCHOOL. IT IS AN ACTUAL CLASS THAT GETS GRADED. IT IS FOR ACADEMICS. I have auditions for Symphonic choir coming up soon. I want to sing a BTS song, since it's in a different language, and it'll help my director that I can sing..I just get nervous. I can't figure out a good song. Can someone help me pick a good BTS song to do? My range is from Soprano to Tenor. Please help! Auditions are in 2 months, I have to start practicing. does anyone know the answer to this ? HELP! 9 is what percent of 100 (need to show how I got my answer) Assume that a business has $50000 of current assets and $40000 of current liabilities. What is the companys current ratio?