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

  Compute a compass sense of direction in such a network

Consider a synchronous square mesh with n nodes and without any sense of direction but with a designated leader. (a) Show how to compute a compass sense of direction in such a network.

  Design concept in terms of the usability of the design

A justification for the design concept in terms of the usability of the design. You should explain why your decisions make sense and why your interface concept works for the application. Any preliminary designs can be included as an Appendix to th..

  Explaining minor or major virus threats

Write down two recent virus threats, are they minor or major threats? What software would you utilize to remove these threats?

  Describe the organisational structure of your company

Describe the organisational structure of your company. Then formulate its mission. The mission should express all your above ideas in one sentence and Taylor-like methods are not applicable to software design and development processes.

  Recognize interface metaphor to use for conceptual design

For conceptual design (architectural or high-level), recognize the interface metaphor to use, interaction type(s) to employ, and interface type(s) to follow. For each of these, make sure to describe why you select what you did.

  How spki be augmented to support policy

Consider a policy that, for reasons of separation of duties, does not allow an entity to exercise the rights it may grant (delegate) to others. How could SPKI be augmented to support such a policy?

  What is not a problem associated with poor data management

What is not a problem associated with poor data management? a. essential data missing from the database b. inability to locate data c. system down time d. inconsistencies in representations

  How write program contains array double values

How do you write a program that contains an array of 15 double values

  Write a function that displays the prompt string

Write a function that displays the prompt string, followed by a space, reads a floating point number in, and returns it.

  Three clusters using k-means clustering

Partition this given integer set into three clusters using K-means clustering

  Write instructions to move value of register and add them

Write instructions to move value 34H into register A and value 3FH into register B, then add them together. Where is the result

  Use two arrays of integers to store two test scores

You must use 2 arrays of integers to store the 2 test scores for each student. You must use a third array to store the average and a fourth array to store the letter grade.

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