Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following code checks if the value in J 1 2 ( ex: 7 0 0 ) is less than 5 0 0 . Since

The following code checks if the value in J12(ex: 700) is less than 500. Since it is not, S2 is populated in J18 and 180 is divided by the value in J14(ex: 355/180=2). Edit the code to implement the following.
If cs.Range("J6")="DC" Then
If cs.Range("J12")<500 Then
cs.Range("J18")="S1"
cs.Range("J20")= Application.WorksheetFunction.Ceiling(cs.Range("J14")/360,1)
Else
cs.Range("J18")="S2"
cs.Range("J20")= Application.WorksheetFunction.Ceiling(cs.Range("J14")/180,1)
End If
Edit the code to implement the following
For S1:
If DC is selected in J6, Then if value entered in J12 is 0-330 divide J14 by 360.
If DC is selected in J6, Then If value entered J12 is 331-500 and divide J14 by 240.
For S2:
If DC is selected in J6, Then if value entered in J12 is 500-660 divide J14 by 180.
If DC is selected in J6, Then If value entered J12 is 661-1000 and divide J14 by 120.

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions

Question

What is the orientation toward time?

Answered: 1 week ago

Question

4. How is culture a contested site?

Answered: 1 week ago