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
Fed [463]
2 years ago
7

Hey there! What would be the best way for me to learn Lua script? As well as learn Data Store, and other stuff. Thanks! Brainly

won't let me say what it is for.
Computers and Technology
1 answer:
Alla [95]2 years ago
7 0

Answer:

You can play it

Explanation:

There's courses you can take of it, or you can play the experience called Lua Learning

You might be interested in
Fill in the function shopSmart(orders,shops) in shopSmart.py, which takes an orderList (like the kind passed in to FruitShop.get
ira [324]

Answer:

def shopSmart(orderList, fruitShops):  #function definition

   shop = fruitShops[0] #sets the shop to first item of fruitShops list

   leastAmount = shop.getPriceOfOrder(orderList)  #passes the orderList to getPriceOfOrder method which returns the total cost and saves it to leastAmount

   for fruitshop in fruitShops[1:]:  #iterates through the shops in fruitShops list

    cost = fruitshop.getPriceOfOrder(orderList)  #checks each cost or order using getPriceOfOrder method and passing orderList to it

    if cost < leastAmount:  #checks where order costs the least amount in total

     shop = fruitshop  #sets the FruitShop where order costs the least amount in total

     leastAmount = cost  #sets that minimum of order cost to leastAmount

   return shop #returns the FruitShop where order costs the least amount in total

Explanation:

Here are the getPriceOfOrder() and getName()) methods that is used in the above method.

def getPriceOfOrder(self, orderList):        

       totalCost = 0.0              

       for fruit, numPounds in orderList:

           costPerPound = self.getCostPerPound(fruit)

           if costPerPound != None:

               totalCost += numPounds * costPerPound

       return totalCost

def getName(self):

       return self.name

Here is the main program:

orders = [('apples',1.0), ('oranges',3.0)]

dir1 = {'apples': 2.0, 'oranges':1.0}

shop1 =  shop.FruitShop('shop1',dir1)

dir2 = {'apples': 1.0, 'oranges': 5.0}

shop2 = shop.FruitShop('shop2',dir2)

shops = [shop1, shop2]

print("For orders ", orders, ", the best shop is", shopSmart(orders, shops).getName())

orders = [('apples',3.0)]

print("For orders: ", orders, ", the best shop is", shopSmart(orders, shops).getName())

Notice that the statement:

print("For orders ", orders, ", the best shop is", shopSmart(orders, shops).getName())

has orders list which is:

[('apples',1.0), ('oranges',3.0)]

and it has shops which is a list containing two shops:

shops = [shop1, shop2]

It also calls method shopSmart by passing orders and these two shops to get the shop where the order costs the least amount in total. It has a for loop that iterates through each shop and check the orders using getPriceOfOrder method to determine at which shop the order costs the least amount in total. When the least amount is found it is set to the variable leastAmount and the shop corresponding to this order which has least amount is set to shop variable. At the end this shop is returned by the function. getName() method is used in the main program to get the name of the shop with least amount of order cost. So above print statement gives the following output:

For orders  [('apples', 1.0), ('oranges', 3.0)] , the best shop is shop1    

The entire program along with its output is attached.                                

8 0
4 years ago
Which instructions are used to change the sequence of instruction execution? group of answer choices data movement operate contr
Sladkaya [172]

Control instructions stand used to change the sequence of instruction execution.

<h3>What is Control instructions?</h3>

Program Control Instructions exist the machine code that exists utilized by the machine or in assembly language by the user to command the processor to act accordingly. The control statements utilized in the C language allow a user to specify a program control's flow. In simpler phrases, the control statements help users specify the order of execution of the instructions present in a program.

Flow control instructions stand used to divert the flow of the program. These instructions are used to execute loops and subroutine calls. The basic instruction is the Branch. Conditional affixes can be counted to the Branch instructions to enable choices. Instruction execution stands for the process by which a computer retrieves a program instruction from its memory, decides what actions the instruction dictates, and brings out those actions.

Hence, Control instructions stand used to change the sequence of instruction execution.

To learn more about Control instructions refer to:

brainly.com/question/26386412

#SPJ4

7 0
2 years ago
Help mah!!! T^T please and thank you mate
Strike441 [17]

Answer:

It might be Output: I0 ..

I did searched but all I found is "An input/output statement or IO statement is a portion of a program that instructs a computer how to read and process information. It pertains to gather information from an input device, or sending information to an output device. Input, Output, Programming terms."  Srry if it wrong ;-; but have a good day! ^^'

-<em>thatLilWeeb</em>

4 0
4 years ago
Read 2 more answers
In certain programming languages, comments appear between delimiters such as /# and #/. Let C be the language of all valid delim
geniusboy [140]

Answer:

The DFA and regular expression is given in the attached file.

Explanation:

               

Download docx
8 0
4 years ago
What are credit card APR rates based on?
Furkat [3]
APR is based on what your bank would call credit worthiness.
3 0
3 years ago
Read 2 more answers
Other questions:
  • Write a Tip Calculator in code in VMware Fusion
    13·1 answer
  • Commands are organized into tabs on the A. Ribbon. B. Quick Access toolbar. C. Status bar. D. ruler.
    13·2 answers
  • printStars is a method that accepts a single int argument and returns no value. It prints as many stars as indicated by its argu
    9·1 answer
  • Where could an identity theft access your personal information?
    9·2 answers
  • Compressing a file is also called
    9·2 answers
  • Which statements identify what astronomers currently know and think will happen with our universe? Check all that apply.
    15·2 answers
  • Create a page using PHP for a business website that will ask the user to enter his or her name into text boxes and will display
    5·1 answer
  • Uuhdcnkhbbbbhbnbbbbnnnnnnnnnfddjkjfs
    14·1 answer
  • What is Mark Dean’s main contribution to the development of the computer?
    9·1 answer
  • Saujani describes that women are highly underrepresented in STEM careersShe attributes this to women needing more confidence. Wh
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!