Bentley Motors Limited wants to estimate the total cost of the “flying spur” car model by adding 15% excise duty, 10% Sales tax , 1% road tax and bring in to the market. Assume that the basic cost is given by the company. Analyze the scenario and construct a pseudocode .Hint : To calculate the percentageIf we need to calculate 15% of excise duty, it should be exciseDuty*15/100 (or) exciseDuty*0.15
Question
Bentley Motors Limited wants to estimate the total cost of the “flying spur” car model by adding 15% excise duty, 10% Sales tax , 1% road tax and bring in to the market. Assume that the basic cost is given by the company. Analyze the scenario and construct a pseudocode .Hint : To calculate the percentageIf we need to calculate 15% of excise duty, it should be exciseDuty15/100 (or) exciseDuty0.15
Solution
Sure, here is the pseudocode for the scenario:
// Define the basic cost of the car
basicCost = getBasicCost()
// Calculate the excise duty
exciseDuty = basicCost * 0.15
// Calculate the sales tax
salesTax = basicCost * 0.10
// Calculate the road tax
roadTax = basicCost * 0.01
// Calculate the total cost
totalCost = basicCost + exciseDuty + salesTax + roadTax
// Print the total cost
print(totalCost)
In this pseudocode, getBasicCost() is a function that would return the basic cost of the car as provided by the company. The excise duty, sales tax, and road tax are calculated as 15%, 10%, and 1% of the basic cost respectively. These are then added to the basic cost to get the total cost. The total cost is then printed out.
Similar Questions
Write a program to accept the cost price of a bike qnd display the road tax to be paid according to the following criteria:Cost price(in Rs) Tax>100000 15%>50000 and <=100000 10%<=50000 5%
Unit operating expenses for an item costing $80 are estimated at 50% of cost, and the desired operating profit is 15% of cost.a. Determine the selling price. (Do not round intermediate calculations and round your final answer to 2 decimal places.)Selling price $ b. Determine the rate of markup on cost. (Do not round intermediate calculations and round your final answer to 1 decimal place.)Markup on cost %c. Determine the rate of markup on selling price. (Do not round intermediate calculations and round your final answer to 1 decimal place.)Markup on selling price %
During its first month of operations, a manufacturer incurs the following costs (in dollars) related to activities within its factory:Direct materials $15,000Direct labor $30,000Manufacturing overhead $40,000What amount should be reported as cost of goods sold on the income statement if 5,000 units are produced and 4,000 are sold? $56,000 $68,000 $70,000 $85,000
Single File Programming QuestionProblem StatementLilly went shopping with a budget of Rs. 10,000 to buy clothes, and accessories. The cost of clothes is twice the value of accessories, and there is an additional expense of Rs. 1000 for fuel. Develop an expense calculator by inputting the amount spent on accessories, then calculate and display Lilly's remaining amount rounded to two decimal places after her shopping.ExampleInput:2000.0Output:3000.0Explanation:budget = 10000.0;fuel = 1000.0;accessories = 2000.0clothes = 2 * accessories = 2 * 2000 = 4000.0total = clothes + accessories + fuel = 4000.0 + 2000.0 + 1000.0 = 7000.0remaining = budget - total = 10000.0 - 7000.0 = 3000.0Input format :The input consists of a float value a, representing the amount spent on accessories.Output format :The output prints the remaining budget after shopping, rounded to two decimal places in the following format: "Rs. [remaining amount]". Refer to the sample output for the formatting specifications.Code constraints :In this scenario, the test cases fall under the following constraints:10.0 ≤ a ≤ 3000.0Sample test cases :Input 1 :10.0Output 1 :Rs. 8970.00Input 2 :2000.0Output 2 :Rs. 3000.00Input 3 :3000.0Output 3 :Rs. 0.00Input 4 :1578.89Output 4 :Rs. 4263.33
Single File Programming QuestionProblem StatementLilly went shopping with a budget of Rs. 10,000 to buy clothes, and accessories. The cost of clothes is twice the value of accessories, and there is an additional expense of Rs. 1000 for fuel. Develop an expense calculator by inputting the amount spent on accessories, then calculate and display Lilly's remaining amount rounded to two decimal places after her shopping.ExampleInput:2000.0Output:3000.0Explanation:budget = 10000.0;fuel = 1000.0;accessories = 2000.0clothes = 2 * accessories = 2 * 2000 = 4000.0total = clothes + accessories + fuel = 4000.0 + 2000.0 + 1000.0 = 7000.0remaining = budget - total = 10000.0 - 7000.0 = 3000.0Input format :The input consists of a float value a, representing the amount spent on accessories.Output format :The output prints the remaining budget after shopping, rounded to two decimal places in the following format: "Rs. [remaining amount]". Refer to the sample output for the formatting specifications.Code constraints :In this scenario, the test cases fall under the following constraints:10.0 ≤ a ≤ 3000.0Sample test cases :Input 1 :10.0Output 1 :Rs. 8970.00Input 2 :2000.0Output 2 :Rs. 3000.00Input 3 :3000.0Output 3 :Rs. 0.00Input 4 :1578.89Output 4 :Rs. 4263.33Note :The program will be evaluated only after the “Submit Code” is clicked.Extra spaces and new line characters in the program output will result in the failure of the test case.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.