This is the first programming assignment, and it requires you to write the pseudocode for a program that gets the radius and height of a cylinder from the user, and then calculates the volume of the cylinder by using the following formula: Volume = radius * radius * height * 3.1416Once calculated, the volume of the cylinder is displayed to the user. Please read the problem description carefully so that you know exactly what the program is supposed to do. Understanding the problem is part of the programming process. Follow the program requirements precisely. You may want to ask yourself the following questions about this problem:What input does the program need to get from the user?How do I use the given input to calculate the volume of the cylinder?What information needs to be displayed to the user after the calculations have been completed?As stated in the Instructor Policies, your pseudocode must conform to the syntax and style of the pseudocode examples in our textbook. Before attempting this problem, read Chapters 1 and 2, and pay special attention to how the Sale Price problem is analyzed and solved throughout Chapter 2. The complete pseudocode that solves the Sale Price problem is listed on Chapter 2, page 83, and that pseudocode is the equivalent of what you need to provide for the Volume of a Cylinder program.After reading Chapters 1 and 2, look at Worksheet D under the ‘Worksheets’ thread in the Course Materials Forum. Worksheet D also gives a completed example of the Sale Price problem you can use as a guide. Your assignment only needs to provide the pseudocode for the Volume of a Cylinder program that you will be writing, not the analysis.This is your first attempt at writing a program, so remember the following hints as you write your pseudocode:Every program needs to have a Main Module.Consider breaking down the problem into smaller modules to make the solution easier, and use the Call statement to call those modules when needed.Determine what variables will be needed, and use the Declare statement to declare all variables and their data types properly before they are used.Once a variable is declared, use its name throughout the program exactly as it is declared.Use the Input statement to get any input required from the user.Use the Set statement to set values to variables.Use the Write statement to display output to the user.Here is the example of the pseudocode that is needed to complete this assignment: Example 2.6 The Complete Sale Price Program DesignMain moduleDeclare ItemName As StringDeclare OriginalPrice As FloatDeclare DiscountRate As FloatDeclare Tax As FloatDeclare SalePrice As FloatDeclare TotalPrice As FloatWrite “Sale Price Program”Write “This program computes the total price, including tax, of”Write “an item that has been discounted a certain percentage.”Call Input Data moduleCall Perform Calculations moduleCall Output Results moduleEnd ProgramInput Data moduleWrite “What is the item’s name?”Input ItemNameWrite “What is its price and the percentage discounted?”Input OriginalPriceInput DiscountRatePerform Calculations moduleDeclare AmountSaved As FloatSet AmountSaved = OriginalPrice * (DiscountRate/100)Set SalePrice = OriginalPrice – AmountSavedSet Tax = SalePrice * .065Set TotalPrice = SalePrice + TaxOutput Results moduleWrite “The item is: “ + ItemNameWrite “Pre-sale price was: “ + OriginalPriceWrite “Percentage discounted was: “ + DiscountRate + “%”Write “Sale price: “ + SalePriceWrite “Sales tax: “ + Tax Write “Total: $” + TotalPrice please contact when this assignment is done AND is correct.
by admin | Sep 23, 2022 | Information Systems | 0 comments
This is the first programming assignment, and it requires you to write the pseudocode for…
A professional Academic Service Provider
Distinguished Writers Ensure Accountability, Confidentiality, High-Quality, and Timely Execution
Distinguished Writers comprises of well-trained professionals striving to give our clients an awesome experience. We engage with our customers throughout the learning process to ensure they are comfortable with both their classwork and homework in order to achieve excellent grades. The team is well-balanced across different fields to suit our clients. Our diversified fields include article writing, thesis proposals, project management, coursework, essay writing, and dissertations among others.Fundamental Values
1. Accountability: The company values professionalism in all our undertakings. As such, we interact transparently with our customers.
2. Confidentiality: The company does not disclose anything to third-parties, and our interactions with customers remain confidential.
3. High-Quality The products are thoroughly proofread and counter-checked to ensure they meet the expected quality levels.
Guarantees
4. Quality is a Guarantee: Our writers are accurately matched with their area of expertise to ensure proper quality is maintained. We are also equipped with adequate software to guarantee error-free products.
5. Money Back Policy: As a client-oriented service, we offer 100% refund for the following: if we received a double payment from you; if you placed similar orders twice (or more) and paid for all of them; the writer has not been assigned; you asked to cancel the order within 20 minutes after placing it; an e-Check payment has been sent (the Dispute Manager will contact you accordingly). Other cases involve a comprehensive investigation by the Dispute Department and feedback given within 24 hours. We value our customers; therefore, the process will be fair, fast, and precise.
5 .Free Revisions: You can request for revisions at no additional cost. Nonetheless, this does not include complete change of the initial order instructions and if it is not past ten days upon your approval.
6. 24/7 Customer Support: Our support staff are always online to provide any assistance when needed
Ordering Process
NOTE: If you have any question, always contact our support team before the commencement of your project. ALL THE BEST”:
Recent Comments