pharaoh fortune slot
ExamNotes.net
Welcome, Guest. Please login or register.
November 24, 2017, 07:08:11 AM

Login with username, password and session length
* Home Help Search Login Register
  Show Posts
Pages: [1] 2 3 ... 5
1  General discussions / Programming Forum / I need help with my logic. on: October 08, 2006, 03:54:09 PM
I am trying to get this program to return the total number of grades entered as well as the total number of A's, B's C'a etc.
I am new at this and just needs some guidance.




Error:

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
   Char cannot be resolved to a type
   numberOfA cannot be resolved
   numberOfB cannot be resolved
   numberOfC cannot be resolved
   numberOfD cannot be resolved
   numberOfF cannot be resolved

   at ExamScorer.main(ExamScorer.java:22)

public class ExamScorer
{
            public static void main(String[] args)
            {
               
               
               System.out.println("Enter exam score: ");
               int score;
               Char grade;
               int sum;
               int next;
               String answer;
               int countGrade = 0;
               int countScore = 0;
               Scanner keyboard = new Scanner(System.in);
               
               {
                   System.out.println();
                   System.out.println("Enter all of the exam scores.");
                   sum=0;
                   int NumberOfA = 0;
                   int NumberOfB = 0;
                   int NumberOfC = 0;
                   int NumberOfD = 0;
                   int NumberOfF = 0;
                   next = keyboard.nextInt();
                   score = keyboard.nextInt();
                   grade = keyboard.next();
                 
               }
                      sum = sum + next;
                       numberOfA++;
                      numberOfB++;
                      numberOfC++;
                      numberOfD++;
                      numberOfF++;
                      next = keyboard.nextInt();
                   
                                                   
               if (score >= 90)
                   grade = 'A';
               else if (score >= 80)
                   grade = 'B';
               else if (score >= 70)
                   grade  = 'C';
               else if (score >= 60)
                   grade = 'D';
               else
                  grade = 'F';
2  CompTIA / A+ forum / Thanks on: August 02, 2003, 12:27:55 AM
..for the explanation
3  CompTIA / A+ forum / Input/Output IO on: July 31, 2003, 10:38:54 PM
While we are on the subject... Does every device have 2 or more memory range? Mike Meyers didn't point this out in his book but did state that it was important to understand. I have 2 memory range for each device attached example,
HP keyboard [00000060-00000060]
System speaker [00000061-00000061]
HP Keyboard [00000064-00000064]
Secondary IDE Channel [00000170-00000177]
Secondary IDE Channel [00000376-00000376]

Please help me to understand. Thanks
4  CompTIA / A+ forum / Scanner devices on: July 31, 2003, 10:10:08 PM
Its a HP scanner, therefore the devices were already installed on the HP. All I did was plug it into the USB port and it recognized it. With the scanner attach, I have to restart the cable modem, or disable and enable to get a fresh connection

That's okay I am not ready to re-install as yet. I am waiting until I get my other pc.
:-)

Thanx for all the response.
5  CompTIA / A+ forum / Changing IRQ on: July 31, 2003, 01:57:40 AM
Yes it is... My Internet connection seems slower whenever I attach the USB Scanner
6  CompTIA / A+ forum / Changing IRQ on: July 30, 2003, 01:57:52 PM
Currently my NIC and USB are sharing IRQ 19, IRQ 7 is available, how do I change the NIC to IRQ 7? I am using XP-Home. Thanks
7  CompTIA / A+ forum / No I am not joking. on: July 27, 2003, 06:25:43 PM
I am asking a simple question. I look at my Device Manager and I have listed under the IDE ATA/ATAPI Controllers:
Intel(r)82801AA Bus Master IDE Controller
Primary IDE Channel
Secondary IDE Channel

My hard drive is a Maxtor 4D040H2 I have no other hardware besides my CD-R/RW on my compauter, therefore I am asking for clarity on whether the correct answer is 2 or it is 4. I don't know that's why I am asking. Reading the thread doesn't clear up the question either. So help a newbie out.

Thanks
8  CompTIA / A+ forum / Sooooo on: July 27, 2003, 01:32:15 AM
Does this means that you can add 2 devices to the primary controller and 2 to the secondary controller? Making a total of 4 devices?
9  General discussions / IT career women / IT Women in Maryland on: June 01, 2003, 09:41:48 PM
I am looking for a study partner in the Silver Spring/Laurel/DC or Burtonsville area for A+, Network+ and MSCE WIN 2000 Pro.
10  General discussions / IT career women / Congrats!!! on: May 16, 2003, 12:13:24 PM
Well done!!
11  Microsoft (MCSE, MCSD, MOUS, MCAD) / 70-210 / Plugin140_40 Trace in Windows XP Home on: March 15, 2003, 07:44:20 PM
I found this file in my owner folder and is wondering if anyone can tell what it is.

.plugin140_40.trace

I am using Windows XP home edition.

Thanx
12  Microsoft (MCSE, MCSD, MOUS, MCAD) / 70-218 / plugin that trace on: March 06, 2003, 06:06:42 PM
I found this file in my owner folder and is wondering if anyone can tell what it is.

.plugin140_40.trace

I am using windows xp home edition.

Thanx
13  General discussions / IT career women / Thanx on: January 07, 2003, 01:58:35 AM
Thanks for the response. I will continue to research the company.
14  CompTIA / A+ forum / Very Very Sad on: January 03, 2003, 04:49:07 PM
I just found out that someone has been logging into my Yahoo account while I am also logged in. This person change my password and Yahoo put me through the ringer to prove the account belongs to me.
There are so lonely people out there. I truly hope the government makes an example out of that company in Florida for causing that girl's death.
15  General discussions / IT career women / FDM...Free Training on: January 03, 2003, 04:36:12 PM
Has anyone used this company? If so what are your thoughts!!
http://www.fdmgroup.com/fdm/itdev_usa.shtm

Thanks
Pages: [1] 2 3 ... 5
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!