 

{"id":143062,"date":"2017-05-19T08:06:23","date_gmt":"2017-05-19T13:36:23","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T18:30:00","slug":"write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa","status":"publish","type":"post","link":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/","title":{"rendered":"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed\nDistance up to 15km fareRS5 Distanceup to 25kmfareRs 10\nDistanceabove 25 km\nFare RS 25\n the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected"},"content":{"rendered":"<p>This Question has been asked from  JAMSHEDPUR <\/p>\n<p><span> You can also answer following questions<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This Question has been asked from JAMSHEDPUR You can also answer following questions<\/p>\n","protected":false},"author":77975,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12695],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected\" \/>\n<meta property=\"og:description\" content=\"This Question has been asked from JAMSHEDPUR You can also answer following questions\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/\" \/>\n<meta property=\"og:site_name\" content=\"Our Education Q&amp;A\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-19T13:36:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"-0001-11-30T00:00:00+00:00\" \/>\n<meta name=\"author\" content=\"sujata\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sujata\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/\",\"url\":\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/\",\"name\":\"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected\",\"isPartOf\":{\"@id\":\"https:\/\/www.oureducation.in\/answers\/#website\"},\"datePublished\":\"2017-05-19T13:36:23+00:00\",\"dateModified\":\"-0001-11-30T00:00:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.oureducation.in\/answers\/#\/schema\/person\/ae39d0b0b249dec5cb6ee76cefda4419\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.oureducation.in\/answers\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.oureducation.in\/answers\/#website\",\"url\":\"https:\/\/www.oureducation.in\/answers\/\",\"name\":\"Our Education Q&amp;A\",\"description\":\"Best Coaching Institutes Colleges Q&amp;A\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.oureducation.in\/answers\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.oureducation.in\/answers\/#\/schema\/person\/ae39d0b0b249dec5cb6ee76cefda4419\",\"name\":\"sujata\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.oureducation.in\/answers\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a5ab048ae58fa34fee089f9d1d14162b?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a5ab048ae58fa34fee089f9d1d14162b?s=96&d=identicon&r=g\",\"caption\":\"sujata\"},\"url\":\"https:\/\/www.oureducation.in\/answers\/profile\/sujata\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/","og_locale":"en_US","og_type":"article","og_title":"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected","og_description":"This Question has been asked from JAMSHEDPUR You can also answer following questions","og_url":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/","og_site_name":"Our Education Q&amp;A","article_published_time":"2017-05-19T13:36:23+00:00","article_modified_time":"-0001-11-30T00:00:00+00:00","author":"sujata","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sujata"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/","url":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/","name":"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected","isPartOf":{"@id":"https:\/\/www.oureducation.in\/answers\/#website"},"datePublished":"2017-05-19T13:36:23+00:00","dateModified":"-0001-11-30T00:00:00+00:00","author":{"@id":"https:\/\/www.oureducation.in\/answers\/#\/schema\/person\/ae39d0b0b249dec5cb6ee76cefda4419"},"breadcrumb":{"@id":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.oureducation.in\/answers\/write-a-program-in-java-to-calculate-the-fare-for-passenger-travelling-on-a-computerized-bus-as-a-passenger-entire-the-bus-computer-displayswhat-distance-will-you-travelon-entering-the-distance-the-fa\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.oureducation.in\/answers\/"},{"@type":"ListItem","position":2,"name":"write a program in java to calculate the fare for passenger travelling on a computerized bus as a passenger entire the bus computer displayswhat distance will you travelon entering the distance the fare printed Distance up to 15km fareRS5 Distanceup to 25kmfareRs 10 Distanceabove 25 km Fare RS 25 the computer keeps getting on adding and displaying the total fare after each passenger has entered and the program ends when the distance is entered as 0it then prints the total number of passenger who entered the bus and the total fare collected"}]},{"@type":"WebSite","@id":"https:\/\/www.oureducation.in\/answers\/#website","url":"https:\/\/www.oureducation.in\/answers\/","name":"Our Education Q&amp;A","description":"Best Coaching Institutes Colleges Q&amp;A","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.oureducation.in\/answers\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.oureducation.in\/answers\/#\/schema\/person\/ae39d0b0b249dec5cb6ee76cefda4419","name":"sujata","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.oureducation.in\/answers\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a5ab048ae58fa34fee089f9d1d14162b?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a5ab048ae58fa34fee089f9d1d14162b?s=96&d=identicon&r=g","caption":"sujata"},"url":"https:\/\/www.oureducation.in\/answers\/profile\/sujata\/"}]}},"_links":{"self":[{"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/posts\/143062"}],"collection":[{"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/users\/77975"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/comments?post=143062"}],"version-history":[{"count":0,"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/posts\/143062\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/media?parent=143062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/categories?post=143062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oureducation.in\/answers\/wp-json\/wp\/v2\/tags?post=143062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}