{"id":1872,"date":"2018-04-03T15:04:39","date_gmt":"2018-04-03T15:04:39","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=1872"},"modified":"2024-08-09T09:14:11","modified_gmt":"2024-08-09T09:14:11","slug":"java-program-to-display-the-mach-number","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/java-program-to-display-the-mach-number\/","title":{"rendered":"Java program to display the Mach number"},"content":{"rendered":"<h2>Problem Statement<\/h2>\n<p>Write a Java program to display the Mach number of a flying object. The program should output the following as per the conditions<\/p>\n<ul>\n<li>Print Subsonic if Mach &lt; 1.0<\/li>\n<li>Print Transonic if Mach = 1.0<\/li>\n<li>Print Supersonic if Mach &gt; 1.0<\/li>\n<li>Print Hypersonic if Mach &gt; 5.0<\/li>\n<\/ul>\n<h3>Given:<\/h3>\n<p>Mach Number = (Flying Object Speed) \/ (Speed of Sound)<\/p>\n<p>&nbsp;<\/p>\n<p>Mach Number =\u00a0\u00a0Object SpeedSound Speed<\/p>\n<p>Speed of Sound = 343 m \/ s<\/p>\n<p>Take input from the user the speed of the object.<\/p>\n<p>&nbsp;<\/p>\n<h3>IPO Chart for the Program:<\/h3>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1875\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IPO-Chart-Mach-Number-Program.png\" alt=\"\" width=\"1381\" height=\"671\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IPO-Chart-Mach-Number-Program.png 1381w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IPO-Chart-Mach-Number-Program-300x146.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IPO-Chart-Mach-Number-Program-1024x498.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/IPO-Chart-Mach-Number-Program-768x373.png 768w\" sizes=\"auto, (max-width: 1381px) 100vw, 1381px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem Statement Write a Java program to display the Mach number of a flying object. The program should output the following as per the conditions Print Subsonic if Mach &lt; 1.0 Print Transonic if Mach = 1.0 Print Supersonic if Mach &gt; 1.0 Print Hypersonic if Mach &gt; 5.0 Given: Mach Number = (Flying Object [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[24],"class_list":["post-1872","post","type-post","status-publish","format-standard","hentry","category-java-programs","tag-java-programs","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1872"}],"version-history":[{"count":5,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"predecessor-version":[{"id":23872,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1872\/revisions\/23872"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}