Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Program Instructions: Create a program that calculates a customer's monthly cable bill. The cable service is divided into 3 different subscription types. Each subscription has
Program Instructions: Create a program that calculates a customer's monthly cable bill. The cable service is divided into 3 different subscription types. Each subscription has access to Movies-On-Deman-HD which charges $7.00 per movie. Assume taxes are already in the cost of the service and the movies.
Cost and Description $35.00 a month for local channels, major TV networks, and Internet service $75.00 a month for local channels, major TV networks, major cable networks, and 100 channels plus Internet service $110.00 a month for Deluxe services, on-demand services, plus 300 more channels to include HBO plus Internet service Service Basic Deluxe Premium 1. Develop your code by planning the logic FIRSI You will only pseudocode the plan for the Invoice class. a. There is an example of a PA4 plan on Blackboard. Use that to assist with your plan. b. The prompts (to return press Alt then left arrow) tell you what input variables you will need c. The will tell you the type of calculations you will need (if any) and whether you will need to declare additional variables d. The sample output will tell you the order of logic for your code e. Save your plan as GroupMembersLastNamesSecNoPA4Plan. Download the plan instructions and the plan template through the links posted for this assignment on Blackboard 2. Download the Creating Projects in DrJava PDF (instructor's version) on how to create a project folder that manages multiple .java files stored in the same folder. The project folder has the same name as the group .java file. You are creating 3 separate .java files to be stored in the project folder: a. TeamMembersLastNames SectionNoPANo.java contains only the main0) i. The main) wil instantiate (create) an object of the Cable class and use that object to call start(). Make sure you exit main(). b. Cable.java c. Invoice.java 3. The fields/class variables are non-static. All methods are non-static except for the main). The non-static methods do not have the word static" in their headers. 4. The Cable class will have 4 methods: an empty constructor, start), processBills) and displayBills0, and printThankYou(). You will create a 1D array called cableBills at the class level as a null array. The type for this array will be Invoice. This class has 4 fields: cableBills array, Scanner input, Calendar dateTime, and another array of type String called billingStmts a. Code an empty constructor b. start) contains a local variable called answer that holds the response to the first prompt in the sample output. Based on that response, processBills( and displayBills) are called or a "Thank you message is printed c. In processBills), the user will be prompted for the number of bills. That number gives size to the cableBills and billingStmts arrays. The cableBils array will then be populated with information for multiple bills; movieCharges and a total consisting of movieCharges and cableSrv are calculated; and the billingStmts array will be populated with the invoice/bill forStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started