Monthly Sales Tax
A retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Design a modular
- The amount of county sales tax
- The amount of state sales tax
- The total sales tax (county plus state)
In the pseudocode, represent the county tax rate (0.02) and the state tax rate (0.04) as named constants.
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
Starting Out with Programming Logic and Design (4th Edition)
Additional Engineering Textbook Solutions
Software Engineering (10th Edition)
Programming in C
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
C How to Program (8th Edition)
Starting out with Visual C# (4th Edition)
Starting Out with C++: Early Objects (9th Edition)
- Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. The next problems rely on the generation of a random number. You can create a random number that is at least mi n but less than max using the following statements: Random ranNumberCenerator = new Random(); int randomNumber; randomNumber = ranNumberGenerator .Next(min, max);arrow_forwardA retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the following: The amount of county sales tax The amount of state sales tax The total sales tax (county plus state) Step 2: Given the major task involved in this program, what modules might you consider including? Describe the purpose of each module. (Reference: Defining and Calling a Module, page 78). Module Name Purpose Module inputData () Allows the user to enter required user inputarrow_forwardA retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and county sales tax collected. The state sales tax rate is 4 percent and the county sales tax rate is 2 percent. Write a program that asks the user to enter the total sales for the month. The application should calculate and display the following: The amount of county sales tax The amount of state sales tax The total sales tax (county plus state) Step 3: Complete the pseudocode by writing the missing lines. (Reference: Defining and Calling a Module, page 78-81). Also, when writing your modules and making calls, be sure to pass necessary variables as arguments and accept them as reference parameters if they need to be modified in the module. (Reference: Passing Arguments by Value and by Reference, page 97 – 103). Module main () //Declare local variables Declare Real totalSales…arrow_forward
- C# onlyarrow_forwardCreate an application that lets the user enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses and the total annual cost of these expenses.arrow_forwardA retail company must file a monthly sales tax report listing the total sales for the month, and the amount of state, special area, and county sales tax collected. The state sales tax rate is 4 percent, special area sales tax rate is 3 and the county sales tax rate is 2 percent. Write a sequential program that asks the user to enter the total sales for the month. From this figure, the application should calculate and display the following: The amount of county sales tax The amount of special area sales tax The amount of state sales tax Find and display the max of the three sales taxes along with each sales tax. The total sales tax (county plus state) Enter comments Format appropriately Label each output correctlyarrow_forward
- GPA Calculator Students are concerned about their GPA. They need to calculate it accurately every semester to monitor their progress. Develop a GPA calculator that follows the AOU regulations (AOU-OU Grade Scale) using C# programming language. The application asks the student to enter his numeric grade of each course and the course's credit hours. Accordingly, the application calculates the student's GPA after converting the numeric grade to letter grade. The GPA calculation should produce floating-point results. Display the results rounded to the nearest hundredth. You should store the letter grades of all student's courses in an array. The final grade of the student should be also calculated. Sample I/O Enter the course grade (-1 to end): 93 Enter the course credit hours: 3 Enter the course grade (-1 to end): 74 Enter the course credit hours: 2 Enter the course grade (-1 to end): 60 Enter the course credit hours: 3 Enter the course grade (-1 to end): -1 The grades of your courses…arrow_forwardFalling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d =1/2gt2 The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.arrow_forwardTheater RevenueA movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie company. Create a GUI application that allows the user to enter the following data into text fields:� Price per adult ticket� Number of adult tickets sold� Price per child ticket� Number of child tickets soldThe application should calculate and display the following data for one night�s box office business at a theater:� Gross revenue for adult tickets sold. This is the amount of money taken in for all adult tickets sold.� Net revenue for adult tickets sold. This is the amount of money from adult ticket sales left over after the payment to the movie company has been deducted.� Gross revenue for child tickets sold. This is the amount of money taken in for all child tickets sold.� Net revenue for child tickets sold. This is the amount of money from child ticket sales left over after the payment to the movie company has been deducted.� Total gross revenue. This…arrow_forward
- 6. Travel ExpensesCreate an application that calculates and displays the total travel expenses for a business trip. The user must provide the following information:• Number of days on the trip• Amount of airfare, if any• Amount paid for meals, if any• Amount of car rental fees, if any• Number of miles driven, if a private vehicle was used• Amount of parking fees, if any• Amount of taxi charges, if any• Conference or seminar registration fees, if any• Lodging charges, per nightM06_GADD4658_08_SE_C06.indd 425 05/01/19 2:33 PM426 Chapter 6 Procedures and FunctionsThe company reimburses travel expenses according to the following policy:• $37 per day for meals• Parking fees, up to $10.00 per day• Taxi charges up to $20.00 per day• Lodging charges up to $95.00 per day• If a private vehicle is used, $0.27 per mile drivenThe application should calculate and display the following:• Total expenses incurred by the business person• The total allowable expenses for the trip• The excess that must be…arrow_forwardThe output of a calculation is often shown in the user interface in the form of a(n) _____control.arrow_forwardProperty Tax If you own real estate in a particular county, the property tax that you owe each year is calculated as 64 cents per $100 of the property’s value. For example, if the property’s value is $10,000, then the property tax is calculated as follows: Tax = $10,000 ÷ 100 × 0.64 Create an application that allows the user to enter a property’s value and displays the sales tax on that property.arrow_forward
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,