The document outlines various programming projects related to retail sales management, including calculating average inventory, rental charges, future investment values, shipping costs, and employee commissions. Each project includes specific requirements for user input, calculations, and output formatting, along with guidelines for handling bad input data. The projects aim to assist management in making informed decisions based on accurate financial data.
The document outlines various programming projects related to retail sales management, including calculating average inventory, rental charges, future investment values, shipping costs, and employee commissions. Each project includes specific requirements for user input, calculations, and output formatting, along with guidelines for handling bad input data. The projects aim to assist management in making informed decisions based on accurate financial data.
3.1 In retail sales, management needs to know the average inventory figure
proje Hows the user to
cost of goods
Form: Include labeled text boxes for the beginning inventory. the ending
inventory. and the cost of goods sold. After calculating the answers. dis-
ry and the turnover
Je butions for Calculate, Clear, Print, and Exit. The formulas for the:
ext boxes.
ory is expressed in dollars: the turnover is the
ry turns over.
k event of
results in text boxes. Format the average inventory as currency and the
Make sure
1 button. Display the
Cont of Average
woods sold inventory Turnover
40000 $52,750.00 8
44,450.00 12
11,300.00 4
—
3.2 A local reco
12 studio rents its facilities for $200 per hour, Manage
ment charges only for the number of minutes used. Create a project in
whieh the input is the name of the group and the
used the studio, Your program calculates the appropriate
fs the total charges for all groups. and computes the average charge
iher of groups that used the studio.
we of the group and the nu
arrent group should be displ
labeled text boxes for the
the
roup box for the summary information.
tol
formatted ina text box. Create
Inside the group box. display th smabes
of groups, and the e per group. Format all outpnt appropri
ately. Include buttons for Calculate. Clear. Print. and Exit.
charges for all groups.Code: Use « constant for the rental rate per hous divide that by 60 to get
the rental rate per minute. Do not allow bad input data to cancel the
Program.
Data
Croup Minutes
Pooches 95
Hounds 5
Mutts 490
|
Check Figures
‘Total charges ‘Total number Average ‘Total charges for
for group of groupe charge all groups
$316.67 1 $316.67 $316.67
$1667 2 $166.67 $333.33
$1,600.00 3 SoHAS $1,933.33
—
3.3 Create a project that determines the future value of an investment at a
en interest rate fora given number of years. The formula forthe ealeu-
Future value = Investment amount * (I + Interest rate) ® Years
Form: Use labeled text boxes for the amount of
rate (as a decimal fraction). and the
be held. Display the future value in a text box formatted as eurreney.
Include buttons for Calculate, Clear. Print, and Exit. Format all dollar
amounts. Display a message to the user for nonnumerie or missing input
data,
Latest Data
Amount Rate Years
2000.00 a5 5
1234.56 075
——L_check Figures
Faure sate
4022271
s1588.00
——
Hint: You must use the Math Pow method for exponentiation (the * in
the formula). The Math.Pow method pperates only on double data types.
so ist cast values of any other data type to can refer
Appendis B for the Math methods. Additionally, Chapter 5 has an exam
pile that uses the Pow method in the se ‘Writing a Method with
3.4 Write a project that calculates the shipping charge for a package if
shipping rate is $0.12 per ounce.
Form: Use labeled text boxes for the package-identification code (a six-
1 of the package—one box for pounds and
ay the shipping charge.
Include buttons for Calculate, Clear. Print, and Exit
‘methods for each button. Use a
harge. and display it formatted
for any bad input data.
in a pound.
at for
Le
w Weight ipping Charge
L5496P OW. 52. 0.0
955K 2h. O02, S38
700007, Lib. Toe. 2.01
—3.5 Create a project for the local rental ageney that calculates rental
charge charges $15 per day plus $0.12 per mil
: Use text boxes for the customer name, address, city, state
code, be;
number
ip
is. and the
isplay the miles
ws odometer reading, e
days the
ng odometer 1
ear was used. Use
ext hoxes to
driven and the total charge. Format the output appropriatel
Include buttons for Calculate. Clear. Print. and Exit.
For the
1g odome
for the $15
per day charge and the $0.12 mileage rate. Display a message to the user
for any bad input data.
3.6 Create a project that wi employee's sales and eal
ployee will re
pay of $900 plus a sales com Hof sales.
‘Mer calculating the net pay. calculate the budget amount for each
category based on the percentages given.
Pay
Base pay ‘$000; use a named constant
Commission (6% of sales
Gross pay ‘Sun of base pay and commission.
Deductions 18% of gross pay
Net pay Gross pay minus deductions
ee
Budget
Hoss 3046 of et pay
Poo and lohing 1546 af net py
Enteteinment 50% of net pay
Mincellaou 5 of nat py
Form: Use text boxes to
of the sales. Use text boxes to display the results of the calculations.
Provide buttons for Calculate. Clear, Print. and Exit. Display a message
wser for any bad inp‘The company has instituted a bonus p of the
ncentiveto sell more. For every dol-
Store's total sal
rec only forthe fits
of sales needs to
ve. (Hint: Don't
its employees
Is
‘ees receive 2 percent of sales, ‘The amount of bon
cm
hours he or she worked du
estore makes ina four-week pe
od. the empl ari.)
“The Calculate bution will determine the bonus
ccarned by this and the Clear hi
clear only the name, hours-worked, and bon
tal of 160 hours). ficlds. A Prat button allows the user top
The sereen will
resis based on th
low the user to enter i Do not allow miss
wad inpat date
‘cost value of the vei
for the commis
The Calculate b
‘eared by the salespersons the Clear button
will clear the text boxes. A Print
not allow bad
iv allows the
1 data
= price — Co
pre
will allow the user to enter the salesper=
the selling price of the vehicle, and the
Xtreme Cinema ff
box. display
nd provide a sum {aller discount
eu 1 for Caloulate, Clear Print, sn
discount, Exit The Clear button clears the
‘he form sh
jumber and the 1
group box. display
discount, and
Sh Include but
4 contain input for the member current rental but does not el
nber of movies rented. Inside a mation, Donat a
low bad input la
JJamount. the 10 percent gran instead, display a message to
int due. Inside 2 second groupCool Boards te
son, A person can rent a snowboard without boots oF
with hoots, Create a projeet that will caleutate and
display the
‘addition, ealeulate the summary
slays rentals.
or each rental, input the person's name, the d
ets lic
and the n
without hoots ent for $20:
for $30.
Caley A display
and snowboards with boots, and the rental otal.
dition, maintain summary totals, Use constants forthe
tal rate and the snowboard with boots
Jhanges for snowboards
44 summary frame with boxes to indieste
the day's totals for the number of snowboards and
ots rented,
customer:
Include buttons for Calculate Onder. Clear. Clear
All, Print nc Exit The Clear A buton should clear the
Fy totals to begin a new day’s summary. Hit
You must set each of the stummary variables to zero as
charges. and avers
well as clear the summary boxes
Make your buttons easy to use for ke
Make the Calculate button the Accept button at
Clear baton th
Do not allow bad input data to cancel the programs
instead. display a message to the ser
and entry
the
Caneel button