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;...
User Profile
Collapse
-
loops and other problems
-
thanx a ton i think i have got it now -
[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)
...Leave a comment:
-
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 ...
No activity results to display
Show More
Leave a comment: