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
Anton [14]
2 years ago
8

define a function findlot() that takes two integer parameters as the hourly parking price and the parking duration, and returns

the parking lot allocation as an integer. the lot is returned as follows:
Computers and Technology
1 answer:
kap26 [50]2 years ago
5 0

a function findlot() that takes two integer parameters as the hourly parking price and the parking duration, and returns the parking lot allocation as an integer.

The lot is returned as follows:

int ComputeValue(int value1, int value2)

{

  return (value1 * value2) - 8;

}

//We assume that this function returns an int, but the product of the two values can get quite big.

The result may not fit into an int variable. If the values can exceed the limits of int, it might be better to change the return value to a 64 bit value.

//

long long ComputeValue(int value1, int value2)

{

   return ((long long)value1 * value2) - 8;

}

Read more about programming here:

brainly.com/question/23275071

#SPJ1

You might be interested in
Explain the need for data structures when developing software.
Sergio [31]

Solution:

It is  important because, it has to do operation on so without, data structures and algorithms.

It performs these operation:  

 1)Take an input

2) Process it  

3) Give back the output.

The input can be in any form, for ex while searching for directions on google maps,  the starting point and the destination as input to google maps, while logging in to any social sites, We have to give our email and password as input and so on.

Similarly, in the third step, the computer application gives us output in some form or the other.

To make this process efficient, we need to optimize all the three steps.

4 0
3 years ago
Consider the operation of deleting the root of a binary search tree. if the root has one child, then ________.
PSYCHO15rus [73]

The reference to the root of the tree should be set to null

<h3>Can the root of a binary tree be null?</h3>
  • Only the subtrees are nulled out, the root always remains and will never be set to null.
<h3>What is null root?</h3>
  • null-, root. -null- comes from Latin, where it has the meaning "none; not one.
  • '' This meaning is found in such words as: annul, null, nullify.

To learn more about it, refer

to brainly.com/question/24448358

#SPJ4

4 0
2 years ago
Write a complete c++ program using function and array.​
lana66690 [7]

Answer:

Index Value Hash

0 1 $

1 2 $$

2 3 $$$

3 4 $$$$

4 5 $$$$$

Explanation:

8 0
3 years ago
The ___________________ Act makes it illegal to deactivate or otherwise disable any antipiracy technologies including DRM techno
arsen [322]

Answer:

Digital Millennium Copyright Act

Explanation:

Digital Millennium Copyright Act (DMCA) is a protection placed on creative works online and gave content owners the authority to have their contents removed from websites who use it without permission, the act prohibits the reselling and giving away of commercial programs, contents or devices, violating the act is criminal

5 0
4 years ago
When making a While Loop in Python, what button should I press?
olganol [36]
D. None of the above
8 0
3 years ago
Other questions:
  • A bunch of computer scientists take over an island and start their own country. They want the license plates to use binary numbe
    11·1 answer
  • A written guarantee to fix or replace an item is called a _____.
    5·2 answers
  • python An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is a phrase an
    14·2 answers
  • 2. What is the layout of the modern keyboard known as?
    13·1 answer
  • Which of the following is the process of transferring data in a continuous and even flow, which allows users to access and use a
    12·1 answer
  • What is the value of the variable named result after the following code executes? var X = 5; var Y = 3; var Z = 2; var result =
    14·1 answer
  • The ________ utility automatically creates duplicates of your libraries, desktops, contacts, and favorites to another storage lo
    6·1 answer
  • What is the main theme of The hundred dresses​
    14·2 answers
  • What is Fill handle?
    12·1 answer
  • Consumers affect which goods and services are produced because they _____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!