004-010-005

Multidimensional Array Element Count: Points Table Size

Easy

Problem Description

multidimensional array Element Count: Points Table Size

In this problem, you will create a program that retrieves the row and column counts of a 2D array using the .length property, calculates the total number of point data entries, and displays the result to standard output.

Learning Objective: Calculate total data volume with 2D array row and column counts

Check data scale of weekly points earning table. Use .length property of 2D array to get how many days of data exist (row count) and how many stores (column count), then calculate total point data count. Understand that numeric 2D arrays also use same length property.

Input

Line 1: Number of days n (1-3)
Following lines: Points for n days (3 stores per day: Store A Store B Store C)

Output

=== Points Table Size ===
Days: [n] days
Stores: [3] stores
━━━━━━━━━━━━━━━━
Total: [n×3] point data entries
```java

## Examples

### Example 1: Points table for 2 days
Input:
```java
2
10 20 30
15 25 35
```java
Output:
```java
=== Points Table Size ===
Days: 2 days
Stores: 3 stores
━━━━━━━━━━━━━━━━
Total: 6 point data entries

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up