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
Lina20 [59]
4 years ago
8

An application calculates an ending inventory amount based on a beginning inventory amount, sales, and returns. You need to crea

te a function to calculate the ending inventory using three passed Integer variables: intBegin, intSales, and intReturns. Which procedure headers should be used?
Computers and Technology
1 answer:
Bogdan [553]4 years ago
8 0

Answer:

Private Function CalculateInventory(ByVal intBegin As Integer, ByVal intSales As Integer, ByVal intReturns As Integer) As Integer

Explanation:

In Visual Basic Programming language a function header begins with the access modifier, in this case private, this is followed by the keyword function then the name of the function in this case CalculateInventory. We specify that the function will take three parameters as stated in the question and the function will return an Integer value. When this function is called, the three parameters will have to passed to it as arguments.

You might be interested in
Which sequence best describes the evolution of computers?
SVETLANKA909090 [29]

Answer:

d. Mainframes came before minicomputers, which led to the development of microcomputers.

Explanation:

The first <em>mainframe</em> was introduced in 1951: The UNIVAC (UNIVersal Automatic Computer I): large computer systems, for general purpose, with hundreds of users (separated from the computer) and fast computations, typically deployed by large business, industry, and government organizations.

The <em>minicomputers</em> are another class of computers that start to evolve since the late of the 1950s and the beginning of 1960s (like LINC, PDP-1, among many others), and focused on to have a more direct contact with the user or programmer, and because of this, it is said that minicomputers were the first 'personal' computers. They were cheaper than mainframes and with less memory capacity.

Finally, the <em>microcomputers</em> appeared around the beginning of 1970s (Micral), and sometime later (Altair 8800,  Apple II) and were firstly used by hobbyists and computers enthusiasts. The term microcomputers have been supplanted nowadays by 'personal computers'.

 

7 0
3 years ago
The game begins with the player having 20 POINTS
kompoz [17]

Answer:

Following are the code to this question:

import random#import package for using random method  

def rolling_dice(): #defining method rolling_dice that uses a random number to calculate and add value in dice1 and dice2 variable

   dice1 = random.randint(1,6)

   dice2 = random.randint(1,6)

   return dice1 + dice2

def rolling(): # defining method rolling

   n_roll = 0  # defining num variable that initial value that is 0.

   p = 20 # defining variable p for looping, that points in between 1 and 59

   while p > 0 and p < 60: # defining loop that counts value dice value two times  

       d = rolling_dice()#defining d variable that hold method value

       n_roll+= 1 #defining n_roll that increment n_roll value by 1

       if d == 7 or d == 11:# defining if block that uses the d variable that checks either 7 or 11, player won d in p variable

           p+= d   # use p variable that adds d variable

       elif d == 2 or d == 3 or d == 12:#defining elif block to that checks d variable by using or operator  

           p-= d#defining d variable that decreases d variable variable

       else: # defining else block

           p1 = d # using p1 variable that store d value  

           while True:# defining loop that calculates values

               d = rolling_dice()#defining d variable that holds method values

               n_roll += 1 #increment the n_roll value by 1

               if d == 7:#defining if block that checks d value equal to 7

                   p -= p1#subtract the value of p1 in p variable  

                   break # exit loop

               elif d == p:#defining elif block to check d value is equal to p

                   p += p1#adds the value of p1 in p variable  

                   break#using break keyword

   if p<= 0:#defining if block that checks p-value is less then equal to 0  

       print('Player lost')#using print method

   elif p>= 60:#defining else block that checks p-value is greater than equal to 60

       print('Player won')#using print method to print the value

   print('number of dice rolls:', n_roll)#use print method to print n_rolls value

rolling()

Output:

Player lost

number of dice rolls: 38

Explanation:

In the above-given python code, a method "rolling_dice" is declared, inside the method two-variable "dice1 and dice2" is declared, that uses the random method to calculate the value in both variable and use the return keyword to add both values.

  • In the next step, another method the "rolling"  is declared, inside the method "n_roll and p" is declared that assigns the values and use the two while loop, inside the loop if block is defined that calculates the values.
  • In the next step, a condition block is used that stores value in the p variable and use the print method to print the "n_roll" value.  
8 0
3 years ago
After how many months should a tractor's steering fluid be changed?
matrenka [14]

Answer:

after every four months

Explanation:

3 0
3 years ago
Which of the following code segments will print “large enough” when the square of the number var is larger than 25?
Illusion [34]

Answer:

C.

if (Math.sqrt(var) > 25)

{

System.out.println("large enough");

}

Explanation:

Analyzing each option:

(a): if (Math.sqrt(var) < 25)

The above condition uses < which means less than.

So, basically the condition checks if the square root of var is less than 25

This is not the required condition in the question

(b): if (Math.sqrt(2, var) > 25)

The above is an incorrect syntax of checking for square roots and it'll return an error when the program is run

To look for square root, make use of <em>Math.sqrt(var)</em>

<em></em>

(c): if (Math.sqrt(var) > 25)

As stated in the last statement of (b), the correct syntax to check for square root is <em>Math.sqrt(var) </em>and the condition above makes use of > which implies that if square root of var is greater than 25.

And if yes, it prints large enough

(d): if (Math.pow(var, 2) < 25)

This doesn't check for square root of var but rather it checks for var raise to power of 2.

So, from the analysis above;

Option c answers the question

5 0
3 years ago
List and describe at least two (2) very specific advantages of the CIF approach for enterprise-scale data warehousing for this c
tresset_1 [31]

Answer:

di ko po alam pa help po

Explanation:

pllssss

7 0
3 years ago
Other questions:
  • How do you think computers have helped to improve documentation, support and services within the healthcare industry.
    7·1 answer
  • 11. If the following pseudocode were an actual program, what would it display:
    6·2 answers
  • How many different messages can be transmitted in n microseconds using three different signals if one signal requires 1 microsec
    12·1 answer
  • In linear programming a solution that does not simultaneously satisfy all constraints is called an
    13·1 answer
  • Codio Challenge Question (Python)
    6·1 answer
  • 100BaseT network uses the TCP/IP protocol suite exclusively, and workstations on your network obtain addresses dynamically from
    6·1 answer
  • In object-oriented programming, the object encapsulates both the data and the functions that operate on the data.
    10·1 answer
  • Ye lust, and have not: ye kill, and desire to have, and cannot obtain: ye fight and war, yet ye have not, because ye ask not.​
    15·1 answer
  • Evaluate the advantages and disadvantages of cloud computing.
    12·1 answer
  • Mhairi believes that if a site’s information is detailed enough, it is more likely to be true. Is she correct? Answers
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!