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
Diffrence between 2.0,3.0,3.5,4.0. versions of .net?
qtp 9.2 14 days demo version was expired.I uninstalled how to reinstall this again
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)
Explain polymorphism. Provide an example.
Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.
how can i create report in abap to insert data in table pa0002 using insert command
1.what is the vesition managment.
< DL Compact > tag is used for
what is programmable BIST in today ic design
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
Delta 5 weight scale not connect with oracle application what i can do?
I am looking for selenium RC online Training in chennai. can any one tell me the best institute
in IT trend mantis meant what? how to know mantis in IT trends? detail description about mantis?
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..