SlideShare a Scribd company logo
/*********************************************************************
* File : Vehicledetails.txt
* Author Name : Prince Sharma
* Desc : Program to get Service Feedback & total cost.
* Version : 1.0
* Last Modified Date : 20-june-2018
* Change Description : used three modules for finding digit validity,
feedback & total cost
*********************************************************************/
BEGIN
DECLARE Rate AS Integer
Declare Vehicle_cost, tcs As DOUBLE
Declare Vehicle_Type, fb As CHAR
Accept Rate
Accept Vehicle_cost
Accept vehicle_type
IF(isValid(Rate)) THEN
IF (Rate >1 && Rate <=10) THEN
fb=findfeedback(Rate)
ELSE
PRINT "Enter numbers between 1 to 10"
END IF
ELSE
PRINT "Enter only digits"
END IF
tcs = calculateTotalCost(vehicle_cost, vehicle_type)
PRINT "******Total Cost of Vehicle Service*******" tcs
PRINT "Rating" Rate
PRINT "FEEDBACK " fb
End
/*********************************************************************
* Module Name : isValid()
* Input Parameters : Rate
* Return Type : BOOLEAN
* Author : Prince Sharma
* Creation Date : 20-june-2018
* Description : Check digit validity
*********************************************************************/
SUB isValid(data)
IF(isDigits(data)) THEN
RETURN true
ELSE
RETURN false
END IF
END SUB
/*********************************************************************
* Module Name : findFeedback()
* Input Parameters : Rate
* Return Type : CHAR
* Author : Prince Sharma
* Creation Date : 20-june-2018
* Description : find the feedback of the service.
*********************************************************************/
SUB findFeedback(Rate)
IF (Rate>=2 && Rate<=5) then
RETURN "Poor"
Elseif (Rate>5 && Rate<=7) then
Print "Feedback Is Average"
Elseif (Rate>=8 && Rate<=9) then
Print "Feedback Is Good"
Else
Print "Rating is Excellent"
End If
END SUB
/*********************************************************************
* Module Name : calculateTotalCost
* Input Parameters : Vehicle_cost, Vehicle_Type
* Return Type : Double
* Author : Prince Sharma
* Creation Date : 20-june-2018
* Description : Calculating Total Cost Of Vehicle.
*********************************************************************/
SUB calculateTotalCost(vehicle_cost, vehicle_type)
DECLARE tc as DOUBLE
IF (VT=="All") THEN
tc = 200
ELSE IF(VT="HAtchback") then
tc = (15/100 * vc)
ELSE IF(VT="smaill cars") then
tc = (10/100 * vc)
ELSE
PRINT "Invalid vehicle type"
END IF
RETURN tc
END SUB
I

More Related Content

More from Akash gupta

Resume arti soni
Resume arti soniResume arti soni
Resume arti soni
Akash gupta
 
Resume
Resume Resume
Resume
Akash gupta
 
Chap3
Chap3Chap3
Chap2
Chap2Chap2
Chap1
Chap1Chap1
Answers to-500-istqb-sample-papers-2010-2011
Answers to-500-istqb-sample-papers-2010-2011Answers to-500-istqb-sample-papers-2010-2011
Answers to-500-istqb-sample-papers-2010-2011
Akash gupta
 
500 istqb-sample-papers-2010-2011
500 istqb-sample-papers-2010-2011500 istqb-sample-papers-2010-2011
500 istqb-sample-papers-2010-2011
Akash gupta
 
Istqb fl chap_6_edited
Istqb fl chap_6_editedIstqb fl chap_6_edited
Istqb fl chap_6_edited
Akash gupta
 
Istqb fl chap_5_edited
Istqb fl chap_5_editedIstqb fl chap_5_edited
Istqb fl chap_5_edited
Akash gupta
 
Istqb fl chap_4_edited
Istqb fl chap_4_editedIstqb fl chap_4_edited
Istqb fl chap_4_edited
Akash gupta
 
Istqb fl chap_3_edited
Istqb fl chap_3_editedIstqb fl chap_3_edited
Istqb fl chap_3_edited
Akash gupta
 
