A sporting goods store ships a lot of baseballs

Assignment Help Basic Computer Science
Reference no: EM13713443

List the names of subroutines of the hierarchy chart, and then write complete pseudocode for the following problem. You will not have to create a data dictionary for this exercise. 

Problem: 

A sporting goods store ships a lot of baseballs. They only have one size shipping-box. Twenty-four baseballs will fill a shipping-box. Produce the pseudocode logic for an algorithm that will compute the number of shipping-boxes required for the number of baseballs to be shipped. The information is given as follows: 

- The output will consist of a screen display showing the number of shipping-boxes needed for a customer's order. 

- The input will consist of the number of baseballs ordered by a customer, entered from the keyboard. 

- The processing will compute the number of boxes needed to fulfill the order. The number of boxes is computed as: number of baseballs ordered divided by the number of baseballs that will fill a box. If there is a remainder, the number of boxes must be incremented by one. 

Note: Your solution should contain a mainline, and at least three subroutines.

 

Reference no: EM13713443

Questions Cloud

What is the car acceleration while braking : It is possible to calculate the coefficient of friction between a vehicle's tires and the road by measuring the vehicle's stopping distance. What is the car's acceleration while braking
Current and future employees of your scenario organisation : Review the Unit Introduction and the Learning Resources and support your Individual Assignment with current academic literature beyond your Learning Resources.
What force is required to keep it at rest : A 25.25 kg crate is on a plane inclined at 30 degrees above the horizon. What force is required to keep it at rest
Find the acceleration of the hanging mass : A block of mass m1 = 38 kg on a horizontal surface is connected to a mass m2 = 22.2 kg that hangs vertically, What is the acceleration of the hanging mass
A sporting goods store ships a lot of baseballs : A sporting goods store ships a lot of baseballs. They only have one size shipping-box. Twenty-four baseballs will fill a shipping-box. Produce the pseudocode logic for an algorithm that will compute the number of shipping-boxes required for th..
Determine what is the magnification : A camera is equipped with a lens with a focal length of 39 cm. When an object 1.0 m (100 cm) away is being photographed, What is the magnification
Find how many revolutions per minute should cylinder rotate : The average human can only sustain an acceleration of 5g for a few seconds before passing out. How many revolutions per minute should the cylinder rotate
What is it in inches of water : A manometer containing an oil with a specific gravity (SG) of 0.92 is connected across an orifice plate in a horizontal pipeline carrying seawater (SG = 1.1). What is it in inches of water
Calculate the minimum force he must exert : A contestant in a winter games event pushes a 35.0 kg block of ice across a frozen lake, Calculate the minimum force F he must exert to get the block moving

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Twenty-four voice signals

Twenty-four voice signals are to be multiplexed and transmitted over twisted pair. What is the bandwidth required (in bps) if synchronous time division multiplexing is used, if we use the standard analog to digital sampling rate, and if each sample i..

  Modular approach is better than a haphazard approach

When building a house, a structured, modular approach is better than a haphazard approach.

  Let the predicate

11. Let the predicate ">" be defined as follows: Let a and b be integers. "a > b" if and only if a = b + k where k is an integer > 0. Using only this definition, prove that ">" is transitive, i.e., if x, y, and z are integers and x > y and y >..

  Four techniques for analyzing

Briefly compare and contrast the four techniques for analyzing the costs and benefits of a proposed system. What do you see as particular strengths and weakness of each method?

  Management trevor toy auto mechanics solutions

Assessing the value of customer relationship management trevor toy auto mechanics solutions

  What is meant by navigational

What is meant by navigational

  Differentiate between parallel and serial busses

Question1 :  One large modern computer has a 48-bit memory address register. How much memory can this computer address? Question 2 : What is the function of registers in the fetch-execute instruction cycle? What is the purpose of the instruction regi..

  Write a house class that has the following properties

Total number of rooms ( calculated: number of bedrooms + formal dining room if present + 1 for kitchen)Number of baths (house can have any number of 1/2 bath or 1/4 of a bath in addition to a full bath - example 1.5, 1.75 or 1.25 bath)

  Intentional and unintentional plagiarism

What is the difference between intentional and unintentional plagiarism

  Use this information to find a tighter bound on p

If X is a non-negative random variable with E(X) = ?, then Markov's inequality tells us that for every a, P(X ? a) ? ?/a. As we saw in class, this bound is sometimes very loose. In this problem we'll look at a situation in which extra information ..

  Evaluate issues and challenges associated with integration

Evaluate the issues and challenges associated with information technology integration and summarize the competitive advantage that information technology affords to organizations.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd