1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
max2010maxim [7]
2 years ago
6

7.12 LAB: Even/odd values in a list

Computers and Technology
1 answer:
Korvikt [17]2 years ago
4 0

The odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is zero (0).

<h3>What are even numbers and odd numbers?</h3>

The even numbers can be found in a list because they are divisible by two and the remainder of this equation is always zero (0).

Conversely, odd numbers are those that cannot be divided exactly into exact entire numbers (e.g., 3, 5, etc).

The odd numbers in a list can be calculated by the equation ON (odd numbers): n/2 × [f + g], where 'f' is the first number and 'g' is the last number.

In conclusion, the odd values in a list can be calculated by knowing the first and last number, whereas even numbers can be divided by two and the remainder is 0.

Learn more about odd numbers here:

brainly.com/question/2263958

#SPJ1

You might be interested in
Write a recursive function that returns 1 if an array of size n is in sorted order and 0 otherwise. Note: If array a stores 3, 6
galina1969 [7]

Answer:

The function in C++ is as follows:

int isSorted(int ar[], int n){

if (n == 1 || n == 0){

 return 1;}

if (ar[n - 1] < ar[n - 2]){

 return 0;}

return isSorted(ar, n - 1);}

Explanation:

This defines the function

int isSorted(int ar[], int n){

This represents the base case; n = 1 or 0 will return 1 (i.e. the array is sorted)

if (n == 1 || n == 0){

 return 1;}

This checks if the current element is less than the previous array element; If yes, the array is not sorted

if (ar[n - 1] < ar[n - 2]){

 return 0;}

This calls the function, recursively

return isSorted(ar, n - 1);

}

6 0
3 years ago
Zach wants to learn a programming language to create games and applications. this programming language will also create web appl
Mkey [24]

Answer:

JavaScript is a good option

6 0
4 years ago
Read 2 more answers
After assembling a computer system the very first software to be installed is​
tatyana61 [14]

Answer:

operating system is the very first

after assembling a computer system the very first software to be installed is

8 0
4 years ago
Read 2 more answers
Word provides a quicker way through the
Greeley [361]
You didn't finish your question 

4 0
4 years ago
Describe server processing of a post request. in the case of cgi processing, how does the server pass information to a cgi progr
Aneli [31]

CGI is the part of the Web server that can communicate with other programs running on the server.

<h3>What is The Common Gateway Interface? </h3>

The Common Gateway Interface (CGI) provides middleware between WWW servers and external databases and information sources. The World Wide Web Consortium (W3C) defined the Common Gateway Interface (CGI) and also defined how a program interacts with an HTTP (Hyper Text Transfer Protocol) server.

The body of the message is sent to the CGI program by the server through the stanard input pipe. Using the value of content_length, which indicates the length of the body, the CGI program can parse the input and obtain the values of the data entered by the user.

See more about CGI at brainly.com/question/12972374

#SPJ1

8 0
1 year ago
Other questions:
  • Lief wants to keep the information of his chart, but he doesn’t want it taking up space in his page. What should he select after
    7·2 answers
  • An OU structure in your domain has one OU per department, and all the computer and user accounts are in their respective OUs. Yo
    12·1 answer
  • Will upvote!
    12·1 answer
  • Why do local variables lose their values between calls to the function in which they are
    5·1 answer
  • Which osi layer defines the functions of logical network-wide addressing and routing?
    14·1 answer
  • Software that gives network administrators the ability to provide computer assistance from a central location by allowing them t
    15·1 answer
  • What is the purpose of a transistor?
    13·2 answers
  • Writing the E-mail:
    5·1 answer
  • What is the best description of a raster image?
    10·1 answer
  • A _____ model is one that is automatically adjusted based on changing relationships among variables.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!