1 Replies - 331 Views - Last Post: 09 November 2017 - 10:19 AM Rate Topic: -----

#1 MOKITHEDON  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 09-November 17

Need help with creating a progress outcome

Posted 09 November 2017 - 09:31 AM

The school requires a program to show the progression outcome for students at each level.
Write this program in Java using the data in the table below. The program should prompt for the
number of credits at pass, defer and fail and then display the appropriate progression outcome. The
range of acceptable credits is 0, 20, 40, 60, 80, 100 and 120.

The table details the progression outcomes for common result profiles as defined by the school
regulations. Note the table does not take into account failure or deferral in modules which are
prerequisites for core modules at the next level and this aspect should not be considered for your
program.

Flow Diagram - Note that before you start to program your solution you should create your flow
diagram that represents your algorithm in a structured manner.
Test Plan - You should also produce a test plan that covers your program decision points and submit
your test plan results with your flow diagram and Java program code.

so far i have done this...
package coursework1;

import java.util.Scanner;

public class CourseWork1 {

    public static void main(String[] args) {
    
        Scanner MK = new Scanner (System.in);
        int pass, defer, fail; 
        
        System.out.println("please enter your pass  ");
        pass = MK.nextInt();
        System.out.println("please enter your defer  ");
        defer = MK.nextInt();
        System.out.println("please enter your fail  ");
        fail = MK.nextInt();
        
        if (pass <= 0 && pass <20 && defer <= 60 && defer <=120 && fail <=60 && fail <= 0)
        System.out.println("Your progression outcome " + pass + defer + fail + " is a do not progress module-retriever" );
        
//        else 
//            if (credits <=20 || credits <40)
//            System.out.println("Your final grade of " + credits + " is shit");
//        else
//            if (credits <=40 || credits <60)
//                System.out.println("Your final grade of " + credits + " is do not progress - module retriver");
//        else 
//            if (credits <=60 || credits <80)  
//                System.out.println("Your final grade of " + credits + " is do not progress - module retriver");
//        else
//            if (credits <=80 || credits <100)  
//                System.out.println("Your final grade of " + credits + " is do not progress - module retriver");
//        else
//            if (credits <=80 || credits <100) 
//                System.out.println("Your final grade of " + credits + " is do not progress - module retriver");
//        else 
//            if (credits <=100 || credits <120)
//                System.out.println("Your final grade of " + credits + " is progress - module trailer");
//        else
//            if (credits ==120)
//                    System.out.println("Your final grade of " + credits + " is progress");
    }
    
}
:code:/>
but nothing prints out i dont understand whats going wrong i have just started to learn java many thanks guys.

i cant seem to attach the picture of the table so...
Volume of Credit at Each Level
                          Pass (including condoned pass) Defer Fail  Progression Outcome
1                          120                            0        0  Progress                       
                                                         
2                          100                            20       0  Progress – module trailer
3                          100                            0        20 Progress – module trailer
4                          80                             40        0 Do not Progress – module retriever
5                          80                             20        20 Do not Progress – module retriever
6                          80                             0         40 Do not Progress – module retriever
7                          60                             60        0 Do not progress – module retriever
8                          60                             40        20 Do not progress – module retriever
9                          60                             20        40 Do not progress – module retriever
10                         60                             0         60 Do not progress – module retriever
11                         40                            80         0 Do not progress – module retriever
12                         40                            60         20 Do not progress – module retriever
13                         40                            40         40 Do not progress – module retriever
14                         40                            20         60 Do not progress – module retriever
15                         40                            0           80 Exclude
16 20 100 0 Do not progress – module retriever you get the idea.
17 20 80 20 Do not progress – module retriever
18 20 60 40 Do not progress – module retriever
19 20 40 60 Do not progress – module retriever
20 20 20 80 Exclude
21 20 0 100 Exclude
22 0 120 0 Do not progress – module retriever
23 0 100 20 Do not progress – module retriever
24 0 80 40 Do not progress – module retriever
25 0 60 60 Do not progress – module retriever

26 0 40 80 Exclude
27 0 20 100 Exclude
28 0 0 120 Exclude

This post has been edited by modi123_1: 09 November 2017 - 09:32 AM
Reason for edit:: In the future, please use the [code] tag button in the editor.


Is This A Good Question/Topic? 0
  • +

Replies To: Need help with creating a progress outcome

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 3444
  • View blog
  • Posts: 15,606
  • Joined: 20-September 08

Re: Need help with creating a progress outcome

Posted 09 November 2017 - 10:19 AM

Quote

Note that before you start to program your solution you should create your flow
diagram that represents your algorithm in a structured manner.

Can we see that please?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1