Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Fundamentals of Software Development 1 - Assignment | CSE 1001, Assignments of Software Engineering

Material Type: Assignment; Class: Fund of Software Dev 1; Subject: Computer Sciences; University: Florida Institute of Technology; Term: Unknown 1989;

Typology: Assignments

2009/2010

Uploaded on 02/24/2010

koofers-user-8wb
koofers-user-8wb 🇺🇸

4.5

(1)

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Ramanujan’s Taxi revisited
Write a Java program that:
1. Reads in a number nfrom the command prompt (no
prompt keyboard input), and
2. Counts (do not print) the number of solutions to the
following equation, with all numbers up to and
following equation, with all numbers up to and
including n:
a3+ b3= c3+ d3
A sample dialog is provided below (assume that the Java
filename is Numbers4.java).
U:\> java Numbers4 24
24 solutions
pf3

Partial preview of the text

Download Fundamentals of Software Development 1 - Assignment | CSE 1001 and more Assignments Software Engineering in PDF only on Docsity!

Ramanujan’s Taxi revisited

Write a Java program that:^ 1.

Reads in a number

n from the command prompt

(no

prompt keyboard input), and

Counts

(do not print) the number of solutions

to the

following equation, with all numbers up to andfollowing equation, with all numbers up to and including

n

3 a

b

c

d

3

A sample dialog is provided below (assume that the Javafilename is

Numbers4.java

U:> java Numbers4 2424 solutions

Pythagorean Triplets

Write a second Java program that:^ 1.

Reads in a number

n from the command prompt

(no

prompt keyboard input), and

Counts

(do not print) the number of solutions

to the

following equation, with all numbers up to andfollowing equation, with all numbers up to and including

n

2 a

b

c

2

A sample dialog is provided below (assume that the Javafilename is

Numbers3.java

U:> java Numbers3 158 solutions