終了

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)

スキル: C プログラミング, データベースアドミニストレーション, エンジニアリング, Java, SQL

さらに表示: 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

採用者について:
( 156件のレビュー ) Calcutta, India

プロジェクトID: #14847388

16 freelancers are bidding on average ₹386/hour for this job

₹1000 INR / hour
(297件のレビュー)
7.0
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 もっと

₹1000 INR / hour
(111件のレビュー)
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 もっと

₹100 INR / hour
(44件のレビュー)
5.1
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 もっと

₹100 INR / hour
(12件のレビュー)
4.6
₹666 INR / hour
(12件のレビュー)
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 もっと

₹800 INR / hour
(2件のレビュー)
3.5
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 / hour
(12件のレビュー)
2.1
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 / hour
(1レビュー)
0.8
navdeepking0007

One of my day to day work

₹220 INR / hour
(0件のレビュー)
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 / hour
(0件のレビュー)
0.0
₹388 INR / hour
(0件のレビュー)
0.0
₹277 INR / hour
(0件のレビュー)
0.0
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 もっと

₹166 INR / hour
(0件のレビュー)
0.0
Prabals933631

A proposal has not yet been provided

₹100 INR / hour
(0件のレビュー)
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 もっと

₹400 INR / hour
(0件のレビュー)
0.0
apa593a7401948a0

A proposal has not yet been provided

₹550 INR / hour
(0件のレビュー)
0.0