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
what is the BAM? where we can use it in BizTalk server?
You are given some denominations of coins in an array (int denom[])and infinite supply of all of them. Given an amount (int amount), find the minimum number of coins required to get the exact amount. What is the method called?
I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.
can we retrieve only integer/String type columns from a table,if yes how?
Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)
what is diff bet ref variable & instance of class
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
One boy has to climb steps. He can climb 1 or 2 steps at a time. Write a function that will returns number of way a boy can climb the steps. Int WaytoSteps(int n) (eg:- suppose number of steps is n=4 ,the function will return 5 (one-one-one-one ,one-one-two, one-two-one-,two-one-one, two-two)
I want Ada programming language books. Could anyone post me any link for that?
Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.
Delta 5 weight scale not connect with oracle application what i can do?
how pseudo column works?
Can any one give an example (Source Code) on virtual function implemetation in Java?
WHat is execution in manual testing and when will we start execution and what language we use in execution
kindly send interview materials