aspose file tools*
The moose likes Beginning Java and the fly likes help on java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help on java " Watch "help on java " New topic
Author

help on java

miranda saunders
Greenhorn

Joined: Dec 05, 2011
Posts: 3
hi all im mandy. im studing sofware enginering and im struggling making program and need it in by next week and could really do with help please
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Please TellTheDetails
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

Welcome to the Ranch!

John is right, we don't even know what your program should do. Also, note that we are NotACodeMill; we will guide you, but not write your program for you. And next time please UseAMeaningfulSubjectLine.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
miranda saunders
Greenhorn

Joined: Dec 05, 2011
Posts: 3
You are required to write a program in Java that achieves this. The program is in a number of parts.
1. The program should allow the tutor to enter in the various marks which the students have been awarded, until the tutor enters in a mark exceeding 100. At this point the program should display a histogram. Each star represents a student who achieved a module mark in the range shown.
This is an example of the output. The example below shows the distribution of marks for 20 students. Your program should work with any number of student marks entered.
0-29 ***
30-39 *****
40-69 ********
70-100 ****
20 students in total.

As the tutor enters each mark, a counter should count the number of student’s marks which have been entered.
Use the same 4 category ranges shown here.
Make sure the display is neatly formatted as above.
Your program should make use of ‘loops’ for the display of each category.
Extras:
2. After the histogram, a variety of statistics should be displayed (e.g. average mark awarded, number of students passing, highest mark, and lowest mark)
3. The histogram shows each category horizontally across the screen. Copy your original solution and make changes to the copy to display the histogram vertically (the stars in a category should go downwards and not across the screen).
4. An extra for the very brave!
Modify your vertical display program to first ask the tutor how many categories are required, and the program should then show the display with the correct categories. (This requires knowledge beyond that covered so far on the module).
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14108
    
  16

Ok, so how far are you with the assignment? Post your code (between [code] ... [/code] tags, so that it will be nicely formatted by the forum) and explain us where exactly you got stuck - then we'll be glad to help you get over the difficulties.

(We're not going to do your complete homework assignment for you, because then you wouldn't learn anything!).


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
miranda saunders
Greenhorn

Joined: Dec 05, 2011
Posts: 3
i havent started it yet im only just learning java and really struggling
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14108
    
  16

Do you have a book, or are you following classes to learn how to program in Java? Do you have the JDK installed already, and do you know how to write, compile and run a simple program?

You can find a very good set of tutorials on Oracle's website.

If you don't know how to write your very first program, then have a look at the Hello World tutorial. After that, Learning the Java Language will teach you the basics.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help on java