Cmis 242 Project 1

In: Computers and Technology

Submitted By ashhad
Words 263
Pages 2
HELPIDO.COM

-----------------------------------------------------------------
Follow the link to get the tutorial

http://helpido.com/cmis-242-project-1-design-and-implement-a-vehicle-class-along/

-----------------------------------------------------------------

CMIS 242 PROJECT 1
This project focuses on demonstrating your understanding of classes and objects. Before attempting this project, be sure you have completed all of the reading assignments listed in the syllabus to date, participated in the weekly conferences, and thoroughly understand the examples throughout the chapters. The project requirements include:

1. Design and implement a vehicle class along with 4 subclasses using the following guidelines:

Create a lass named Vehicle and its four subclasses named Truck, Car, Bus, and Motorcycle.
A Vehicle has a name, model, and make data fields. It also has methods for setting and getting the values of each of the fields along with a method to display the type of license needed to operate it. A constructor that sets the model and make fields to null is also included in the Vehicle class. You are welcome to add additional methods if you like.
The types of licenses are:
Class
Licenses
Car
Regular
Truck
Regular
Bus
Commercial
Motorcycle
Moto

2. Finally, create a Java test class that creates a fleet of vehicles. In your test class you should at a minimum: a) Construct 100 instances of each kind of vehicle, b) assign a different name to each vehicle, as well as a make and model c) print the name, make and model of each vehicule d) print the kind of license needed for each vehicle.

3. Your programs should compile and run without…...

Similar Documents

Cmis Homework 1 Solutions

...Here is one possible solution to Assignment 1. Following the solution, I have written some important general comments on programming issues and submitting assignments. Program Description: This program will accept the lengths and widths of four rooms from the user, then use this data to compute the total area. The result will be displayed for the user. Analysis: Inputs: There are eight inputs: the lengths and widths of each room. Outputs: There is one output: the total area. Obtaining the Outputs from the Inputs: For each room, we have to multiply the length by the width to get the area. Then the four room areas are added to get the total area. Mathematical Formulas: Area of a rectangle: Area = Length * Width. Total area of a complex figure: add the areas of the parts. Variables table: Name Data Type Usage Length1 Float Length of room 1 in feet Width1 Float Width of room 1 in feet. Length2 Float Length of room 2 in feet Width2 Float Width of room 2 in feet. Length3 Float Length of room 3 in feet Width3 Float Width of room 3 in feet. Length4 Float Length of room 4 in feet Width4 Float Width of room 4 in feet. Area1 Float Area of room 1 in square feet Area2 Float Area of room 2 in square feet Area3 Float Area of room 3 in square feet Area4 Float Area of room 4 in square feet TotalArea Float Total area in square feet Test Cases: [I omit this as nearly everyone presented good cases] Pseudocode: BEGIN PROGRAM Declare Length1, Width1,......

Words: 410 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld minus...

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld minus...

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld minus...

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld minus...

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld......

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld......

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld......

Words: 263 - Pages: 2

Cmis 242 Intermediate Programming Project 2

...HELPIDO.COM ------------------------------------------------------------- FOLLOW THE LINK TO GET THE TUTORIAL http://helpido.com/cmis-242-intermediate-programming-project-2/#5 ------------------------------------------------------------- CMIS 242 INTERMEDIATE PROGRAMMING PROJECT 2 ________________________________________ CMIS 242 – Intermediate Programming Programming Project 2 The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI. The GUI should use the grid layout manager and should looks similar to the following: The salary income, interest income, itemized deductions, exemptions and tax withheld are input to the program. When the Compute Refund button is clicked, the refund should be computed and displayed. Assume all inputs are in whole dollars. The refund should be computed as follows. First compute the total gross income as the sum of the salary and interest income. Then compute the taxable income, which is the gross income less the itemized deductions and exemptions. The exemption amount is computed as the number of exemptions multiplied by $2700. Next compute the tax owed for the year according to the following tax table: Taxable Income Tax Owed From To $0 $50,000 5% of taxable income $50,000 $100,000 $2,500 + 7% of amount above $50,000 $100,000 – $6,000 + 9% of amount above $100,000 Finally, compute the amount of the refund as the amount withheld......

Words: 263 - Pages: 2

Cmis Hw 1

