Sponsored Links


Results 1 to 5 of 5

Thread: CS201 Introduction to Programming Assignment No. 01 Semester: Spring April 2012

  1. #1
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578

    Icon20 CS201 Introduction to Programming Assignment No. 01 Semester: Spring April 2012

    Sponsored Links1


    Problem Statement: Challan Calculator for Traffic Violation

    You are required to write a program for calculating challan for traffic violations. The basic idea is that user will enter the type of violation and number of days passed till date of challan. The challan calculator will calculate the challan based upon the type of violation and number of days.

    Detailed Description:

    Sponsored Links

     You are required to take input from user for type of traffic violation.
     User will enter ‘1’ if the violation type is “For breaking traffic signal”
     User will enter ‘2’ if the violation type is “For over speeding”
     User will enter ‘3’ if the violation type is “For not wearing seat belt”
     If user enters any other number except 1, 2 or 3, the program will print a message “Enter a valid type of traffic violation”.
     After printing this message program will start again from beginning and prompt user to enter the valid type of traffic violation.
     If user enters ‘1’ the amount of fine is Rs.500, if ‘2’ then Rs.300 and if user enters ‘3’ then fine will be Rs.200.

     Now, program will prompt user to enter number of days passed till challan date.
     If number of days are less than or equal to 10, then the total challan will be same as amount of fine.
     If number of days are more than 10 or less than/equal to 30, then total challan will be double of amount of fine.
     If number of days are more than 30, then 50% of fine will be added in double of amount of fine. i.e. 2 times fine + 1/2 times fine.

     After displaying the total challan to user, the program should ask if the user wants to calculate another challan. The user can enter ‘y’ or ‘n’ as choices for yes or no. Program will handle user’s choice in both upper and lower cases.

     If the user enters ‘y’ or ‘Y’, then program should clear the screen and start the whole process again or terminate the program otherwise.

  2. #2
    Senior Member Entboy's Avatar
    Join Date
    Dec 2011
    Posts
    5,454
    full assignment code for sale

    03345705890

  3. #3

  4. #4
    Junior Member
    Join Date
    Oct 2011
    Location
    Lahore
    Posts
    6
    200 mje do mai dta hn full solution ...

  5. #5

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CS201-Introduction to Programming Assignment No.2 Spring semester 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 07-09-2014, 04:14 PM
  2. Replies: 0
    Last Post: 06-30-2012, 04:41 PM
  3. Replies: 0
    Last Post: 06-21-2012, 04:26 PM
  4. Replies: 0
    Last Post: 06-09-2012, 05:56 AM
  5. Replies: 2
    Last Post: 11-20-2010, 08:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft