Encerrado

need a java programmer now

Consider the pseudo-code below for computing insurance premium.

(i) Draw the program graph

(ii) Compute the cyclomatic complexity

(iii) Derive a set of basis paths that can be used to test the program

(iv) Given that the baseRate is $500.00, create the test cases that will exercise all the branches for switch case C4 only. The test cases should show the inputs, the path taken and the expected output. [Hint: There should be only two test cases.]

1 program compute_insurance_premium()

2 integer driverAge, points

3 real baseRate, premium

4 Input(baseRate, driverAge, points)

5 safeDriveFactor = 0.0

6 premium = 0.0

7 switch (driverAge) {

8 case C1: 16 <= driverAge < 25

9 ageFactor = 3.0

10 if points < 2 then

11 safeDriverFactor = 40

12 end if

13 break; // End Case – C1

14 case C2: 25 <= driverAge < 45

15 ageFactor = 2.2

16 if points < 3 then

17 safeDriverFactor = 40

18 end if

19 break; // End Case – C2

20 case C3: 45 <= driverAge < 65

21 ageFactor = 1.5

22 if points < 5 then

23 safeDriverFactor = 80

24 end if

25 break; // End Case – C3

26 case C4: 65 <= driverAge < 100

27 ageFactor = 2.0

28 if points < 2 then

29 safeDriverFactor = 120

30 end if

31 break; // End Case – C4

32 default:

33 Output("Driver age out of range.")

34 } //End switch

35 premium = baseRate * ageFactor - safeDriverFactor

36 Output(premium)

Habilidades: Programação C, Administração de Bancos de Dados, Engenharia, Java, SQL

Ver mais: free java tutoring, live java programming help free, java help online free, java programming help chat free, help with java programming assignment, java freelance jobs from home, java coding help, hire java programmer, need java programmer in bridgeport, i need java programmer in hyderabad, need a java programmer in bhopal, i need a programmer that knows c 11, i need a java programmer, minecraft server need java programmer, need good java programmer

Acerca do Empregador:
( 123 comentários ) Calcutta, India

ID do Projeto: #14847388

17 freelancers estão ofertando em média ₹952/hora para este trabalho

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on client side, using c++ under windows envir Mais

₹1000 INR / hora
(105 Comentários)
6.7
₹1000 INR / hora
(247 Comentários)
6.8
neerajagrawal201

Hi, We are serving in the field of Website & Software Design, HTML, CSS, Java, PHP, C#, javascript, bootstrap, angular.js, .NET, SQL, Biometrics, Android native/hybrid, since 2015. We also started providing service in Mais

₹100 INR / hora
(43 Comentários)
5.1
₹666 INR / hora
(11 Comentários)
3.8
BEAS24X7

Hi, This is from BEAS Consultancy and Services Pvt Ltd ( [url removed, login to view] ) . BEAS is a million dollar CMMI Level 3 company with ISO Certification. We focus on best industry standards, quality solution Mais

₹800 INR / hora
(2 Comentários)
3.5
zameerfaiz

Dear Sir/Ma'm, I'll implement your pseudo-code to compute insurance premium. I have more than 3years of experience of java coding. Proposed Solution: I'll create the test case for switch case C4 and will exercise Mais

₹100 INR / hora
(6 Comentários)
3.4
mathDev00

Dear sir. I am very interested to your project. I have a good skill and experience in c++ programming. I can finish this project in perfect. Please contact me. Thanks.

₹100 INR / hora
(1 Comentário)
0.8
CygnusSoftwares

Cygnus Softwares is an IT Global Consulting and Solutions Provider specifically implementing Mobile, Agile and BI technologies. We have a global presence and getting ready for CMMi Level 3 certification. Our Management Mais

₹166 INR / hora
(0 Comentários)
0.0
₹277 INR / hora
(0 Comentários)
0.0
hadomaza

Hi, how are you!. I'm new on this platform. I know that I have the right skills for the project, that's why I offer. I look forward to working with you, in advance, thank you.

₹100 INR / hora
(0 Comentários)
0.0
redaellimattia

A proposal has not yet been provided

₹10000 INR / hora
(0 Comentários)
0.0
Prabals933631

A proposal has not yet been provided

₹100 INR / hora
(0 Comentários)
0.0
₹388 INR / hora
(0 Comentários)
0.0
DavidPauil

Good day! I am interested in this job post. I can definitely execute the task on time and error-free. Below is a list of my specific skills related to this job post: - computer savvy, and familiar with different soft Mais

₹400 INR / hora
(0 Comentários)
0.0
asadkhanking22

i would like to offer you my expertise, as I have done number of my academic projects and I am a professional in the field

₹216 INR / hora
(0 Comentários)
0.0
apa593a7401948a0

A proposal has not yet been provided

₹550 INR / hora
(0 Comentários)
0.0
navdeepking0007

One of my day to day work

₹220 INR / hora
(0 Comentários)
0.0