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
Tcecarenko [31]
3 years ago
11

Given the variables costOfBusRental and maxBusRiders of type int , write an expression corresponding to the cost per rider (assu

ming the bus is full). (Do not worry about any fractional part of the expression-- let integer arithmetic, with truncation, act here.)
Computers and Technology
1 answer:
Liono4ka [1.6K]3 years ago
7 0

Answer:

       int costOfBusRental;

       int maxBusRiders;

       int costPerRider;

       costPerRider = costOfBusRental/maxBusRiders;

Explanation:

The costPerRider is the total cost of renting the bus (costofBusRental) divided by all the bus users (maxBusRiders). So we declare the three variables to be of type int as required by the question.

You might be interested in
Translating an algorithm into the syntax of Java is the design phase of software development.
Digiron [165]

Answer:

I think it's false

Explanation:

I don't think so. What makes me hesitate is that you may have been told that in your text or in the classroom.

Here are the steps as I understand them.

  1. Understand the problem you are trying to solve.
  2. Design a solution.
  3. Draw a flow chart.
  4. Write pseudo-code.
  5. Write code.
  6. Test and debug.

I think you've done the designing long before you start writing code or even pseudo-code.

4 0
2 years ago
7.3 A hydraulic lift has a mechanical advantage of 6. If the load weighs 780 N, calculate
Zielflug [23.3K]

Answer:

Effort = 120 Newton

Explanation:

Given the following data;

Mechanical advantage = 6

Load = 780 N

To find the effort required to lift the weight;

Mechanical advantage can be defined as the ratio of the load (weight) lifted by a simple machine to the effort (force) applied.

Mathematically, the mechanical advantage is given by the formula;

M.A = \frac {Load}{Effort}

Making effort the subject of formula;

Effort = \frac {Load}{M.A}

Substituting into the formula, we have;

Effort = \frac {720}{6}

Effort = 120 Newton.

3 0
3 years ago
Twitter and facebook are both examples of the​ _____________ internet business model.
sweet [91]

community provider  

Provide online meeting place where people with similar interest can communicate and find useful information

People can transact, share interests, photos and videos

3 0
3 years ago
Layer 3 of the Transmission Control Protocol/Internet Protocol (TCP/IP) is called the Internet Layer. Describe the functions of
attashe74 [19]

Answer: Internet layer in TCP/IP stack is used for the transmitting and exchanging of information or message between the source and destination in computer systems.The main functions performed by this layer are as follows:-

  • It  transfers the message to the network interface layer
  • The correct information route and destination is established
  • Prefers intelligent routing technique by choosing the shortest route among all paths
  • If any error case of transmission arises then another alternate path for datagram transmission is used.

7 0
3 years ago
What are the basic steps in creating a new program
ladessa [460]
<span>first make a text file, then write the framework or(scripts for your program). Then write Your Instruction and save Your Program. After you've done that, get and install java jdk(its like a development tool). Finally c<span>opy the path(text file) to the Java tools(jdk)

</span></span>
3 0
3 years ago
Other questions:
  • Hard drives are usually self-contained, sealed devices. Why must the case for the hard drive remain sealed closed?
    8·1 answer
  • Write a program that scores a blackjack hand. In blackjack, a player receives from two to five cards. (The player decides how ma
    5·1 answer
  • In the context of computer crimes, those who attempt to destroy the infrastructure components of governments and financial insti
    7·1 answer
  • Qual parâmetro é usado é usado na query sql para a presentar os dados em ordem decrescente?Leitura Avançada
    6·1 answer
  • ​Client/server computing is​ a: A. network that connects sensors to desktop computers. B. distributed computing model where clie
    12·1 answer
  • Please select the word from the list that best fits the definition
    13·2 answers
  • QUESTION 1
    6·1 answer
  • What is the user requirements of an educational app
    15·1 answer
  • What are the third generation of computer?​
    14·2 answers
  • 48
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!