Programming > STUDY GUIDE > Old Dominion University - ITP 100Exam 2 Study (All)
Module main() // Local variable Declare String keepGoing = "y" // Calculate as many commissions // as needed. While keepGoing == "y" // Display a salesperson's commission. Call showCommission() ... // Do it again? Display "Do you want to calculate another" Display "commission? (Enter y for yes.)" Input keepGoing End While End Module // The showCommission module gets the amount of sales and displays the 20 commission. Module show Commission() // Local variables Declare Real sales, commission // Constant for the commission rate Constant Real COMMISSION_RATE = 0.10 // Get the amount of sales. Display "Enter the amount of sales." Input sales // Calculate the commission. Set commission = sales * COMMISSION_RATE 34 35 // Display the commission Display "The commission is $", commission End Module [Show More]
Last updated: 3 years ago
Preview 1 out of 4 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Mar 31, 2021
Number of pages
4
Written in
All
This document has been written for:
Uploaded
Mar 31, 2021
Downloads
0
Views
69
Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·