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 to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
kindly send interview materials
how to check single or double byte in struts
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
can any method return type may be constructor , or that method name allow
Can i please VHDL code for D-Latch with clear input ?? (HINT: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.) Inputs and Outputs: entity Lab4b is Port ( Clr, Clk, D : in STD_LOGIC; Q : out STD_LOGIC); end Lab4b;
how will you code the subfile which is in editing mode (multiple case subfile)?
3 members in a pf.how we read 3 members without using ovrdbf.using rg pgms....
Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..
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 ;)
Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
what is the difference between read the data from table and infotype
1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END
Q2. A memory location has physical address D5687h. Compute: a. The offset address if the segment number is D445h. b. The segment number if the offset address is B577h.