Istqb fl chap_1_edited
Istqb fl chap_1_editedIstqb fl chap_1_edited
Istqb fl chap_1_edited
Akash gupta
 
Istqb fl chap_2_edited
Istqb fl chap_2_editedIstqb fl chap_2_edited
Istqb fl chap_2_edited
Akash gupta
 
Chap6
Chap6Chap6
Chap5
Chap5Chap5
Chap4
Chap4Chap4
Capgemini resume template
Capgemini resume templateCapgemini resume template
Capgemini resume template
Akash gupta
 
Book integrated assignment
Book integrated assignmentBook integrated assignment
Book integrated assignment
Akash gupta
 
Book integrated assignment
Book integrated assignmentBook integrated assignment
Book integrated assignment
Akash gupta
 
Casestudy
CasestudyCasestudy
Casestudy
Akash gupta
 

More from Akash gupta (20)

Resume arti soni
Resume arti soniResume arti soni
Resume arti soni
 
Resume
Resume Resume
Resume
 
Chap3
Chap3Chap3
Chap3
 
Chap2
Chap2Chap2
Chap2
 
Chap1
Chap1Chap1
Chap1
 
Answers to-500-istqb-sample-papers-2010-2011
Answers to-500-istqb-sample-papers-2010-2011Answers to-500-istqb-sample-papers-2010-2011
Answers to-500-istqb-sample-papers-2010-2011
 
500 istqb-sample-papers-2010-2011
500 istqb-sample-papers-2010-2011500 istqb-sample-papers-2010-2011
500 istqb-sample-papers-2010-2011
 
Istqb fl chap_6_edited
Istqb fl chap_6_editedIstqb fl chap_6_edited
Istqb fl chap_6_edited
 
Istqb fl chap_5_edited
Istqb fl chap_5_editedIstqb fl chap_5_edited
Istqb fl chap_5_edited
 
Istqb fl chap_4_edited
Istqb fl chap_4_editedIstqb fl chap_4_edited
Istqb fl chap_4_edited
 
Istqb fl chap_3_edited
Istqb fl chap_3_editedIstqb fl chap_3_edited
Istqb fl chap_3_edited
 
Istqb fl chap_1_edited
Istqb fl chap_1_editedIstqb fl chap_1_edited
Istqb fl chap_1_edited
 
Istqb fl chap_2_edited
Istqb fl chap_2_editedIstqb fl chap_2_edited
Istqb fl chap_2_edited
 
Chap6
Chap6Chap6
Chap6
 
Chap5
Chap5Chap5
Chap5
 
Chap4
Chap4Chap4
Chap4
 
Capgemini resume template
Capgemini resume templateCapgemini resume template
Capgemini resume template
 
Book integrated assignment
Book integrated assignmentBook integrated assignment
Book integrated assignment
 
Book integrated assignment
Book integrated assignmentBook integrated assignment
Book integrated assignment
 
Casestudy
CasestudyCasestudy
Casestudy
 

Recently uploaded

Cleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is BlueCleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is Blue
Cleades Robinson
 
Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024
CollectiveMining1
 
AGM Presentation Probe June 11 Final.pdf
AGM Presentation Probe June 11 Final.pdfAGM Presentation Probe June 11 Final.pdf
AGM Presentation Probe June 11 Final.pdf
Probe Gold
 
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
f3wjr2q2
 
Methanex Investor Presentation - April 2024
Methanex Investor Presentation - April 2024Methanex Investor Presentation - April 2024
Methanex Investor Presentation - April 2024
Methanex Corporation
 
Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24
Philip Rabenok
 
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptxUnderstanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
cosmo-soil
 
ZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdf
ZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdfZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdf
ZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdf
SOFTTECHHUB
 
2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf
Sysco_Investors
 
ppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.pptppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.ppt
TestOrg1
 
Cyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdfCyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdf
CyberAgent, Inc.
 
Mandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPTMandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPT
MandalayResources
 
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUESMUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
WilliamRodrigues148
 
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
ybout
 

Recently uploaded (14)

Cleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is BlueCleades robinson:The Diplomat is Blue
Cleades robinson:The Diplomat is Blue
 
Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024Collective Mining | Corporate Presentation - June 2024
Collective Mining | Corporate Presentation - June 2024
 
AGM Presentation Probe June 11 Final.pdf
AGM Presentation Probe June 11 Final.pdfAGM Presentation Probe June 11 Final.pdf
AGM Presentation Probe June 11 Final.pdf
 
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
快速办理(CUBoulder毕业证书)科罗拉多大学博尔德分校毕业证录取通知书一模一样
 
Methanex Investor Presentation - April 2024
Methanex Investor Presentation - April 2024Methanex Investor Presentation - April 2024
Methanex Investor Presentation - April 2024
 
Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24Osisko Development - Investor Presentation - June 24
Osisko Development - Investor Presentation - June 24
 
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptxUnderstanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
Understanding-the-E-Way-Bill-A-Digital-Transformation-in-Logistics.pptx
 
ZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdf
ZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdfZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdf
ZKsync airdrop of 3.6 billion ZK tokens is scheduled by ZKsync for next week.pdf
 
2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf2024-deutsche-bank-global-consumer-conference.pdf
2024-deutsche-bank-global-consumer-conference.pdf
 
ppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.pptppt-namibia-worldeconomy-standardbank.ppt
ppt-namibia-worldeconomy-standardbank.ppt
 
Cyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdfCyberagent_For New Investors_EN_240424.pdf
Cyberagent_For New Investors_EN_240424.pdf
 
Mandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPTMandalay Resouces June 2024 Investor Relations PPT
Mandalay Resouces June 2024 Investor Relations PPT
 
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUESMUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
MUTUAL FUNDS (ICICI Prudential Mutual Fund) BY JAMES RODRIGUES
 
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
一比一原版(UW毕业证)华盛顿大学毕业证成绩单专业办理
 

Vehicle feedback

  • 1. /********************************************************************* * File : Vehicledetails.txt * Author Name : Prince Sharma * Desc : Program to get Service Feedback & total cost. * Version : 1.0 * Last Modified Date : 20-june-2018 * Change Description : used three modules for finding digit validity, feedback & total cost *********************************************************************/ BEGIN DECLARE Rate AS Integer Declare Vehicle_cost, tcs As DOUBLE Declare Vehicle_Type, fb As CHAR Accept Rate Accept Vehicle_cost Accept vehicle_type IF(isValid(Rate)) THEN IF (Rate >1 && Rate <=10) THEN fb=findfeedback(Rate) ELSE PRINT "Enter numbers between 1 to 10" END IF ELSE PRINT "Enter only digits" END IF tcs = calculateTotalCost(vehicle_cost, vehicle_type) PRINT "******Total Cost of Vehicle Service*******" tcs PRINT "Rating" Rate PRINT "FEEDBACK " fb End /********************************************************************* * Module Name : isValid() * Input Parameters : Rate * Return Type : BOOLEAN * Author : Prince Sharma * Creation Date : 20-june-2018 * Description : Check digit validity *********************************************************************/ SUB isValid(data) IF(isDigits(data)) THEN RETURN true ELSE RETURN false END IF END SUB /********************************************************************* * Module Name : findFeedback() * Input Parameters : Rate * Return Type : CHAR * Author : Prince Sharma * Creation Date : 20-june-2018 * Description : find the feedback of the service. *********************************************************************/ SUB findFeedback(Rate) IF (Rate>=2 && Rate<=5) then RETURN "Poor" Elseif (Rate>5 && Rate<=7) then
  • 2. Print "Feedback Is Average" Elseif (Rate>=8 && Rate<=9) then Print "Feedback Is Good" Else Print "Rating is Excellent" End If END SUB /********************************************************************* * Module Name : calculateTotalCost * Input Parameters : Vehicle_cost, Vehicle_Type * Return Type : Double * Author : Prince Sharma * Creation Date : 20-june-2018 * Description : Calculating Total Cost Of Vehicle. *********************************************************************/ SUB calculateTotalCost(vehicle_cost, vehicle_type) DECLARE tc as DOUBLE IF (VT=="All") THEN tc = 200 ELSE IF(VT="HAtchback") then tc = (15/100 * vc) ELSE IF(VT="smaill cars") then tc = (10/100 * vc) ELSE PRINT "Invalid vehicle type" END IF RETURN tc END SUB I