Answer Posted / testndl002
DataLayer --> Common.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TravelInsuranceQuote.DataLayer
{
public enum Destination
{
UK,
Europe,
Worldwide
}
public enum TripType
{
Single,
Annual
}
public enum Sex
{
Male,
Female
}
}
#######
DataLayer-->customer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TravelInsuranceQuote.DataLayer
{
public class Customer
{
public TripType TripType { get; set; }
public int Age { get; set; }
public Sex Sex {get; set;}
public Destination Destination {get; set;}
public int TravelPeriod {get; set;}
//public Customer(string Type, string Sex, string Destination, int Age, int Pot)
//{
// Type = "singletrip";
// Sex = "male";
// Destination = "UK";
// Age = 20;
// Pot = 5;
//}
}
}
#########
DataLayer --> CustomerPremium.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TravelInsuranceQuote.DataLayer
{
public class CustomerPremium
{
public double Base { get; set; }
public double[] Age { get; set; }
public double[] Sex { get; set; }
public double[] Destination { get; set; }
public double[] TravelPeriod { get; set; }
public double[] Tax { get; set; }
public double Total { get; set; }
}
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how do u handle table control inbdc explain the process in steps iwant the answer in urgent please forward this even i know how to explain there
1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
Please describe an example where you used object orientation in one of your programs.
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
what is the purpose of checked Menu options
Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.
what is apt_dump_score in datastage where it is useful
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
What is diffrent between Method and and function in c#
Code for display the images from drive using vb 6.0?
What is easiest way to get the PL/i compiler,I didn't have found the compiler in my library. Is there any extra cost if we want to access the PL/1 programs?Actually we r having Mainframe rented training Ids
what is the use MDM(Master Data Management)and meaning