Homework Statement
The top-selling Red and Voss tire is rated 60000 miles, which means nothing. In fact, the distance the tires can run until wear-out is a normally distributed random variable with a mean of 70000 miles and a standard deviation of 5000 miles.
A: What is the probability that...
I'm trying to make a program that prompts a user to enter a binary number and then converts the string into integers by using Integer.parseInt. Right now though, I'm having trouble with tokenizing the string. My code works when I use the predefined variable temp but not when I enter the same...
I'm entering it like 14:00. I tried changing the variables to integers and used nextInt, but the program waits for me to do something else after that. I tried entering 14:00 again after that just to try something and got an InputMismatchException, if that helps.
I'm trying to write a program that converts military time to civilian time (24-hour to the standard 12-hour) but I'm having trouble with changing the delimiter to ":". I've tried re-working the code every way I can think of and it still won't work properly.
import java.util.Scanner;
public...
Homework Statement
Let a>1. Prove the limit as n goes to \infty of a1/n = 1.
The Attempt at a Solution
Given \epsilon > 0, \foralln>N, |a1/n-L|<\epsilon and N=(a-1)/\epsilon.
|a1/n-L| = a1/n-1
...and that's where I get confused. I know that I have to multiply (a1/n-1) by something...
My professor assigned a project that has the user enter information for an Object called Student which is derived from Person. The information is a name, an id number, two scores, an average, and the letter grade equivalent of the average. I'm having trouble sorting the student's according to...
I'm having issues with a sorting class that I'm trying to call from my main program, TestStudent. I don't think it's taking the user's input correctly when I try to read it into an array but I can't figure out why.
class Student:
public static void selectionSort(double[] numbers)
{...
I'm trying to create a program that derives a class named Student from the class Person, and then I'll test everything in the main program in TestStudent. What I'm having trouble with at the moment, is calling the methods correctly. Whenever I try to call a method in the main program, I get this...
Homework Statement
Show that any rational in the interval (0,1] can be expressed as a finite sum r=1/q1+1/q2+...+1/qn where the qj are integers and q1<q2<...<qn.
Homework Equations
The Attempt at a Solution
Let x\inQ and 0<x\leq1.
Prove \existsq1, q2, ..., qn\inN with...
Homework Statement
State and prove a natural generalization of "prove that for any three positive real numbers x1, x2, x3, x1/x2 + x2/x3 + x3/x1 \geq 3.
Homework Equations
AG Inequality is used in subproof (x1/x2 + x2/x3 + x3/x1 \geq 3)
The Attempt at a Solution
I don't know what...
Homework Statement
Let X={1/n: n\inN} (where N is the set of natural numbers)
i) Does inf(X) exist?
ii) What is inf(X)?
Homework Equations
The Attempt at a Solution
I think I should try to prove inf(X) exists by considering it a Lower Limit, but I don't know how to go about...
I've been working on this and I can't figure out why, exactly, it's not working properly. I can reserve a seat 4A but when I try to reserve seat 6A, the output includes a line of string that says "The seat you requested is unavailable. Please make another selection." yet it still lets me make...
Homework Statement
Use part (a) to prove the Greatest Lower Bound Property.
(a): If M is any upper bound for A, then: x\in(-A), -x\inA, and -x\leqM. Therefore x\geq-M, hence -M is a lower bound for -A. By the Least Upper Bound Property, inf(-A) exists. If inf(-A) exists, then...