C# COIS1020H Question 4 Compute Taxes - 88364

Solution Posted by
jordanblink

jordanblink

Rating : (19)A+
Solution Detail
Price: $15.00
Request Description
Q4: Write a C# program that has a Main method and a user-defined method called ComputeTax. The Main method asks the user to enter an item's cost (double) and the percentage sales tax (double). The item cost is a positive number and the percentage sales tax is a number between 0.0 and 1.0. Main then calls the method named ComputeTax which has two parameters that will hold the item's cost and percentage sales tax as arguments. The method returns the overall price of the item (double) which should be output by Main. For example, if an item's cost is $3.50 and percentage sales tax is 10% (entered as 0.1), then the value returned by the ComputeTax (and printed by Main) is $3.85. The method header for ComputeTax should look like: public static double ComputeTax (double itemCost, double perTax) **** Note: On this assignment you can assume the correct datatype: that is, if the program requests a double, you can assume that the user will input a double, etc. You do need to check that the data is in the correct range.
Solution Description
</div> <div class="sl_file_attachments"> <div class="dtel_hdng">Attachments</div> <figure title="CSTaxes.zip"> <img src="https://www.studentlance.com/assets/admin/images/file_icon.png" alt="CSTaxes.zip" /> <figcaption> <span>CSTaxes.zip</span> </figcaption> </figure> </div> </div> </div> </div> <section id="footerlist"> <div class="container wow fadeInDown move"> <div class="row"> <div class="col-sm-4 col-md-2"> <div class="foo-widget"> <span><img id ="business-sprite" src="https://www.studentlance.com/Nassests/images/img_trans.gif" alt="Business" width="23" height="42"/></span> <h3>Business</h3> <ul> <li > <a href="/subjects/accounting-homework-help/"> Accounting </a> </li> <li > <a href="/subjects/administration-homework-help/"> Administration </a> </li> <li > <a href="/subjects/business-homework-help/"> Business</a> </li> <li > <a href="/subjects/business-statistics-homework-help/"> Business Statistics</a> </li> <li > <a href="/subjects/cost-accounting-homework-help/"> Cost Accounting</a> </li> <li > <a href="/subjects/finance-homework-help/"> Finance</a> </li> <li > <a href="/subjects/global-management-homework-help/"> Global Management</a> </li> <li > <a href="/subjects/human-resource-management-homework-help/"> Human Resource Management</a> </li> </ul> </div> </div><!--/.col-md-2--> <div class="col-sm-4 col-md-2"> <div class="foo-widget"> <span><img id ="computer-science-sprite" src="https://www.studentlance.com/Nassests/images/img_trans.gif" alt="Computer Science" width="62" height="41"/></span> <h3>Computer Science</h3> <ul> <li > <a href="/subjects/c++-homework-help/"> C++ </a> </li> <li > <a href="/subjects/html-homework-help"> HTML </a> </li> <li > <a href="/subjects/java-homework-help/"> Java</a> </li> <li > <a href="/subjects/object-oriented-programming-homework-help/"> Object Oriented Programming</a> </li> <li > <a href="/subjects/php-homework-help/"> PHP</a> </li> <li > <a href="/subjects/programming-homework-help"> Programming</a> </li> <li > <a href="/subjects/website-development-homework-help"> Website Development</a></li> </ul> </div> </div><!--/.col-md-2--> <div class="col-sm-4 col-md-2"> <div class="foo-widget"> <span><img id ="mathematicsg-sprite" src="https://www.studentlance.com/Nassests/images/img_trans.gif" alt="Mathematics" width="44" height="44"/></span> <h3>Mathematics</h3> <ul> <li > <a href="/subjects/applied-mathematics-homework-help/"> Applied Mathematics </a> </li> <li > <a href="/subjects/calculus-homework-help/"> Calculus </a> </li> <li > <a href="/subjects/geometry-homework-help/"> Geometry</a> </li> <li > <a href="/subjects/pure-mathematics-homework-help/"> Pure Mathematics</a> </li> <li > <a href="/subjects/statistics-and-probability-homework-help/"> Statistics and Probability </a> </li> <li > <a href="/subjects/systems-science-homework-help/"> Systems science</a> </li> </ul> </div> </div><!--/.col-md-2--> <div class="col-sm-4 col-md-2"> <div class="foo-widget"> <span><img id ="applied-science-sprite" src="https://www.studentlance.com/Nassests/images/img_trans.gif" alt="Applied Science" width="58" height="43"/></span> <h3>Applied Science</h3> <ul> <li > <a href="/subjects/agriculture-homework-help/"> Agriculture </a> </li> <li > <a href="/subjects/architecture-homework-help/"> Architecture</a> </li> <li > <a href="/subjects/civil-engineering-homework-help/"> Civil Engineering </a> </li> <li > <a href="/subjects/communication-homework-help/"> Communication</a> </li> <li > <a href="/subjects/education-homework-help/"> Education</a> </li> <li > <a href="/subjects/electrical-engineering-homework-help/"> Electrical Engineering</a> </li> <li > <a href="/subjects/engineering-homework-help/"> Engineering</a> </li> <li > <a href="/subjects/environmental-studies-homework-help/"> Environmental studies</a> </li> </ul> </div> </div><!--/.col-md-2--> <div class="col-sm-4 col-md-2"> <div class="foo-widget"> <span><img id="humanitiestutor-sprite" src="https://www.studentlance.com/Nassests/images/img_trans.gif" alt="Humanities Tutor" width="64" height="42"/></span> <h3>Humanities Tutor</h3> <ul> <li > <a href="/subjects/arts-homework-help/"> Arts </a> </li> <li > <a href="/subjects/history-homework-help/"> History </a> </li> <li > <a href="/subjects/linguistics-homework-help/"> Linguistics</a> </li> <li > <a href="/subjects/literature-homework-help/"> Literature</a> </li> <li > <a href="/subjects/philosophy-homework-help/"> Philosophy</a> </li> <li > <a href="/subjects/religious-studies-homework-help/"> Religious Studies</a> </li> </ul> </div> </div><!--/.col-md-2--> <div class="col-sm-4 col-md-2"> <div class="foo-widget"> <span><img id="natural-sprite" src="https://www.studentlance.com/Nassests/images/img_trans.gif" alt="Natural Sciences" width="45" height="45"/></span> <h3>Natural Sciences</h3> <ul> <li > <a href="/subjects/biology-homework-help/"> Biology </a> </li> <li > <a href="/subjects/chemistry-homework-help/"> Chemistry</a> </li> <li > <a href="/subjects/earth-science-homework-help/"> Earth Sciences</a> </li> <li > <a href="/subjects/physics-homework-help/"> Physics</a> </li> <li > <a href="/subjects/space-sciences-homework-help/"> Space Sciences</a> </li> <li > <a href="/subjects/english-homework-help/"> English</a> </li> <li > <a href="/subjects/french-homework-help/"> French </a> </li> <li > <a href="/subjects/german-homework-help/"> German</a> </li> </ul> </div> </div><!--/.col-md-2--> </div> </div> </section><!--/#bottom--> <footer id="footer"> <div class="container wow fadeInDown"> <nav class="footer_nav"> <ul> <li> <a href="/login/"> Login </a> </li> <li><a href="https://www.studentlance.com/contact-us">Contact Us</a></li><li><a href="https://www.studentlance.com/faq">FAQ</a></li><li><a href="https://www.studentlance.com/code-of-conduct">Code of Conduct</a></li><li><a href="https://www.studentlance.com/terms-of-use">Terms of Use</a></li><li><a href="https://www.studentlance.com/privacy-policy">Privacy Policy</a></li><li><a href="https://www.studentlance.com/affiliates">Affiliates</a></li><li><a href="https://www.studentlance.com/fees">Fees</a></li><li><a href="https://www.studentlance.com/about">About</a></li> </ul> </nav> <div class="row"> <p>Copyright © 2015 Tutor Homework Help Online, Tutoring Online - StudentLance, Inc. All rights reserved.</p> <p> </p> </div> </div> </footer> <!--wrapper end--><script src="https://www.studentlance.com/Nassests/js/queen.js"></script> <script src="https://www.studentlance.com/Nassests/js/jquery.bxslider.js"></script> <script src="https://www.studentlance.com/assets/ckeditor/ckeditor.js" type="text/javascript"></script><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-32575082-1', 'auto'); ga('send', 'pageview'); </script><script src="https://www.studentlance.com/assets/js/functions.js" type="text/javascript"></script><script src="https://www.studentlance.com/assets/js/bjqs.js" type="text/javascript"></script> <script type="text/javascript"> var $ = jQuery; var frm = $("form#login-form"); frm.submit(function (ev) { var data = frm.serialize(); $("#login-check-data").html('<div class="jax-img-hldr"><img src="https://www.studentlance.com/assets/admin/images/ajax_loader.gif" alt="" /></div>'); $.ajax({ type: "POST", url: "https://www.studentlance.com//ajax_login", data: data, success: function(resp) { $("#login-check-data").html(resp); } }); ev.preventDefault(); }); </script></body></html>