User Profile

Collapse

Profile Sidebar

Collapse
arishma
arishma
Last Activity: Sep 11 '07, 03:25 AM
Joined: Sep 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • arishma
    started a topic loops and other problems
    in Java

    loops and other problems

    someone pliz help have written this program but it does not display 2 to that power instead it asks to enter a power and when -1 is entered the program ends m missing out on something if someone could help then

    import java.io.*;
    class power
    {
    public static void main(String[] args)throws IOException
    {
    int count = 0;
    int power;
    int exponent = 2;
    double result = 1;...
    See more | Go to post

  • arishma
    replied to writing a java program
    in Java
    thanx a ton i think i have got it now
    See more | Go to post

    Leave a comment:


  • arishma
    replied to writing a java program
    in Java
    [CODE=java]import java.io.*;
    class testscore {
    public static void main(String[] args) {

    int testscore;
    char Grade;
    char Grade;//To print the student grade on the screen

    if (testscore >=0 && testscore <= 39)
    System.out.prin tln( "E" ) ;
    if (testscore >= 40 && testscore <= 49)
    ...
    See more | Go to post
    Last edited by r035198x; Sep 6 '07, 06:40 AM. Reason: added the missing code tags

    Leave a comment:


  • arishma
    started a topic writing a java program
    in Java

    writing a java program

    a program that expects a numeric grade as input and outputs the corresponding letter grade. the program uses the following grading scale:
    numeric range letter grade
    0 39 E
    40 49 D
    50 56 C
    57 63 C+
    64 70 B
    71 77 B+
    78 ...
    See more | Go to post
No activity results to display
Show More
Working...