Current Attempt in Progress The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cells not displayed are currently empty, and any cells with numbers are formatted numeric. 1 BOROUGH 2 Bronx 3 Queens 4 Manhattan 5 TYPE SAT READING SAT MATH SAT WRITING PRIVATE PRIVATE PUBLIC PRIVATE PUBLIC Bronx Queens 7 Queens 8 Queens 9 Manhattan PUBLIC PRIVATE PUBLIC PRIVATE 10 Manhattan 11 Manhattan PUBLIC 12 Manhattan PRIVATE 13 Bronx PRIVATE 14 Queens PUBLIC PUBLIC 15 Manhattan 16 Bronx PUBLIC Sub Object first row – 2 last row Range ("A1000").End (x1Up).Row End If Next 444 397 425 late_average_SAT_score_for_school_type() End Sub 568 524 433 430 544 395 468 452 492 471 451 459 O 1,395 O 912 O 1.365 O 825 O 1,358 For current_row last_row To first row Step -3 If Cells (current_row, 1).Value = "Bronx" Or Cells (current_row, 1).Value = "Queens" Then sum_sat_score= sum_sat_score + Cells (current_row, 5).Value Cells (last_row+3, 1).Value = "SAT scores " Cells (last_row + 3, 5).Value sum_sat_score 454 688 553 455 434 435 660 455 435 454 456 660 449 574 688 425 492 471 524 468 568 451 544 433 459 395 430 444 452 397

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Current Attempt in Progress
The following Excel image has a VBA program (see below).
What will be the result after the program is executed?
Any cells not displayed are currently empty, and any cells with numbers are formatted numeric.
BOROUGH
Bronx
3 Queens
4 Manhattan
Bronx
6 Queens
Queens
8 Queens
9 Manhattan
10 Manhattan
11 Manhattan
12 Manhattan
13 Bronx
14 Queens
15 Manhattan
16 Bronx
End If
Sub Object late_average_SAT_score_for_school_type()
first row 2
last_row Range ("A1000").End (x1Up) .Row
End Sub
TYPE SAT READING SAT MATH SAT WRITING
PRIVATE
PRIVATE
PUBLIC
PRIVATE
PUBLIC
PUBLIC
PRIVATE
PUBLIC
PRIVATE
PUBLIC
PRIVATE
PRIVATE
PUBLIC
PUBLIC
PUBLIC
444
397
425
O 1,395
O 912
O 1,365
O 825
O 1,358
568
524
Save for I ater
433
430
544
395
468
452
492
471
451
459
Next
Cells (last_row + 3, 1).Value = "SAT scores "
Cells (last_row + 3, 5).Value
sum_sat_score
D
454
688
553
455
434
435
660
455
435
454
456
For current_row last_row To first row Step -3
If Cells (current_row, 1).Value = "Bronx" Or Cells (current_row, 1).Value = "Queens" Then
sum_sat_score= sum_sat_score + Cells (current_row, 5).Value
660
449
574
688
425
492
471
524
468
568
451
544
433
459
395
430
444
452
397
Att
Transcribed Image Text:Current Attempt in Progress The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cells not displayed are currently empty, and any cells with numbers are formatted numeric. BOROUGH Bronx 3 Queens 4 Manhattan Bronx 6 Queens Queens 8 Queens 9 Manhattan 10 Manhattan 11 Manhattan 12 Manhattan 13 Bronx 14 Queens 15 Manhattan 16 Bronx End If Sub Object late_average_SAT_score_for_school_type() first row 2 last_row Range ("A1000").End (x1Up) .Row End Sub TYPE SAT READING SAT MATH SAT WRITING PRIVATE PRIVATE PUBLIC PRIVATE PUBLIC PUBLIC PRIVATE PUBLIC PRIVATE PUBLIC PRIVATE PRIVATE PUBLIC PUBLIC PUBLIC 444 397 425 O 1,395 O 912 O 1,365 O 825 O 1,358 568 524 Save for I ater 433 430 544 395 468 452 492 471 451 459 Next Cells (last_row + 3, 1).Value = "SAT scores " Cells (last_row + 3, 5).Value sum_sat_score D 454 688 553 455 434 435 660 455 435 454 456 For current_row last_row To first row Step -3 If Cells (current_row, 1).Value = "Bronx" Or Cells (current_row, 1).Value = "Queens" Then sum_sat_score= sum_sat_score + Cells (current_row, 5).Value 660 449 574 688 425 492 471 524 468 568 451 544 433 459 395 430 444 452 397 Att
The following Excel image has a VBA program (see below).
What will be the result after the program is executed?
Any cells not displayed are currently empty, and any cells with numbers are formatted numeric.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
Exam No
B
First Name
1 ISMAEL
2 YANCI
3 CAROL
4 MATT
9 ADAM
6 DAI
Sub AFD ()
tot - 0
End Sub
5 JAVANNA HAIMA
6 DONIQUE
9 FELIPE
7 THOMAS LIN
с
Last Name
RODRIGUEZ JR
CHEN
TOFFIN
O 1,845
O 22,530
O 25,040
O 12,854
O 10,845
WALDRON
RANALLA
LIND
Else
Save for Later
GRACE-FEARON
RODRIGUEZ
Next i
MsgBox "The final result is
D
Sick Days
LastRow= Cells (Rows.Count, 1).End (x1Up).Row
For i Last Row To 9 Step -1
If Cells (1, 1).Value = 9 Or Cells (i, 2).Value = 10 Then
tot tot + Cells (1, 5)
E
Salary
10 $15,000 ACCOUNTANT
5 $25,000 ACCOUNTANT
15 $15,000 POLICE OFFICER
tot tot + Cells (i, 4)
End If
F
Title
5 $25,000 POLICE OFFICER
5 $15,000 POLICE OFFICER
15 $20,000 POLICE OFFICER
10 $15,000 CHIEF FIREFIGHTER
25 $15,000 CHIEF FIREFIGHTER
$25,000 CHIEF FIREFIGHTER
$10,000 CHIEF FIREFIGHTER
10
5
" & tot, . " 2200"
Att
Transcribed Image Text:The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cells not displayed are currently empty, and any cells with numbers are formatted numeric. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 A Exam No B First Name 1 ISMAEL 2 YANCI 3 CAROL 4 MATT 9 ADAM 6 DAI Sub AFD () tot - 0 End Sub 5 JAVANNA HAIMA 6 DONIQUE 9 FELIPE 7 THOMAS LIN с Last Name RODRIGUEZ JR CHEN TOFFIN O 1,845 O 22,530 O 25,040 O 12,854 O 10,845 WALDRON RANALLA LIND Else Save for Later GRACE-FEARON RODRIGUEZ Next i MsgBox "The final result is D Sick Days LastRow= Cells (Rows.Count, 1).End (x1Up).Row For i Last Row To 9 Step -1 If Cells (1, 1).Value = 9 Or Cells (i, 2).Value = 10 Then tot tot + Cells (1, 5) E Salary 10 $15,000 ACCOUNTANT 5 $25,000 ACCOUNTANT 15 $15,000 POLICE OFFICER tot tot + Cells (i, 4) End If F Title 5 $25,000 POLICE OFFICER 5 $15,000 POLICE OFFICER 15 $20,000 POLICE OFFICER 10 $15,000 CHIEF FIREFIGHTER 25 $15,000 CHIEF FIREFIGHTER $25,000 CHIEF FIREFIGHTER $10,000 CHIEF FIREFIGHTER 10 5 " & tot, . " 2200" Att
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Designing Webpage
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education