Question
Need HELP, Please keep it simple and show the output too. Thank you. write a program in Java Language to count (in LOC) the total
| Need HELP, Please keep it simple and show the output too. Thank you. write a program in Java Language to count (in LOC) the total program size total size of each of the programs parts (classes, functions, or procedures) the number of items (or methods) in each part
Produce and print a single count for the entire program size and item counts for each part together with the part name
If LOC is not a suitable size measure for the language you use, see chapter 3 and the following Hints section for alternative ways to measure size. Then write program 2 to use those measures.
Use the size counting standard and the coding standard defined in your report assignments.
Thoroughly test the program. At a minimum, test the program by counting the total program and part sizes in programs 1 and 2. Example output is illustrated in Table 1. In Table 1, consider the word part to be whatever applies for your language: class, function, procedure, and so forth. |
Program Number | Part Name | Number of Items | Part Size | Total Size |
1 | ABC | 3 | 86 |
|
| DEF | 2 | 8 |
|
| GHI | 4 | 92 |
|
|
|
|
| 212 |
2 |
|
|
|
Table 1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started