These are the scripts that I created while in my Java class (IT-145) at SNHU.
All Challenge Activities and Labs are from the zyBooks program. The Class Assignments and Projects are what is turned in via the online learning systems.
If you have found these to be helpful, please consider sponsoring my work or donating.
There are quite a few challenges in each chapter and quite a few chapters. You can find the challenges at the following link:
Module 1 Labs
Lab 1.37
Asks the user for an integer. Then outputs the users input, then outputs it squared, then cubed. Asks the user for another integer and takes both integers and finds the sum and product. Outputs the sum and product.
Lab 1.38
Asks the user for an integer, double, character, and string. Outputs the inputs in the following order: integer, double, character, string. Then outputs the inputs in the following order: string, character, double, integer. Then casts the double to an integer and outputs the integer.
Module 2 Labs
Lab 2.17
Write a method drivingCost() with input parameters milesPerGallon, dollarsPerGallon, and milesDriven that returns the dollar cost to drive those miles. Define that method in a program whose inputs are the car's miles per gallon and the price of gas in dollars per gallon (both doubles). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your drivingCost() method three times.
Module 3 Labs
Lab 3.35
This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by user specified arrow base height, arrow base width, and arrow head width.
Lab 3.36
Given a line of text as input, output the number of characters excluding spaces, periods, exclamation points, or commas.
Module 4 Labs
Lab 4.5
Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's numbers on one line, each number followed by one space. Also output the total weight, by summing the array's elements. Also output the average of the array's elements. Also output the max array element.
Module 5 Labs
Online Shopping Cart
This consisted of editing two different .java files. These are in the OnlineShoppingCart folder.
Module 2
We implemented either the Dog.java class or the Cat.java class based on the specifications in the UML Class diagram.I wrote both the Dog.java class and the Cat.java class for a reference for anyone who may need to use the classes.
Note: Both the Dog.java class and the Cat.java class are in the PetBAG package folder as they are part of the PetBAG project later in the class.
Module 5
Implemented the Monkey.java class based off the specification documentation and edited the Driver.java class.Module 6
Debugged the given Paint1.java file first. Then added loops to the Paint1.java file to validate all user input and handle exceptions so that all tests pass.Module 7
Added code to calculate the amount of cans needed to paint the wall based off the size of the wall and the amount of paint needed.Preliminary work for a local pet boarding and grooming business (PetBAG). Developing a Pet.java class based on the UML diagram.
Work done for Grazioso Salvare, an international search and rescue animal company. Developed the Monkey.java class based on the UML diagram. Edited the Driver.java class to display the start menu, handle user input, handle validation, and take appropriate actions based on the user input.