3) mycard: (The Front-End) • Create variables for five variables: name, accountnumber, unpaidbalance, newpurchases, and topay Ask for each of the first four variables Create a cardholder instance: cardholder bob=new cardholder(unpaid balance, newpurchases, name, accountnumber); Using getCurrentBalance(), getTotalBalance(), isActive(), print out (either using getters or a toString method): O Their name Their account status (active or frozen) 0 The current balance O The total balance Then ask how much they want to pay on their current balance (store in topay) and print out whether they are paid up for the month (good to go) or their unpaid balance has increased.

Introduction to Chemical Engineering Thermodynamics
8th Edition
ISBN:9781259696527
Author:J.M. Smith Termodinamica en ingenieria quimica, Hendrick C Van Ness, Michael Abbott, Mark Swihart
Publisher:J.M. Smith Termodinamica en ingenieria quimica, Hendrick C Van Ness, Michael Abbott, Mark Swihart
Chapter1: Introduction
Section: Chapter Questions
Problem 1.1P
Question
3) mycard: (The Front-End)
•
Create variables for five variables: name, accountnumber, unpaidbalance,
newpurchases, and topay
Ask for each of the first four variables
Create a cardholder instance: cardholder bob=new cardholder(unpaid balance,
newpurchases, name, accountnumber);
Using getCurrentBalance(), getTotalBalance(), isActive(), print out (either using getters
or a toString method):
O
Their name
Their account status (active or frozen)
0
The current balance
O
The total balance
Then ask how much they want to pay on their current balance (store in topay) and print out
whether they are paid up for the month (good to go) or their unpaid balance has increased.
Transcribed Image Text:3) mycard: (The Front-End) • Create variables for five variables: name, accountnumber, unpaidbalance, newpurchases, and topay Ask for each of the first four variables Create a cardholder instance: cardholder bob=new cardholder(unpaid balance, newpurchases, name, accountnumber); Using getCurrentBalance(), getTotalBalance(), isActive(), print out (either using getters or a toString method): O Their name Their account status (active or frozen) 0 The current balance O The total balance Then ask how much they want to pay on their current balance (store in topay) and print out whether they are paid up for the month (good to go) or their unpaid balance has increased.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Introduction to Chemical Engineering Thermodynami…
Introduction to Chemical Engineering Thermodynami…
Chemical Engineering
ISBN:
9781259696527
Author:
J.M. Smith Termodinamica en ingenieria quimica, Hendrick C Van Ness, Michael Abbott, Mark Swihart
Publisher:
McGraw-Hill Education
Elementary Principles of Chemical Processes, Bind…
Elementary Principles of Chemical Processes, Bind…
Chemical Engineering
ISBN:
9781118431221
Author:
Richard M. Felder, Ronald W. Rousseau, Lisa G. Bullard
Publisher:
WILEY
Elements of Chemical Reaction Engineering (5th Ed…
Elements of Chemical Reaction Engineering (5th Ed…
Chemical Engineering
ISBN:
9780133887518
Author:
H. Scott Fogler
Publisher:
Prentice Hall
Process Dynamics and Control, 4e
Process Dynamics and Control, 4e
Chemical Engineering
ISBN:
9781119285915
Author:
Seborg
Publisher:
WILEY
Industrial Plastics: Theory and Applications
Industrial Plastics: Theory and Applications
Chemical Engineering
ISBN:
9781285061238
Author:
Lokensgard, Erik
Publisher:
Delmar Cengage Learning
Unit Operations of Chemical Engineering
Unit Operations of Chemical Engineering
Chemical Engineering
ISBN:
9780072848236
Author:
Warren McCabe, Julian C. Smith, Peter Harriott
Publisher:
McGraw-Hill Companies, The