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
vladimir2022 [97]
3 years ago
9

6. Larger Than n In a program, write a function that accepts two arguments: a list, and a number n. Assume that the list contain

s numbers. The function should display all of the numbers in the list that are greater than the number n.
Computers and Technology
1 answer:
Reika [66]3 years ago
6 0

Answer:

The solution code is written in Python

  1. def largerThanN(myList, n):
  2.    output = ""
  3.    for x in myList:
  4.        if(x > n):
  5.            output += str(x) + " "
  6.    
  7.    print(output)
  8. l = [5, 12, 11, 4, 56, 32]
  9. n = 15
  10. largerThanN(l, n)

Explanation:

Firstly, create a function largerThanN that accepts two arguments, a list (myList) and a number (n) (Line 1).

Next, create a output variable to hold the string of numbers in the list that are greater than the input number n (Line 2).

Create a for loop to traverse through each number in the list and then check if the current x is bigger than n. If so concatenate the x to output string along with a single space " " (Line 4 -6)

After the loop, print the output string (Line 8)

We test the function by using a sample list and n = 15 (Line 10 - 12). The program will display 56 32 .

You might be interested in
The type of power that has the ability to call on connections and networks both inside and outside the organization for support
givi [52]

Answer: c) Connection power

Explanation:

Connection power is the power that is established personally in the field of business.A person having connection with powerful person personally outside or inside the organizational field then he/she can attain the desired goals or result through connecting with them, influencing powerful person's decision, getting their things done etc .

  • Other options are incorrect because association power, information power,coercive power and referent power are the power to establish connection organization to achieved aim.
  • Thus, the correct option is option(c)
5 0
3 years ago
A __________ is a repository of data gathered from operational data and other sources that is designed to serve a particular com
VMariaS [17]
Data Mart is a smaller amount of data that is collected from a data warehouse.
8 0
3 years ago
You are working in a medium-sized company and are trying to convince your boss that you need to enter the global market. Your bo
VARVARA [1.3K]

What is global market and how does digital media play a role in the global market?

Several years back, it took you a couple of months to import products into a country or export goods to a market in another country. Doing so was tasking and only huge trading companies were able to take the risk. The emergence of global marketing involves conceptualizing and then conveying a final product or service worldwide, in different countries. Global marketing is more than just conceptualizing and selling a product worldwide. The whole process involves actual planning, production, placement, and promotion of a company’s product in a worldwide market.  

Digital media has and continues to offer brands greater opportunities than ever before to connect with global audiences. More recently, I.T, and particularly the internet, has shrunk the world further. Consumers can get products in a matter of days just by a click of a mouse button or businesses can have partners half a world away. With almost 2.5 billion active social media users worldwide, it makes sense for brands to find audiences through these channels.

Since the emergence of internet, even small to mid-sized firms are able to reach customers globally. With proper execution, globalization can bring many benefits into your organization.  

1. New Revenue Potential

Taking this business to new global levels will get us access to a much larger base of customers. If everything goes as planned, we will enjoy increased revenues and the company will be exactly the shot of life it needs to take its revenues to new heights.

2. Lower Budgeting Costs  

With a common messaging to be done, our marketing budget will be reduced significantly and will help maintain profit margins.  

3. Ability to Help More and More People.

The solutions this company offers without a doubt has a potential to help customers all over the world improve their lives in some way. It will be able to help an exponentially greater number of people find answers to new challenges this company is able to solve.

Despite having many advantages of global marketing, it begs the question, what is that one challenge the company will face if it moves into a global market? Although we may have internet, nothing is able to beat our personal presence to our prospects and distribution partners. Not to mention the costs related to logistics, at some point, we will have to figure out the costs of doing long distance business in other regions of the world.

There are major disadvantages of global marketing

1. Cultural Barriers

Not every culture will be suitable for the products that our company offers. Crossing these cultural barriers might be cumbersome and very expensive for the company. We might have to adapt to certain rules that govern specific countries.

2. Inventory Management

If we are not careful, huge unused stocks may pile up and this may happen due to under or overestimation of projections or launching in a hurry without proper market research.  

3. Product Customization

We may be required to have a bigger budget that will enable us customize our products. Product customization will take us extra time to implement. Without sufficient marketing, this might be hard to achieve.

7 0
4 years ago
Assign listNodes with all elements with a clasa name prog-lang
ra1l [238]

Using the knowledge in computational language in JAVA it is possible to write a code that Assign listNodes with all elements with a clasa name prog-lang

<h3>Writting in JAVA:</h3>

let listNodes;

 //assigning listNodes with all elements with a class name of 'special-language'

  listNodes = document.getElementsByClassName('special-language');

 //for loop to traverse all node in listNodes and print every element in it with class name special-language

 for (let i = 0; i < listNodes.length; i++) {

     console.log(listNodes[i].innerHTML);

 }

See more about JAVA at brainly.com/question/12975450

#SPJ1

8 0
2 years ago
Write code that uses the input string stream inss to read input data from string userinput, and updates variables usermonth, use
mr Goodwill [35]

Answer:

It will be a java code.

Explanation:

import java.util.Scanner;

public class StringInputStream {

    public static void main (String [] args) {

        Scanner inSS = null;

        String userInput = "Jan 12 1992";

        inSS = new Scanner(userInput);`

        String userMonth = "";

        int userDate = 0;

        int userYear = 0;

        /* Your solution goes here  */

        System.out.println("Month: " + userMonth);

        System.out.println("Date: " + userDate);

        System.out.println("Year: " + userYear);

        return;

   }

}

3 0
4 years ago
Read 2 more answers
Other questions:
  • Assume that circle and objects are created as follows Circle circle = new Circle(1); GeometricObject object = new GeometricObjec
    15·1 answer
  • Overcoming the fundamental attribution error requires making an effort to shift an external attribution into an internal attribu
    15·2 answers
  • Encryption has a remarkably long and varied history. Spies have been using it to convey secret messages ever since there were se
    7·1 answer
  • "You are setting up a new subnetwork on an existing network. Management has asked that you use existing cabling that the company
    14·1 answer
  • In the context of a global information system (GIS), _____ networks offer electronic data interchange standards, encryption, sec
    10·1 answer
  • I think that you can be more stressed out by being the impostor and you can vibe doing task as a crew mate (type your opinion)
    10·2 answers
  • You've just deployed a new Cisco router that connects several network segments in your organization. The router is physically lo
    14·1 answer
  • How is blockchain different from traditional database models?
    12·1 answer
  • What do the last two steps in the cyclical design process most likely involve
    6·1 answer
  • Which two features could be added to a game using an "if () then " block
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!