Đã Đóng

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)

Kĩ năng: Lập trình C, Quản trị cơ sở dữ liệu, Kĩ thuật, Java, SQL

Xem nhiều hơn: 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

Về Bên Thuê:
( 156 nhận xét ) Calcutta, India

ID dự án: #14847388

16 freelancer đang chào giá trung bình ₹386/giờ cho công việc này

₹1000 INR / giờ
(297 Nhận xét)
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 Thêm

₹1000 INR / giờ
(111 Nhận xét)
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 Thêm

₹100 INR / giờ
(44 Nhận xét)
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 Thêm

₹100 INR / giờ
(12 Nhận xét)
4.6
₹666 INR / giờ
(12 Nhận xét)
3.8
BEAS24X7

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

₹800 INR / giờ
(2 Nhận xét)
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 / giờ
(12 Nhận xét)
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 / giờ
(1 Nhận xét)
0.8
navdeepking0007

One of my day to day work

₹220 INR / giờ
(0 Nhận xét)
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 / giờ
(0 Nhận xét)
0.0
₹388 INR / giờ
(0 Nhận xét)
0.0
₹277 INR / giờ
(0 Nhận xét)
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 Thêm

₹166 INR / giờ
(0 Nhận xét)
0.0
Prabals933631

A proposal has not yet been provided

₹100 INR / giờ
(0 Nhận xét)
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 Thêm

₹400 INR / giờ
(0 Nhận xét)
0.0
apa593a7401948a0

A proposal has not yet been provided

₹550 INR / giờ
(0 Nhận xét)
0.0