Professional Documents
Culture Documents
Starting Out With Programming Logic And Design 4th Edition Tony Gaddis Solutions Manual instant download all chapter
Starting Out With Programming Logic And Design 4th Edition Tony Gaddis Solutions Manual instant download all chapter
https://testbankdeal.com/product/starting-out-with-programming-
logic-and-design-4th-edition-tony-gaddis-test-bank/
https://testbankdeal.com/product/starting-out-with-programming-
logic-and-design-3rd-edition-tony-gaddis-solutions-manual/
https://testbankdeal.com/product/starting-out-with-programming-
logic-and-design-3rd-edition-tony-gaddis-test-bank/
https://testbankdeal.com/product/starting-out-with-alice-3rd-
edition-tony-gaddis-test-bank/
Starting out with Visual C 4th Edition Gaddis Solutions
Manual
https://testbankdeal.com/product/starting-out-with-visual-c-4th-
edition-gaddis-solutions-manual/
https://testbankdeal.com/product/starting-out-with-java-from-
control-structures-through-objects-5th-edition-tony-gaddis-
solutions-manual/
https://testbankdeal.com/product/starting-out-with-python-4th-
edition-gaddis-test-bank/
https://testbankdeal.com/product/starting-out-with-python-3rd-
edition-gaddis-solutions-manual/
https://testbankdeal.com/product/starting-out-with-python-2nd-
edition-gaddis-solutions-manual/
Programming Exercise 7-2
// main module
Module main()
// Local variables
Declare Integer countA, manyA=300, rateA=20
Declare Integer countB, manyB=500, rateB=15
Declare Integer countC, manyC=200, rateC=10
// Get count A
Set countA = getSeats(“A”, manyA)
// Get count B
Set countB = getSeats(“B”, manyB)
// Get count C
Set countC = getSeats(“C”, manyC)
// Show income
Call showIncome(countA, rateA, countB, rateB, countC, rateC)
End Module
End Module
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
getSeats
main() (Which, most)
Declare Declare
countA, manyA=300, rateA=20 inputAmount
countB, manyB=500, rateB=15
countC, manyC=200, rateC=10
Display
“Enter number of “,
Set countA = Which, “ seats sold: “
getSeats(“A”, manyA)
Input
inputAmount
Set countB =
getSeats(“B”, manyB)
True
getSeats Input
(Which, most) inputAmount
Return
inputAmount
End
showIncome
(countA, rateA,
countB, rateB,
countC, rateC)
A B
Set totalSection =
Set totalIncome = Set totalIncome =
countA * rateA
totalIncome + totalIncome +
totalSection totalSection
Set totalIncome =
totalIncome + Display “Income from “, Display “Income from “,
totalSection countB, “ section B countC, “ section C
seats is $”, totalSection seats is $”, totalSection
A End
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
Another random document with
no related content on Scribd:
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.