473,461 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

\\-help Java Assignments-//

1
Alright new to java and thought you guys might help me out understanding how to write programs...


I got the basics down, here are a few assignments I got and maybe you can hurry and write them so I can learn...

Thanks...

#1

Bermuda Triangles:

PROGRAM:Write a program that accepts the number of rows as input. The program should produce a multiplication triangle of n rows.


EX: Please enter the number of rows: 6

The multiplication triangle
1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
6 12 18 24 30 36

#2

PROGRAM: Finding Factorials

//Write a program that finds the factorial of a value entered by the user.

To calculated 12! (12 Factorial) for example the program should calculate the value of
1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12

#3

Program: Factors

//Write a program that determines all the factors of a given number,

SAMPLE OUTPUT:
The factors of 24 are:

1,2,3,4,6,8,12,24

This will be greatly appreciated and put to good use for me and few buddies trying to learn...

ASAP would be nice ;)
Apr 28 '07 #1
1 1274
JosAH
11,448 Expert 8TB
I got the basics down, here are a few assignments I got and maybe you can hurry and write them so I can learn...
IMHO it's better for your learning if you try to write the exercises yourself. We
can help you when you're stuck. Just ask a specific question here and I'm sure
someone will supply you an answer.

kind regards,

Jos
Apr 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jacek Generowicz | last post by:
I am dealing with an application which reads in configurations by calling (a wrapper around) execfile. Any configuration file may itself execfile other configuration files in the same manner. I...
3
by: bearophileHUGS | last post by:
The current version of ShedSkin (http://shedskin.sourceforge.net/ experimental Python to C++ compiler) is rather alpha, and the development work is focused on debugging and implementing some more...
21
by: Paul Steckler | last post by:
Here's some code that's giving me differing results, depending on the compiler. typedef foo { int A,B; } FOO; int main() {
8
by: Fredrik Tolf | last post by:
Hi list! I'm relatively new to Python, and one thing I can't seem to get over is the lack of in-expression assignments, as present in many other languages. I'd really like to know how Python...
0
by: Simon Burton | last post by:
I've been doing a little c programming again (ouch!) and it's just hit me why python does not allow assignment inside expressions (as in c): because it is absolutely essential that all assignments...
17
by: Brian Blais | last post by:
Hello, I have a couple of classes where I teach introductory programming using Python. What I would love to have is for the students to go through a lot of very small programs, to learn the...
28
MMcCarthy
by: MMcCarthy | last post by:
Policies below superceded by FAQ Post Course Work Questions and Answers. ADMIN
4
by: Raghunandan24 | last post by:
Hi, I was looking for engines to evaluate java assignments. This should ideally be open source. Thanks, Raghu
2
by: Er45Yu | last post by:
please can you tell me how do you convert it to the codes. Write a Java program called MaxMin that prompts the user to enter three integers. The program finds the minimum and maximum values that...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.