psuedocode, Python Programming

#ques Write the pseudocode (use a word processor please) and the Python 3.0 program for the following problem. A monkey is being fed some food. Read in the starting weight in lbs:ozs. Also read in the ending weight in lbs:ozs (you may assume this is smaller than the starting weight. Find the difference and print out the amount of food consumed by the monkey in lbs:ozs. Some sample data is shown below (with the corresponding output). Hints: convert all values to ounces first. Use the “find” command to locate the “:” in the input data (see sample2 on Y:).



Run#1:

Starting weight of food (in lbs:ozs)=8:9

Ending weight of food (in lbs:ozs)=6:14

Food consumed by the monkey (lbs:ozs)=1:11tion..
Posted Date: 9/23/2012 12:33:31 AM | Location : United States







Related Discussions:- psuedocode, Assignment Help, Ask Question on psuedocode, Get Answer, Expert's Help, psuedocode Discussions

Write discussion on psuedocode
Your posts are moderated
Related Questions
Perimeter of a polygon Now, let's consider the problem of computing the length  of the perimeter of a polygon. The input is a structure of vertices,  encoded as a list of list

Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. What is the tota

Displaying random geometric graphs in an uniform square, unit disk, dense rim unit disk, and uniform sphere

Bank transfer What  if we  have  two  values,  representing bank  accounts, and  need  to transfer an  amount of money  amt between them?  Consider that a bank account is show

Python programs Every  general-purpose computer has a various detailed design, which  defines  that  the way  its program requires  to be specified is different. The "machine

from urllib2 import urlopen # Open http://placekitten.com/ for reading on line 4! response = kittens.read() body = response[559:1000] # Add your ''print'' statement here!

Procedures as First-class objects In Python, unlike  many  other  languages, methods are behave in much  the same way as num­ bers:  they  can be stored as values  of variable

#question.Program 10 Assignment (Banking Objects – Savings/Checking Accounts) Create a program named 10.py that performs the following: Create a class named ChkAcct, and a class n

For this assignment, you are to: 1.    Modify the output format of your Python script from Assignment 1 to match the input format of your C program from Assignment 2. 2.    W

The goal of this exercise is to write a \business phrase" generator, which each time it is called produces lines of business speak, such as: It's time that we became uber-effici