Modify the program to ask the user for an employee

Assignment Help Basic Computer Science
Reference no: EM132039394

Option Explicit On
Option Strict On 
Module Module1
   Sub Main()
      Dim Name As String
      Dim GrossString As String
      Dim Gross, Deduct, Net As Double
      Const RATE As Double = 0.25 
      Const QUIT As String = "XXX"
      Const REPORT_HEADING As String = "Payroll Report"
      Const END_LINE As String = "**End of report"

      'Work done in the housekeeping() procedure
      System.Console.WriteLine(REPORT_HEADING)
      Name = InputBox$("Enter employee's name: ")
      While(Name <> QUIT)
         'Work done in the detailLoop() procedure
         GrossString = InputBox$("Enter employee's gross pay: ")
         Gross = Convert.ToDouble(GrossString)
         Deduct = Gross * RATE
         Net = Gross - Deduct
         System.Console.WriteLine("Name: " & Name)
         System.Console.WriteLine ("Gross Pay: " & Gross)
         System.Console.WriteLine ("Deductions: " & Deduct)
         System.Console.WriteLine ("Net Pay: " & Net)
         Name = InputBox$("Enter employee's name: ")
      End While
      'Work done in the endOfJob() procedure
      System.Console.WriteLine(END_LINE)
   End Sub
End Module

Modify the program to ask the user for an employee number which will be a numeric value such as 3234 with no decimals. Also prompt the user to enter in bonus pay. Since this is a monetary amount,make sure the user can enter values with a decimal point such as 30.45. Currently the Net is set to be equal to the Gross minus the Deduct. Modify this so that the Net is set equal to the Gross minus Deduct plus the Bonus amount. Also change the program to display the employee number as well as the bonus amount for the user along with the other report data. 

Reference no: EM132039394

Questions Cloud

Explain the diagnostic criteria for social anxiety disorder : Explain the difference between an adjustment disorder and Social anxiety disorder. Provide examples to illustrate your rationale.
Moving data between systems on networks : Describe at least one issue when moving data between systems on networks.
Programming languages and the pros and cons : what is one difference between two programming languages and the pros and cons of both.
Compare two change theories : Compare and contrast two change theories, and determine which theory makes the most sense for implementing your specific EBP project. Why?
Modify the program to ask the user for an employee : Modify the program to ask the user for an employee number which will be a numeric value such as 3234 with no decimals.
Strategies for increasing mindfulness in the workplace : Write an report about The Employment Outlook in Your Major for the next five years and Strategies for Increasing Mindfulness in the Workplace.
What is the annual percentage rate for the loan : If you were to apply to Blue Angel for a $123,000 loan, what is the annual percentage rate you would have to pay for this loan?
What benefits the employees will obtain through the coverage : As a manager, you have been chosen to present to employees regarding your company's new health insurance carrier with whom you have recently contracted.
What are the most common mistakes people make in resumes : What are three questions you should ask yourself when you begin your job search? What are the most common mistakes people make in preparing their résumés?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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