How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Scott Your Own Question

Scott
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

I have this function: vmd() and I would like to make some

Customer Question

I have this function: vmd() and I would like to make some changes.
Submitted: 1 year ago.
Category: Homework
Expert:  Ingo U replied 1 year ago.

Hi,
Could you please post, attach or upload all relevant requirements, details, work in progress or any other related file(s)?

Thanks,
Ingo U

PS If you're not familiar with wikisend, it's easy and free:
Go to www.wikisend.com and upload the file there (no need to sign up).
You will then get a page that has the File ID and Download Link.
Copy either the File ID or the Download Link.
Then come back here and paste it in your reply.

Customer: replied 1 year ago.
ok
Customer: replied 1 year ago.
I have these two functions:
public bool vmd()
{
return (IsNewlyIncluded()) && getLimb();
}bool generateVmd = false;
if ((isNewPolicy() || isEndorsement()) && (!isMerged()))
{
int driverCount = getDriverCount();
for (int i = 0; i < driverCount; i++)
{
Driver d = getDriver(i);
if ((d != null) && (!d.isDeleted()) && d.vmd())
{
generateVmd = true;
break;
}
}
}what I want to do is to generate the vmd when the getlimb is set to yes. Basically, I need to compare the original value to what it changed to.
Expert:  Ingo U replied 1 year ago.

Can you post this as file(s)? it's hard to read like this, plus I need more context - what's the nature of some of these other functions?
It looks like C# ***** is it?

Customer: replied 1 year ago.
never mind on this one: can you do this one.
Customer: replied 1 year ago.
http://wikisend.com/download/528120/test.txt
Customer: replied 1 year ago.
this is urgent assignment please respond; thanks
Expert:  Ingo U replied 1 year ago.

At first glance, it looks like you may have extra <% and %>, at:

if (!isLearnersPermitAllowed)

{
%>

I can't tell what's going on without seeing the whole file

Customer: replied 1 year ago.
I don't see that
Customer: replied 1 year ago.
this is the portion I need help with, it's just the validation part that's not working
Expert:  Ingo U replied 1 year ago.

the file you uploaded has:

if (!isLearnersPermitAllowed)
{
%>
alert("Driver <% = isLearnersPermitDrvNum %>\'s Learn\'s Permit is not allowed without the addition of a licensed driver <% = rev.getCompany().getMinOtherDriverAgeToAllowLearnersPermit() %> years or older.");
return;
<%
}

That looks odd to me because of the %> after the opening } and before the closing {

But also, you for() loops appearently do the exact same thing every time through the loop, nothing changes based on the value of the loop counters f or d . That seems wrong. I'd think you're missing come code to change the 'driver' object every time through the loop since you're probably evaluating the formula for every driver.

Customer: replied 1 year ago.
ok let me send the full code of the two files
Customer: replied 1 year ago.
http://wikisend.com/download/210460/PolicySummary.aspx.txt - line 172
http://wikisend.com/download/645502/PolicySummary.aspx.cs.txt - line 379Hope this will help to fix the problem...thanks.
Customer: replied 1 year ago.
is it possible to get this done today?