Write a program to input a purchase amount

Assignment Help Programming Languages
Reference no: EM13809935

Q1: A retail store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user, determine the discount percentage, and display the total amount due. When the purchases are more than $100, the discount is 10%. When the purchases are $100 or less, the discount is 5%.

Q2: A furniture store is having a customer appreciation sale. Depending on the total dollars purchased, customer could receive a discount on his or her total purchases. You are to develop pseudocode that will obtain the total dollars purchased from the user comment determined discount percentage and display the total amount due. When the purchases are more than $2000 the discount is 12%. When the purchases are $2000 or less the discount is 7%.

Part 2: Create a function called

CalcDiscount that will calculate in return to discount amount right to functioning call it in the code.

Q3: Write a program to input a purchase amount and calculate the sales tax and total do. The SalesTax depends on the county identifying code. County's with a number less than eight have a 5% sales tax. The 8-20 Kos have a sales tax of 6%. Codes above 20 have a sales tax of 7%. The purchase amount in county code entered by the user. Use a loop to validate that the county code is between five and 30. Display the amount of the sales tax and the total.

Q4: Write a Visual Basic loop that displays the even numbers from 20 to 60.

Q5: You have been asked by the payroll department to create a program that will calculate the weekly pay for the companies 25 employees. The employee names and pay will be stored in arrays. The program will prompt the user to provide each employee's full name, hourly pay rate, and hours worked. The program will then ask whether the employee is single or married. An employee is married, the tax rate is 20%; if you're she is single, the tax rate is 25%. Also, if the employee work more than 40 hours in a week, the number of hours greater than 40 is paid a rate 1.5 times the pay rate. After all data are input and calculated, the program will display a payroll report with a list of all the employee names in weekly pay. In addition, the program will display the total payroll for the week, and the average weekly pay.

Write a program using Visual Basic, prompt to user for the appropriate input, and display the output as described above. You may assume all data are valid. Provide a program introduction message until the user how to use the program.

Reference no: EM13809935

Questions Cloud

Explains memory management requirements : Write a 2-page paper that explains memory management requirements. Write a 2-page paper that explains the differences in memory management between Windows and Linux
Business model summaries : Summarize a business model for each organization that includes both the customer value proposition as well as the profit formula. Try to keep your business model summaries to one paragraph.
Organization determine customer requirements : How does your organization determine customer requirements? How are your organization's core competencies tied to its strategic goals? What are the strengths and weaknesses of the quality function deployment approach?
Healthcare systems around the world : Healthcare systems around the world
Write a program to input a purchase amount : Write a program to input a purchase amount and calculate the sales tax and total do. The SalesTax depends on the county identifying code
Practices of global operations management : The objective of this discussion is to aid you in mastering the following course competencies: Apply theories, models, and practices of global operations management to address business problems.
What was gravity at his location : He used a 4.0 m length of string and found that with a rock tied at its end , its period as a pendulum was 4.1 seconds. What was gravity at his location?
Differentiate between traditional marketing and e-marketing : Differentiate between traditional marketing and e-marketing. List an example of how you could utilize the differences of e-marketing. Assemble a list of specific guidelines that ensures that you make a great first impression on your welcome page
Continuum of substance use and abuse : Continuum of Substance Use and Abuse

Reviews

Write a Review

Programming Languages Questions & Answers

  Design a driver to test implementation of program

Design a driver to test your implementation. Add various random elements to heap, and then remove & display smallest element.

  Write a new class file with a main() method in the project

Write a new class file with a main() method in the same project, use it to load in the names.txt, sort the names, and store them to a file called, nameout.txt. Each name on its own line.

  Program to compute grade point average

Write a program that uses such a file to calculate your grade point average(GPA). A GPA is based on a scale from 5, where A is 4, B is 3, C is 2, D is 1 and F is 0.

  Program takes input from a user in the form of a phrase

This program takes input from a user in the form of a phrase. It then converts the phrase to ig latin.

  Design application that reads arbitary number of integers

Design and implement an application that reads an arbitary number of integers that are in the range of 0 to 50 inclusive and counts how many occurences of each are entered.

  Write a program that bounces blue ball inside jpanel

Write a program that bounces a blue ball inside JPanel. The ball should begin moving with a mousePressed event. When the ball hits the edge of the JPanel.

  What are advantages of using menus in a gui application

What are advantages of using menus in a GUI application? Design a menu structure for a program you would find useful in your work or hobbies. Write and post the code for the menu creation

  What is a feature of good program design

Variables declared within a module have what scope? In what way do named constants differ from variables? What is a feature of good program design

  Program to find sum-difference of two complex numbers

Program should ask user to enter two complex numbers and it automatically finds it sum, difference, coefficient, product conjugate.

  Projects for the falling letters game

Design and implement two projects for the Falling Letters game using C# and Windows Presentation Foundation (WPF) template in Visual Studio 2012 or newer.

  Compare three generations of programming languages

Compare and contrast at least three generations of programming languages. Be sure to include in your discussion: semantics, syntax, and machine dependence.

  Program to find if number input by user is palindrome or not

Write down the program which uses the method called palindrome ( ) to find out if number input by user is a palindrome or not. For instance 1221 is palindrome as it can be read same way forwards and backwards.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd