Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Initialize 2 D array to store sales data for 3 departments and 4 quarters sales = [ [ 0 for _ in range (
# Initialize D array to store sales data for departments and quarters
sales for in range for in range
# Input sales data
for deptindex in range:
for quarterindex in range:
salesdeptindexquarterindex floatinputfEnter sales for Department chr deptindex Quarter quarterindex :
# Display sales data
print
Sales Data:"
for deptindex in range:
for quarterindex in range:
printfDepartment chr deptindex Quarter quarterindex : salesdeptindexquarterindex
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