I'm recieving a ton of errors on my Java doc for an assignment I have can anyone help me fix them?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I'm recieving a ton of errors on my Java doc for an assignment I have can anyone help me fix them? 

code:

package chapter.pkg6.part.pkg2.assignment;
/**
 *
 * @author matty
 */
public class Chapter6Part2Assignment {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // Method  
      long cardnumber = 4440967484181607L;
      
      System.out.println("Please enter the card number/n");
      
      System.out.println(cardnumber + " is " + (validitychk(cardnumber) ? "valid" : "invalid"));
       // Return true if the card number is valid

   public static boolean validitychk(long cnumber) {

      return (thesize(cardnumber)>=13&& thesize(cnumber)<= 16)&&(prefixmatch(cardnumber, 4)

         || prefixmatch(cardnumber,5) || prefixmatch(cnumber,37) || prefixmatch(cardnumber, 6))

         && ((sumdoubleeven(cnumber) + sumodd(cnumber)) % 10 == 0);
   }
   

 public static int sumdoubleeven(long cardnumber) {

      int sum = 0;

      String num = cardnumber + "";

      for (int i = thesize(cardnumber) - 2; i >= 0; i -= 2)

         sum += getDigit(Integer.parseInt(num.charAt(i) + "") * 2);

      return sum;

   }

   public static int getDigit(int cardnumber) {

      if (cardnumber < 9)

         return cardnumber;

      return cardnumber / 10 + cardnumber % 10;

   }
   
   public static int sumodd(long cardnumber) {

      int sum = 0;

      String num = cardnumber + "";

      for (int i = thesize(cardnumber) - 1; i >= 0; i -= 2)

         sum += Integer.parseInt(num.charAt(i) + "");

      return sum;
   }
  
   }

    
   I attached an image of the code and the error issue as well. 

 

Chapter 6 part 2 assignment - Apache NetBeans IDE 12.4
File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help
Q Search (Ctrl+I)
<default config>
200,3/746,5MB
Start Page
A Chapter6Part2Assignment.java x
Q Pも品
Source
History
8
* @author matty
* /
9
10
11
public class Chapter6Part2Assignment {
12
13 D
/**
14
* @param args the command line arguments
15
*/
16 O
public static void main (String[] args) {
// Method
17
18
long cardnumber = 4440967484181607L;
19
20
System.out.println ("Please enter the card number/n");
21
System.out.println (cardnumber + " is " + (validitychk (cardnumber) ? "valid" : "invalid"));
// Return true if the card number is valid
23
public static boolean validitychk (long cnumber) {
return (thesize (cardnumber) >=13&& thesize (cnumber)<= l6) && (prefixmatch (cardnumber, 4)
|| prefixmatch (cardnumber, 5) || prefixmatch (cnumber, 37) || prefixmatch (cardnumber, 6))
30
31
&& ((sumdoubleeven (cnumber) + sumodd (cnumber)) $ 10 == 0);
32
33
34
35
public static int sumdoubleeven (long cardnumber)
{
36
37
int sum = 0;
38
39
String num = cardnumber + "";
40
for (int i = thesize (cardnumber) - 2; i >= 0; i -= 2)
42
43
sum += getDigit (Integer.parseInt (num.charAt (i)
+ "") * 2);
44
45
return sum;
46
47
}
48
49
public static int getDigit (int cardnumber) {
50
51
if
(cardnumber < 9)
52
- E Output
75:4
| INS Windows (CRLF)
11:23 AM
O Type here to search
后 x
10/28/2021
6.
Projects D
IIL T
Transcribed Image Text:Chapter 6 part 2 assignment - Apache NetBeans IDE 12.4 File Edit View Navigate Source Refactor Run Debug Profile Team Tools Window Help Q Search (Ctrl+I) <default config> 200,3/746,5MB Start Page A Chapter6Part2Assignment.java x Q Pも品 Source History 8 * @author matty * / 9 10 11 public class Chapter6Part2Assignment { 12 13 D /** 14 * @param args the command line arguments 15 */ 16 O public static void main (String[] args) { // Method 17 18 long cardnumber = 4440967484181607L; 19 20 System.out.println ("Please enter the card number/n"); 21 System.out.println (cardnumber + " is " + (validitychk (cardnumber) ? "valid" : "invalid")); // Return true if the card number is valid 23 public static boolean validitychk (long cnumber) { return (thesize (cardnumber) >=13&& thesize (cnumber)<= l6) && (prefixmatch (cardnumber, 4) || prefixmatch (cardnumber, 5) || prefixmatch (cnumber, 37) || prefixmatch (cardnumber, 6)) 30 31 && ((sumdoubleeven (cnumber) + sumodd (cnumber)) $ 10 == 0); 32 33 34 35 public static int sumdoubleeven (long cardnumber) { 36 37 int sum = 0; 38 39 String num = cardnumber + ""; 40 for (int i = thesize (cardnumber) - 2; i >= 0; i -= 2) 42 43 sum += getDigit (Integer.parseInt (num.charAt (i) + "") * 2); 44 45 return sum; 46 47 } 48 49 public static int getDigit (int cardnumber) { 50 51 if (cardnumber < 9) 52 - E Output 75:4 | INS Windows (CRLF) 11:23 AM O Type here to search 后 x 10/28/2021 6. Projects D IIL T
Output - Chapter 6 part 2 assignment (run) X
run:
Please enter the card number/n
DD
O Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: chapter.pkge.part.pkg2.assignment.ChapteréPart2Assignment.thesize
at chapter.pkg6.part.pkg2.assignment.Chapter6Part2Assignment.validitychk (ChapteréPart2Assignment.java:27)
at chapter.pkg6.part.pkg2.assignment.Chapter6Part2Assignment. main (ChapterEPart2Assignment.java:22)
C:\Users\matty\AppData\Local\NetBeans\Cache\12.4\executor-snippets\run.xml:11l: The following error occurred while executing this line:
C:\Users\matty\AppData\Local\NetBeans\Cache\12.4\executor-snippets\run.xml:94: Java returned: 1
BUILD FAILED (total time : 3 seconds)
Transcribed Image Text:Output - Chapter 6 part 2 assignment (run) X run: Please enter the card number/n DD O Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: chapter.pkge.part.pkg2.assignment.ChapteréPart2Assignment.thesize at chapter.pkg6.part.pkg2.assignment.Chapter6Part2Assignment.validitychk (ChapteréPart2Assignment.java:27) at chapter.pkg6.part.pkg2.assignment.Chapter6Part2Assignment. main (ChapterEPart2Assignment.java:22) C:\Users\matty\AppData\Local\NetBeans\Cache\12.4\executor-snippets\run.xml:11l: The following error occurred while executing this line: C:\Users\matty\AppData\Local\NetBeans\Cache\12.4\executor-snippets\run.xml:94: Java returned: 1 BUILD FAILED (total time : 3 seconds)
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY