The manager of the Super Supermarket would like to be able to compute the unit price for products sold there. To do this, the program should input the name and price of an item and its weight in pounds and ounces. Analysis Process: 1. Display program title. 2. Prompt for item name. 3. Prompt for price of item. 4. Prompt for weight of item in pounds. 5. Prompt for weight of item in ounces. 6. Convert pounds to ounces then add it to input ounces. 7. Dived price total by ounces. 8. Display price per ounce. Input: Item name (String: ItemName) Item Price (Real: Price) Item Weight in pounds (integer: Pounds) Item Weight in ounces (integer: Ounces) Output: Unit Price (real: UnitPrice) Design Main Module Declare ItemName as string Declare ItemPrice as real Declare ItemWeightLb as integer Declare ItemWeight Oz as integer Declare UnitPrice as real Write “ Welcome User” Write “ This program computes an unit items price (In Ounces)” Call Input Data Module Call Perform Calculations Module Call Output Results Module End Program End Main Module Input Data Module Write “ What is Items name? ” Input ItemName Write “ What is price of Item? ” Input ItemPrice Write “ What is Item weight in pounds? ” Input ItemWeightLB Write “ What does item weigh converted into ounces? ” Input ItemWeightOz End Input Data Module Perform Calculations Module Declare TotalOz as real Set ounces = 16 + pounds + ounces UnitPrice = PoundPrice/16 TotalPrice = PoundPrice*(Pounds + Ounces/16) End Perform Calculations Module Output Results Module Write “ Item is” : ItemName Write “ Total Price of item is” : ItemPrice Write “ Unit price of item is” : UnitPrice/Oz End Output Results Module End Program
Related Essay Samples
Future of software engineering
One of most important features of the landscape of technology in 2025 is the contribution of the internet of things, namely, the interconnectivity of physical items. In particular, some of the key topics include the current state-of-the-art and practice in ...
Critically discuss michel foucault’s concept of knowledge/power
The concept of knowledge and power explored in Foucault's text The Order of Things can be critically analysed with reference to more contemporary work of Arthur Miller, allowing one to draw distinctions between Foucault's theories and the concepts of collective ...
Example of united nations research paper
Since its establishment, the world had clear hopes with the UN as the body that would aid in the protection of rights and peace, preventing wars, and ensuring a global development and cooperation of all countries. In order to support ...
Free essay on eriksons final stage of psychosocial development
Very early in his career, he decided to extend the Freud's theories by clarifying the roles of the social environment and culture on development of the ego. The main task of this stage is to look back and reflect on ...
Response to the story “beauty: when the other dancer is the self”
Before the accident, she described herself as if she was the most beautiful and intelligent girl in the world. When Alice was only two and a half years old, when her father was chosen which kids to take with him ...
Engineering ethics of titanic sinking
The Titanic was a British ship originally conceived in 1 907 to be a mail and passenger line to go from England to New York by the Harlan and Wolff Irish Shipbuilding Company and The White Star Line to compete ...
Computer engineering 3406
The introduction of a relatively easy to use PC in 1981 began a period in the rapid growth of the computer industry. The understanding of CAD's and similar programs are a vital component to any engineering career.
Module 2 case
The nature and the use of the system depend on the nature of activities performed by the company. Once the interviewees are selected, the next step would be the development of the interview questions.
Advantages and disadvantages of cellular phones
DisadvantagesExpensive People spend less time bonding with there family and friends People just contact through phone and became too lazy meeting outside Disturb us on our works and studies People spend lots and lots of money buying the latest model ...
Good example of caltech essay
The academic staff at Caltech is more than qualified and with history for reference indeed very willing to help young minds develop in the right way in line with their academic goals as well as the personal goals of the ...
Microprocessors evolution 3467
The microprocessor has a memory address such as A16, and at this address the specific commands to the microprocessor are stored in the memory of the computer. The 16-bit and 32-bit microprocessors are a mere page in the great book ...
Cda autobiography
I taught the choir and I was able to pass on my knowledge of music theory to children in grades K-8th. This was most of the children's first experience in learning a musical instrument and I was honored to be ...
Project management functional areas argumentative flashcard
Overblown Advisory noted that the visual presentation of all tasks in the project, or one of the airstreams of a project, and their relation to each other creates the project network diagram Dependency: ' A relationship between pairs of tasks' ...
Odyssey, poem by homer: understanding the poet’s imagery
Homer uses imagery to set the mood of a death. And Homer uses imagery to set the mood of death.
Learning by yourself or with a teacher: what’s better?
That is way, it is always better to learn with a teacher who will correct my mistakes and focus my attention on the reasons why I make such. That is why, I truly believe that it is always better to ...
Free essay on data classification
Introduction of Z-EDM is the result, due to entropic error messages, and can be easily used in the backpropagation structure. MLPs that are trained using EEXP provide the best results as compared with the MSE or CE error functions, and ...
Example of essay on an institution.
In a sociological perspective, an institution can be termed as a set of procedures that serve the concern of the actors. The norms in an institution are self regulating and acceptable to the members of the institution.
Routing and traffic engineering
QoS routing refers to the mechanism that allows paths to be determined based on the resource availability knowledge on the network, and as quality of service requirement for the flows. When a packet comes through to the MPLS domain, an ...
Computer skills evaluation for new trainees 15250
The level of proficiency of each trainee will be documented and a certificate showing the level of computer knowledge of the trainee will be issued. If any should be found, the Training Director will document and implement changes to the ...
Sample essay on tort law
Resulting damages have to be proven for a party to recover compensation during a negligence suit; the extent and the nature of the damages are not the central concerns of cases of negligence. The law of the pilots to engage ...
Brian mulroney critical thinkings example
The main theme of this case under the airbus affair was that of bribery, such that Mulroney was accused of getting bribes that related to the contracts by the government. In conclusion, the Airbus affair involved Mulroney, who was a ...
The chairman and ceo of wipro technologies
He creates such an environment in the organisation so that his staff becomes self motivating and they contribute to the betterment of the organisation. His success proves that Azim Premji has the ability to lead in a different organisation.
Sample essay on current issues research
It helps in realizing the feeling of belongingness and the importance of each and every individual in a given family. We receive the required warmth, protection and security that are important to us from any of the aspects in our ...
Evolution of internet
It is a technology that has become the part of the world family. Its exponential progress in he field was so amazing that before the world realised the change, the world was already living in the era of revolution in ...
Self development assignment
In it, you will explore two areas of strength, two areas of weakness, and then you will develop a plan of action focused on one of your strengths and one of your weaknesses. Further, you need to use research to ...