This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help on java

 
miranda saunders
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please TellTheDetails
 
Rob Spoor
Sheriff
Pie
Posts: 20605
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
miranda saunders
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15436
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!).
 
miranda saunders
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i havent started it yet im only just learning java and really struggling
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15436
41
Android IntelliJ IDE Java Scala Spring
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic