logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Ashok MalhotraComputer science
(5/5)

770 Answers

Hire Me
expert
Brayden JamesComputer science
(5/5)

826 Answers

Hire Me
expert
Paul BurlingComputer science
(5/5)

962 Answers

Hire Me
expert
Doll JuttHistory
(5/5)

964 Answers

Hire Me
Business Statistics
(5/5)

Take a variable ‘age’ which is of positive value and check the following:

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Please write Python Programs for all the problems .

1. Take a variable ‘age’ which is of positive value and check the following:

a. If age is less than 10, print “Children”.

b. If age is more than 60 , print ‘senior citizens’

c. If it is in between 10 and 60, print ‘normal citizen’

 

2. Find  the final train ticket price with the following conditions. 

a. If male and sr.citizen, 70% of fare is applicable

b. If female and sr.citizen, 50% of fare is applicable.

c. If female and normal citizen, 70% of fare is applicable

d. If male and normal citizen, 100% of fare is applicable

[Hint: First check for the gender, then calculate the fare based on age factor.. For both Male and Female ,consider them as sr.citizens if their age >=60]

3. Check whether the given number is positive and divisible by 5 or not.  

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

275 Experts Online