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
Softa [21]
3 years ago
14

For any element in keysList with a value greater than 60, print the corresponding value in itemsList, followed by a semicolon (n

o spaces). Ex: If keysList = {32, 105, 101, 35} and itemsList = {10, 20, 30, 40}, print: 20;30;
Computers and Technology
2 answers:
nika2105 [10]3 years ago
6 0

Answer:

Below are the python Program for the above question:

Explanation:

keysList =[1,61,68,64]#key list items.

itemsList =[1,2,3,4]#item list items.

for x in range(len(keysList)):#for loop.

   if(keysList[x]>60):#check the value to be greator.

       print(itemsList[x],end=";")#print the value.

Output:

  • The above code will print as "2;3;4;".

Code Explanation:

  • The above code is in python language, in which the first and second line of the code defines a list. That list can be changed by the user when he wants.
  • Then there is a or loop that scans the keylist items and matches the items that it is greater than 60 or not. If it then takes the location and prints the itemlist by the help of that location.
RSB [31]3 years ago
4 0

Answer:

Following are the program in Java language

import java.util.Scanner;  // import package

class Main  // main class

{

public static void main (String [] args)   // main method

{

int k=0; // variable declaration // declaration of variable  

final int size = 4;  // declared the constant variable  

int[] keysList = new int[size];  // declared the array of keysList

int[] itemsList = new int[size];  // // declared the array of itemsList

keysList[0] = 32;  // storing the value in KeysList

keysList[1] = 105;  // storing the value in KeysList

keysList[2] =101;  // storing the value in KeysList

keysList[3] = 35; // storing the value in KeysList

itemsList[0] = 10; // storing the value in itemList

itemsList[1] = 20; // storing the value in itemLis

itemsList[2] = 30; // storing the value in itemLis

itemsList[3] = 40; // storing the value in itemLis

while(k<itemsList.length)  // iterating the loop

{

if(keysList[k]>60)  // check the condition

{

System.out.print(itemsList[k]);  // display the value

System.out.print(";");    //print space

}

k++;  // increment of k by 1

}

}

Output:

20;30;

Explanation:

Following are the description of Program

  • Create a variable "k" and Initialized with "0".
  • Declared a constant variable "size" with the value 4.
  • Declared the array  "keysList"  and " itemsList" also their value will be initialized.
  • After that iterating the while loop and check the condition of keysList array with a value greater than 60 then display the corresponding value in itemsList.
You might be interested in
Which types of attacks are thwarted by complex passwords that are combinations of upper and lower case letters, numbers, and spe
lesantik [10]

The types of attacks that are known to be thwarted by complex passwords that are combinations of upper and lower case letters, numbers, and special characters are said to be Brute Force Attacks.

What is Brute Force Attacks?

This is known to be an attack that is said to be a very  crude type of attack and it is often seen as a brute-force attack.

Note that is one that does not depend on lists of passwords, but it is one that often tries all the  very possible combinations of permitted character types.

Hence, this type of attack was known to be historically seen as ineffective, and it is said to be The types of attacks that are known to be thwarted by complex passwords that are combinations of upper and lower case letters, numbers, and special characters are said to be Brute Force Attacks.

Learn more about Brute Force Attacks from

brainly.com/question/17277433

#SPJ1

3 0
2 years ago
Discussion Topic
BabaBlast [244]

Answer:

Social media positively affects and impacts the process of globalization. ... Global communities is a social infrastructure tool and as social media helps in strengthening social relationships and bringing people and communities together it leads to creating a string global community.

7 0
3 years ago
​Microsoft claims that the microsoft project software can _____.
Lina20 [59]
The Microsoft project software is designed in assisting the project manager in formulating plans, distributing resources to certain tasks, progress monitoring, budget management and analysis of workloads.

I hope I was able to help you. Thank you for posting your question here at Brainly.
8 0
3 years ago
While you are working on your computer, it shuts down unexpectedly, and you detect a burning smell. When you remove the case cov
kumpel [21]

Answer:

fire

Explanation:

hydrant

6 0
3 years ago
The instructions in a program, when expressed in Python, ...
sergejj [24]

Answer:

can only be carried out by computers, as long as an interpreter is available which one is it?

Explanation:

The interperetor needed is called CPython, this is the standard C implementation of the language.

7 0
2 years ago
Other questions:
  • Assume that the classes listed in the Java Quick Reference have been imported where appropriate.
    14·1 answer
  • [PROGRAMMING] A ____ signal indicates that a specific amount of time should pass before an action starts.
    13·1 answer
  • Write a program that reads a list of scores and then assigns grades python
    9·1 answer
  • A packet analyzer is a program that can enable a hacker to do all of the following EXCEPT ________. Select one: A. assume your i
    6·1 answer
  • What is Quantum Cryptography? How is it different from Public and Private-key transactions?
    6·1 answer
  • What happens in the process represented by the flowchart ?
    14·1 answer
  • VEE Physics 2006 E.C
    7·1 answer
  • Why is an increase in tax rate not necessarily increase government revenue​
    10·1 answer
  • What do you consider to be the next big thing in "Small Systems" (technology, hardware, software, etc.) and why?
    10·1 answer
  • Write a program to find the sum of first 10 even numbers in qbasic​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!