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
patriot [66]
2 years ago
6

For any element in keysList with a value smaller than 40, print the corresponding value in itemsList, followed by a comma (no sp

aces).
Ex: If the input is:
32 105 101 35 10 20 30 40
the output is:
10,40,
Ex: If the input is:
39 51 107 60 12 -36 72 54
the output is:
12,
Ex: If the input is:
30 49 70 50 37 68 50 15
the output is:
37,
Ex: If the input is:
61 12 41 59 22 48 -73 106
the output is:
48,
Computers and Technology
1 answer:
givi [52]2 years ago
7 0

Answer:

u look se33y yessir

Explanation:

......................................

You might be interested in
Write the contrapositive of each of the following statements. Healthy plant growth follows from sufficient water. Increased avai
rusak2 [61]

Answer:

Healthy plant growth follows from sufficient water.

Contrapositive: If water is insufficient, then there isn't healthy plant growth

Increased availability of information is a necessary condition for further technological advances

Contrapositive: Absence of further technological advances implies decreased availability of information.

Errors were introduced only if there was a modification of the program.

Contrapositive: If there wasn't any modification of the program then error was not introduced into the program

Fuel savings implies good insulation or storm windows throughout.

Contrapositive: The absence of good insulation or storm windows throughout implies that there is no fuel savings.

Explanation:

A contrapositive statement is formed from a conditional statement as we can see from the answers above.

In a contrapositive statement, we just interchange the hypothesis and the conclusion of the inverse statement.

This implies that, when the converse of the statement is true, then the inverse of the statement is also logically true.

5 0
3 years ago
How much time does a gold chest take to open
MaRussiya [10]

Gold chest takes 8 hours to open or unlock.

<u>Explanation:</u>

Clash royale is a game which has been developed and published with the help of a super cell. It is a video game. Many players can play this game at the same time. In the sense, clash royale is a multi player game.

In this game, the players who are playing the game are awarded with the gold chest. They are also awarded with the gems. In order to unlock or open a gold chest eight hours are needed. Apart from this there is an other way also with which the gold chest can be unlocked. It can be unlocked with the help of forty eight gems.

7 0
3 years ago
Write a C program (doublecopy) that allows a user to extract some part of an existing file (fileSource) and copy it twice to a n
Slav-nsk [51]

Answer:

Check the explanation

Explanation:

#include <stdio.h>

#include <sys/stat.h>

#include <stdlib.h>

#include <fcntl.h>

#include <errno.h>

#include <unistd.h>

extern int errno;

struct stat st;

int main(int argc, char **argv){

  int num1 = atoi(argv[1]); // Getting num1 from user

  int num2 = atoi(argv[2]); // Getting num2 from user

  char *fileSource = argv[3];

  char *fileTarget = argv[4];

 

  int source_fd = open(fileSource, O_RDONLY); // opening the file in read only mode

  int target_fd = open(fileTarget, O_WRONLY | O_CREAT); // opening the target file in Writeonly mode if file is not found it will create

   

  char *ch = (char *) calloc(num2+num1, sizeof(char));

 

  stat(fileSource, &st);

  if(st.st_size < (num1 + num2)){

      printf("File Size is smaller than the specified bytes\n");

      read(source_fd, ch, st.st_size); // reading the file upto the end

      write(target_fd, ch, st.st_size); // write to the file

      write(target_fd, ch, st.st_size); // two times writing to the file

  }else{

      if(lseek(source_fd, (off_t)num1, SEEK_SET) < 0 ) // moving the cursor to after the specified bytes from the start

      {

          printf("Some Error occured while seeking the file");

          return -1;

      }

      read(source_fd, ch, num2); // reading num2 bytes from the source

      write(target_fd, ch, num2); // writing two times to the target

      write(target_fd, ch, num2);

     

  }

 

  return 0;

 

}

1 2 #include <stdio.h> #include <sys/stat.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> 4

The code screenshot and code output are attached below.

3 0
3 years ago
Which technology concept uses computer resources from multiple locations to solve a common problem?
kramer

Answer: Sounds like you are talking about “Distributed memory systems” which use multiple computers to solve a common problem, with computation distributed among the connected computers (nodes) and using message-passing to communicate between the nodes.

8 0
3 years ago
A computer scientist from the 1960's who developed the mouse, computer networking, and used a small musical keyboard to control
PIT_PIT [208]
Steve Jobs im pretty sure
7 0
3 years ago
Other questions:
  • What is zenmap typically used for? how is it related to nmap? describe a scenario in which you would use this type of applicatio
    14·1 answer
  • Encryption Using Rotate Operations Write a procedure that performs simple encryption by rotating each plaintext byte a varying n
    10·1 answer
  • the default name for the small icon that represents a web site or page, and is displayed in the browsers, typically at the begin
    9·1 answer
  • Which element would the search element be compared to first, if abinary search were used on the list above?
    6·1 answer
  • When writing research questions, use action words, such as
    6·2 answers
  • Informed _________ will better manage complexities and enable more efficient manufacturing of goods.
    13·1 answer
  • 2.3 Code Practice: Question 1
    5·1 answer
  • Use a spreadsheet to solve this business problem. The owners of an electronics store want to find which of their products makes
    6·1 answer
  • Explain how mobile phone production could be more sustainable​
    8·2 answers
  • Which of the following is not considered essential for an electronic device to be called a computer?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!