Posts

CS3550 Test 1 Questions and Answers

My 06 WRX mod story

Image
How 2006 WRX Should Perform STOCK In this blog post, I will be sharing my ideas as how a 2006 Subaru Impreza WRX should have been equipped from the factory. I will be covering engine performance, suspension and looks. I have considered wrx to be my dream car ever since I played Gran Turismo on PS, having said that, wrx is not a performance car from the video game. My previous car was a 02 BMW M3, that car had performance, style and super handling. My issue with M3 was the cost to own and mod. Once I took ownership of a 06 WRX, I realized it was far from being the car that it should have been. I am keeping in mind WRX STI is the better option, but WRX could have been better than the base WRX, in my mind. Here is my attempt at playing a role of an engineer.   Performance:  Issues: Low on power and torque, needs top end, and improved power curve. My Mods:  1.) Intercooler upgrade: STI Top Mount Intercooler (TMIC) 2.) Turbo upgrade: STI Turbo (VF43) with cust...

CS 3401 Homeworks 3

Homework # 3 Exercise #1 Write an implementation of the Rational.java class and that uses BigInteger for numerator and denominator. Write a test driver class called TestRational.java that creates at least two Rational numbers (using BigIntegers as the arguments to the Rational constructor) and then adds, subtracts, multiplies and divides the Rational numbers and tests them for equality, printing out the results of each of these operations. Be sure your programs compile and run without error. Review the Submission Requirements document and make sure your submission meets those requirements. Please also review the Grading Guidelines for an indication of general guidelines used in evaluating your assignments. Deliverables Turn in the files:     Rational.java     TestRational.java ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Rational.java package assignment3; import java.math.BigIntege...

CS3401 Practice Quiz 2 Part 3

Image
Introduction to Java Programming Introduction to Java Programming, Ninth Edition, Y. Daniel Liang Chapter 24 Developing Efficient Algorithms Please send suggestions and errata to Dr. Liang at y.daniel.liang@gmail.com . Indicate which book and edition you are using. Thanks! Section 24.2 Measuring Algorithm Efficiency Using Big O Notation 24.1   Estimating algorithm efficiency is ________ A. to measure their actual execution time. B. to estimate their execution time. C. to estimate their growth function. Your answer is correct 24.2   An input that results in the shortest execution time is called the _____________. A. best-case input B. worst-case input C. average-case input Your answer is correct 24.3   Why is the analysis often for the worst case? A. Best-case is not representative. B. Worst-case is not representative, but worst-case analysis is very useful. You can show that the algo...

CS3401 Practice Quiz 2 Part 2

Image
Introduction to Java Programming Introduction to Java Programming, Ninth Edition, Y. Daniel Liang Chapter 10 Thinking in Objects Please send suggestions and errata to Dr. Liang at y.daniel.liang@gmail.com . Indicate which book and edition you are using. Thanks! Section 10.2 Immutable Objects and Classes 10.1   Which of the following statements are true about an immutable object? A. The contents of an immutable object cannot be modified. B. All properties of an immutable object must be private. C. All properties of an immutable object must be of primitive types. D. An object type property in an immutable object must also be immutable. E. An immutable object contains no mutator methods. Your answer is correct Section 10.3 Scope of Variables 10.2   What is the printout for the first statement in the main method? public class Foo {   static int i = 0;   static int j = 0;  ...