Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

12. Use Excel VBA to solve and show all of your code and work Question 12: Nested IF statements - Design nested IF statements to

12. Use Excel VBA to solve and show all of your code and work

image text in transcribed

image text in transcribed

Question 12: Nested "IF" statements - Design nested "IF" statements to achieve the following flowchart (slides page 74) logic given curSalary and YearsOfService. - Please run the code to make sure it works properly. Nested IF Statements Example 12* Sub Example12() Dim curSalary As Double, YearsOfService As Integer curSalary=31000YearsOfService=3 If curSalary >30000 Then If YearsOfService >2 Then Range("A1").Value = "The applicant qualifies" Else Range("A1").Value = "The applicant not qualified" End If Else If YearsOfService >5 Then Range("A1").Value = "The applicant qualifies" Else Range("A1").Value = "The applicant not qualified" End If Note how the convention of indentations emphasizes the structure of nested Ifs. End Sub You are required to following this convention

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago