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

Diffrence between 2.0,3.0,3.5,4.0. versions of .net?

2986


qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again

2604


Given a set. Write the pseudo code to get all the subsets for the given set. Eg. Input : {1,2} Output : (),(1),(2),(1,2)

2495


Explain polymorphism. Provide an example.

824


Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.

895


how can i create report in abap to insert data in table pa0002 using insert command

1993


1.what is the vesition managment.

1940


< DL Compact > tag is used for

1770


what is programmable BIST in today ic design

1907


How to connect to ms word wit VB ojective is to prepare s/w to generate question paper , selects questions randomly from the ms access , database

2262


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

2062


I am looking for selenium RC online Training in chennai. can any one tell me the best institute

1756


in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?

1920


could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?

1543


Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..

1932