...Matt Lubisich CMIS 102 6983 Introduction to Problem Solving and Algorithm Design (2148) Due Date: 21 September 2014 I will be designing a program that will calculate the amount of usable square feet in a 4 bedroom house. The program will take the individual dimensions of each living space and calculate the overall amount of usable square feet. The Input will be each room and will be labeled as Room 1 through 4. Then we will multiply the length times the width of each room. Next we will add the totals of the 4 rooms to get the expected output which is the usable square feet. Test Case # | Input | Expected Output | Test 1 | Room 1: length=15, width=15;Room 2: length=11, width=13;Room 3: length=12, width=12;Room 4: length=10, width=11; | 622 square feet | Test 2 | Room 1: length=16, width=15;Room 2: length=12, width=14;Room 3: length=14, width=10;Room 4: length=13, width=11; | 691 square feet | Test 3 | Room 1: length=14, width=16;Room 2: length=13, width=13;Room 3: length=11, width=12;Room 4: length=10, width=12; | 645 square feet | Pseudocode //This program takes the square footage of 4 rooms to determine the usable square footage of a living space. //Declare variables Declare Room 1, Room 2, Room 3, Room 4, sum As Integer //Initialize variables Set Room 1 = X * Y or length times width Set Room 2 = X * Y or length times width Set Room 3 = X * Y or length times width Set Room 4 = X * Y or length times width Set sum = Room 1 + Room 2 + Room 3 +...

Words: 293 - Pages: 2

Cmis 102 Hw 1

...room1_sqft, room2_l, room2_w, room2_sqft, room3_l, room3_w, room3_sqft, room4_l, room4_w, room4_sqft, total Testing - test1 2,10,10,12,3 "The square footage of room 1 is 100" "The square footage of room 2 is 36" "The total usable square footage of the house is 136" test2 1,4,5 "The square footage of room 1 is 20" test3 6.2,3,24,00001,222 error Psuedocode main input number_of_rooms if number_of_rooms is 1 input room1_l input room1_w compute room1_sqft as room1_l * room1_w write "The square footage of room 1 is"room1_sqft"\n" else if number_of_rooms is 2 input room1_l input room1_w input room2_l input room2_w compute room1_sqft as room1_l * room1_w compute room2_sqft as room2_l * room2_w compute total as room1_sqft + room2_sqft write "The square footage of room 1 is"room1_sqft"\n" write "The square footage of room 2 is"room2_sqft"\n" write "The total usable square footage of the house is "total"\n" else if number_of_rooms is 3 input room1_l input room1_w input room2_l input room2_w input room3_l input room3_w compute room1_sqft as room1_l * room1_w compute room2_sqft as room2_l * room2_w compute room3_sqft as room3_l * room3_w compute total as room1_sqft + room2_sqft + room3_sqft write "The square footage of room 1 is"room1_sqft"\n" write "The square footage of room 2 is"room2_sqft"\n" write "The square footage of room 3 is"room3_sqft"\n" write "The total usable square......

Words: 945 - Pages: 4

It 242 Week 1 Dq 1

...register needs to store the required data pertaining to each item the customer is buying. This data includes the item name, the price per pound, and the number of pounds of that item being purchased. This should be stored in three (3) arrays (one (1) for the item name, one (1) for the price per pound, and one (1) for the number of pounds being purchased) with corresponding index values. For example, index value 3, when applied to the “itemName” array, would give as the name of the third item that the customer is buying. That same index value of 3, when applied to the “ pricePerPound” array, would give us the price per pound of that same third item that the customer is buying. When that last item in the purchase has been saved to the array, an itemized receipt is printed which shows the relevant data (name, price, and amount purchased) of each item, the subtotal price for each item (which is calculated as price per pound times the number of pounds), and the grand total purchase amount of all items. Use Visual Logic to create the data flow diagrams needed in order to develop the design documents for an interactive event-driven program to solve the above scenario that includes at least: 1. Three (3) arrays 2. One (1) loop 3. One (1) and / or conditional statement that covers decision making to include true and false parts of an if statement. Include the code along with the Visual Logic output. The specific course learning outcomes associated with this......

Words: 396 - Pages: 2

Cmis 102 Assignment 1

