Building Quotation engine program

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


Please Help Members By Posting Answers For Below Questions

what is the BAM? where we can use it in BizTalk server?

1564


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?

850


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.

1803


can we retrieve only integer/String type columns from a table,if yes how?

1716


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 ;)

1958


what is diff bet ref variable & instance of class

1765


what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

1933


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)

3295


I want Ada programming language books. Could anyone post me any link for that?

3166


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.

800


Delta 5 weight scale not connect with oracle application what i can do?

2030


how pseudo column works?

1941


Can any one give an example (Source Code) on virtual function implemetation in Java?

1785


WHat is execution in manual testing and when will we start execution and what language we use in execution

1695


kindly send interview materials

1504