Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 1 : Enter the code from below for Roman Numerals. Program 2 : Software Sales A software company sells a package that retails for

Program 1:
Enter the code from below for Roman Numerals.
Program 2:
Software Sales
A software company sells a package that retails for $99. Quantity discounts are given
according to the following table.
Write a program that asks for the number of units sold and computes the total cost of
the purchase.
Input Validation: Make sure the number of units is greater than 0.
Output: Show Cost of Service and Show their Discount (savings).
Program 3:
Bank Charges
A bank charges $10 per month plus the following check fees for a commercial check-
ing account:
S.10 each for fewer than 20 checks
$.08 each for 20-39 checks
$.06 each for 40-59 checks
$.04 each for 60 or more checks
The bank also charges an extra $15 if the balance of the account falls below $400(before
any check fees are applied). Write a program that asks for the beginning balance and the
number of checks written. Compute and display the bank's service fees for the month.
Input Validation: Do not accept a negative value for the number of checks written. If a
negative value is given for the beginning balance, display an urgent message indicating
the account is overdrawn.
Output: 5 lines of output with decimals lined up. Show Bank Fee, Check Fee, Low
Fee (either 0.00 or 15.00 and The Total Fee.
See Supplemental section for input and output how-to
Gradesheet for Branches Programs:
ALL programs must compile and be thoroughly tested
Do not tum in code that does not compile
Do not turm in code that has not been tested
ALL Programs must use good programming style (indenting, variable naming)
Place the following Comment section at the top of each program.
//Name: your name
//Course: COP 2250
//Program Name: Chapter 3 Roman numerals (or Sales or Bank Charges)
Program 1: Roman Numerals
Must Compile or Zero points - or - incorrect results loose 12 points
Program 2: Software Sales
Must Compile or Zero points
Input validation for number of units must be >0
Calculations were correct for the range: 1-9,10-19,20-49,50-99,100+
Must have the Chart for Quantity and Discount Shown on the screen!!
Program 3: Bank Charges
Must Compile or Zero points
Must show Bank Fee chart
Input validation for negative amount of checks with and Error message. If user enters a negative amount - then only show an error
message with no other stats.
Calculations were correct for the range: ,20,20-39,40-59,60+
Must display each of these fees:calculated check fee bank fee Low Fee Iotal Fee
Note - Low fee is calculated $15.00 bank fee if beginning balance 400 or $0.00
List the above 4 fees on separate lines and decimals must be lined up. See Supplemental, last page
All prompts on same line
Turn the 3 Java source code files into the drop box (no zip file) Supplemental
Refer to zyBooks 6.2 Output formatting
The following code shows how to get integer input
The following code shows how to print columns
System.out.printf(??%-105%-105%-105%-10s
, Col1, Col2, Col3, Col4, Col5);
System.out.printf(??%-10.2f%-10.2f%-10.2f%-10.2f
,3.14159,2.71828,1.61803,0.57721);
System.out.printf(??%-10.2f%-10.2f%-10.2f%-10.2f
,6.28318,3.14159,2.30259,1.57080);
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

=+What do you wish you had known when you were starting out?

Answered: 1 week ago