...Homework 1 Program Description: The program made will perform a calculation to determine the square feet of 4 rooms in a house. It will then sum the square feet of all 4 rooms to find the total usable area of a house. Given all rooms are rectangular Analysis: The area of a room can be determined by a simple math equation of Area=Length x Width. Because we are creating a program to calculate square feet, the program will require an input and output. First thing we have to do is figure out the dimensions of the rooms. Then, we must plug in the dimensions to the appropriate variables. Afterwards, we sum all of the variables together to find the total usable area of the house. The following is the formula to determine the square feet of each room L = Length W = Width Room1 = L1 * W1 Room2 = L2 * W2 Room3 = L3 * W3 Room4 = L4 * W4 Total area = Room1+Room2+Room3+Room4 Test/Pseudo code: Test Case # | Input | Expected Output | 1 | Room1: L=12, W=12 Room2: L=10, W=11Room3: L=15, W=15Room4: L=13, W=14 | 661 square feet | 2 | Room1: L=11, W=13 Room2: L=13, W=12Room3: L=16, W=14Room4: L=11, W=11 | 644 square feet | 3 | Room1: L=13, W=12 Room2: L=13, W=13Room3: L=14, W=15Room4: L=12, W=13 | 691 square feet | Pseudo code: //this program sums the square feet of 4 rooms to determine the total usable square feet of a house //declaration of variables //declare room 1, room 2, room 3, room 4 as integer //design Set room 1 = L1*W1 Set room 2 = L2*W2 Set room 3 =......

Words: 304 - Pages: 2

Cmis 102 Assignment 1

...Jeremy Lovell CMIS 102 7987 Introduction to Problem Solving and Algorithm Design (2152) Bryan Nilsen 29 March 2015 NLT: 11:59 PM Program Description: This program will calculate the total usable square feet of a house by multiplying the length of width of each room and add up the product of each room to give the total square feet. Analysis: I know to calculate square feet of a room you have to multiply the length and width. Since the house has multiple rooms to get the total square feet you have to add the square feet of each room to get the total. I decide to create the input simple by giving the variables names that are easily identifiable. L stands for Length and W stands for Width, RM stands for room which is the product of the corresponding Length and Width. Finally SgFT is the sum of all three RMs. I used these variable names to easily see within the program where I get there data values. Test Data: | Input: | Output | Test Case 1: | Room1: length=10, width=20 Room2: length=15, width=10 Room3: length=20, width=15 | Total Square Feet: 650 | Test Case 2: | Room1: length=13, width=11 Room2: length=9, width=7 Room3: length=22, width=19 | Total Square Feet: 624 | Test Case 3: | Room1: length=8, width=6 Room2: length=4, width=12 Room3: length=30, width=25 | Total Square Feet: 846 | Pseudocode: //Declare Variables Declare L1, L2, L3, W1, W2, W3, RM1, RM2, RM3 and SqFT //Set Values of Variables Set L1=10 Set L2=15 Set L3=20 Set......

Words: 294 - Pages: 2

Cmis 102 Homework 1

...Peter Doyle CMIS 102 Prof. Tanney HW1 Purpose of the program This program will be used to determine the square feet of usable space in each individual room and those values will be added together to get the total usable area of square feet in house with length and width values of up to four rooms being the only known value BEGIN define variables for rooms and total usable space room numbers and area of each room will be will be represented by integers r1 through r4 total usable area in the house will be represented by Usable_space which define variables of length and width for r1-r4, integer l1,l2,l3,l4,w1,w2,w3,w4 //the values for length and width will be added by user input l1,w1,l2,w2,l3,w3,l4,w4 //Length will be known as L and will have the integers of L1 through L4. L1through L4 will correspsond to the the integer “L” with the same number //Width will be known as “W” and will have the integers of w1 through w4 with the numbers corresponding to the integer “w” with the same number r1=L1*w1; r2=L2*w2; r3=L3*w3; r4=L4*w4; define formula to get total usable square feet Usable_space=(r1+r2+r3+r4); Have program show with printf command Usable square feet for each room and total usable square feet: “ The individual rooms r1-r4’s (respectively) usable area in square feet is r1,r2,r3,r4. The total usable square feet of your house with those given values is Usable_space.” END Code and run test cases. If successful code is good to go. Test......

Words: 354 - Pages: 2

7 - 1 Episódio 1 | Pós-Apocalíptico | Lot of 100 Rusty Barn Stars 1.5 inch Rustic Primitive Country Rusted Dimensional