Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Coding

Coding

Scheduled Pinned Locked Moved The Weird and The Wonderful
businesshelptutorialcareer
6 Posts 6 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mistyangel
    wrote on last edited by
    #1

    I. Overview 1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions. 2. The program should meet all the requirements. II. Inputs 1. Employee’s ID Number – an 8 digit integer 1st four digits signifies the year the employee started. 5th digit signifies employment type. 0 for regular, 1 for contract. Other values are invalid. Last 3 digits are irrelevant for this program. 2. Salary Grade – a real number 3. Days worked for the month – an integer with valid values of 1 to 31 only. 4. wBonus – a character to signify whether the employee will receive a bonus or not III. Processing 1. Prompt for all necessary inputs. Check every input for validity. 2. Compute for the employee’s salary for the month. Basic Salary = Salary grade * Days Worked For employees with bonus For regular employees who started before 1990 Bonus = Basic Salary * .4 For regular employees who started before 2000 Bonus = Basic Salary * .3 For regular employees who started before 2006 Bonus = Basic Salary * .2 For regular employees who started after 2005 and contract employees Bonus = Basic Salary * .1 Salary for the Month = Basic Salary + Bonus 3. Accumulate Total Basic Salary and Total Bonus. 4. Display Employee’s Salary for the Month(output #1) 5. Prompt if the user wants to process another employee. If yes, go back to #1. 6. Display Total Basic Salary and Total Bonus(output #2) IV. Outputs (use 2 decimal places for real numbers) 1. ID Number and Salary for the Month. Example: ID Number: 19970123 Salary: P1500.50 2. Total Basic Salary and Total Bonus. Example: Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55 V. Requirements 1. Use the printf function for all outputs including prompts. 2. Use the scanf function for accepting/reading all inputs. 3. Use defined constants for the constants used in the bonus computation. 4. Declare/define functions for each routine/subroutine in the program. 5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value. 6. Users should be able to use the program without special instructions or training.

    bleh

    enhzflepE P L D B 5 Replies Last reply
    0
    • M mistyangel

      I. Overview 1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions. 2. The program should meet all the requirements. II. Inputs 1. Employee’s ID Number – an 8 digit integer 1st four digits signifies the year the employee started. 5th digit signifies employment type. 0 for regular, 1 for contract. Other values are invalid. Last 3 digits are irrelevant for this program. 2. Salary Grade – a real number 3. Days worked for the month – an integer with valid values of 1 to 31 only. 4. wBonus – a character to signify whether the employee will receive a bonus or not III. Processing 1. Prompt for all necessary inputs. Check every input for validity. 2. Compute for the employee’s salary for the month. Basic Salary = Salary grade * Days Worked For employees with bonus For regular employees who started before 1990 Bonus = Basic Salary * .4 For regular employees who started before 2000 Bonus = Basic Salary * .3 For regular employees who started before 2006 Bonus = Basic Salary * .2 For regular employees who started after 2005 and contract employees Bonus = Basic Salary * .1 Salary for the Month = Basic Salary + Bonus 3. Accumulate Total Basic Salary and Total Bonus. 4. Display Employee’s Salary for the Month(output #1) 5. Prompt if the user wants to process another employee. If yes, go back to #1. 6. Display Total Basic Salary and Total Bonus(output #2) IV. Outputs (use 2 decimal places for real numbers) 1. ID Number and Salary for the Month. Example: ID Number: 19970123 Salary: P1500.50 2. Total Basic Salary and Total Bonus. Example: Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55 V. Requirements 1. Use the printf function for all outputs including prompts. 2. Use the scanf function for accepting/reading all inputs. 3. Use defined constants for the constants used in the bonus computation. 4. Declare/define functions for each routine/subroutine in the program. 5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value. 6. Users should be able to use the program without special instructions or training.

      bleh

      enhzflepE Offline
      enhzflepE Offline
      enhzflep
      wrote on last edited by
      #2

      :mad::mad::mad::mad::mad:

      1 Reply Last reply
      0
      • M mistyangel

        I. Overview 1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions. 2. The program should meet all the requirements. II. Inputs 1. Employee’s ID Number – an 8 digit integer 1st four digits signifies the year the employee started. 5th digit signifies employment type. 0 for regular, 1 for contract. Other values are invalid. Last 3 digits are irrelevant for this program. 2. Salary Grade – a real number 3. Days worked for the month – an integer with valid values of 1 to 31 only. 4. wBonus – a character to signify whether the employee will receive a bonus or not III. Processing 1. Prompt for all necessary inputs. Check every input for validity. 2. Compute for the employee’s salary for the month. Basic Salary = Salary grade * Days Worked For employees with bonus For regular employees who started before 1990 Bonus = Basic Salary * .4 For regular employees who started before 2000 Bonus = Basic Salary * .3 For regular employees who started before 2006 Bonus = Basic Salary * .2 For regular employees who started after 2005 and contract employees Bonus = Basic Salary * .1 Salary for the Month = Basic Salary + Bonus 3. Accumulate Total Basic Salary and Total Bonus. 4. Display Employee’s Salary for the Month(output #1) 5. Prompt if the user wants to process another employee. If yes, go back to #1. 6. Display Total Basic Salary and Total Bonus(output #2) IV. Outputs (use 2 decimal places for real numbers) 1. ID Number and Salary for the Month. Example: ID Number: 19970123 Salary: P1500.50 2. Total Basic Salary and Total Bonus. Example: Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55 V. Requirements 1. Use the printf function for all outputs including prompts. 2. Use the scanf function for accepting/reading all inputs. 3. Use defined constants for the constants used in the bonus computation. 4. Declare/define functions for each routine/subroutine in the program. 5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value. 6. Users should be able to use the program without special instructions or training.

        bleh

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Do your own homework :mad: This forum is for sharing coding horrors that you have found on the job. Usually it winds up being when one finds work done by someone else that was done in a substandard manner.

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

        1 Reply Last reply
        0
        • M mistyangel

          I. Overview 1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions. 2. The program should meet all the requirements. II. Inputs 1. Employee’s ID Number – an 8 digit integer 1st four digits signifies the year the employee started. 5th digit signifies employment type. 0 for regular, 1 for contract. Other values are invalid. Last 3 digits are irrelevant for this program. 2. Salary Grade – a real number 3. Days worked for the month – an integer with valid values of 1 to 31 only. 4. wBonus – a character to signify whether the employee will receive a bonus or not III. Processing 1. Prompt for all necessary inputs. Check every input for validity. 2. Compute for the employee’s salary for the month. Basic Salary = Salary grade * Days Worked For employees with bonus For regular employees who started before 1990 Bonus = Basic Salary * .4 For regular employees who started before 2000 Bonus = Basic Salary * .3 For regular employees who started before 2006 Bonus = Basic Salary * .2 For regular employees who started after 2005 and contract employees Bonus = Basic Salary * .1 Salary for the Month = Basic Salary + Bonus 3. Accumulate Total Basic Salary and Total Bonus. 4. Display Employee’s Salary for the Month(output #1) 5. Prompt if the user wants to process another employee. If yes, go back to #1. 6. Display Total Basic Salary and Total Bonus(output #2) IV. Outputs (use 2 decimal places for real numbers) 1. ID Number and Salary for the Month. Example: ID Number: 19970123 Salary: P1500.50 2. Total Basic Salary and Total Bonus. Example: Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55 V. Requirements 1. Use the printf function for all outputs including prompts. 2. Use the scanf function for accepting/reading all inputs. 3. Use defined constants for the constants used in the bonus computation. 4. Declare/define functions for each routine/subroutine in the program. 5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value. 6. Users should be able to use the program without special instructions or training.

          bleh

          L Offline
          L Offline
          leckey 0
          wrote on last edited by
          #4

          Do your own f*cking homework.

          Blog link to be reinstated at a later date.

          1 Reply Last reply
          0
          • M mistyangel

            I. Overview 1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions. 2. The program should meet all the requirements. II. Inputs 1. Employee’s ID Number – an 8 digit integer 1st four digits signifies the year the employee started. 5th digit signifies employment type. 0 for regular, 1 for contract. Other values are invalid. Last 3 digits are irrelevant for this program. 2. Salary Grade – a real number 3. Days worked for the month – an integer with valid values of 1 to 31 only. 4. wBonus – a character to signify whether the employee will receive a bonus or not III. Processing 1. Prompt for all necessary inputs. Check every input for validity. 2. Compute for the employee’s salary for the month. Basic Salary = Salary grade * Days Worked For employees with bonus For regular employees who started before 1990 Bonus = Basic Salary * .4 For regular employees who started before 2000 Bonus = Basic Salary * .3 For regular employees who started before 2006 Bonus = Basic Salary * .2 For regular employees who started after 2005 and contract employees Bonus = Basic Salary * .1 Salary for the Month = Basic Salary + Bonus 3. Accumulate Total Basic Salary and Total Bonus. 4. Display Employee’s Salary for the Month(output #1) 5. Prompt if the user wants to process another employee. If yes, go back to #1. 6. Display Total Basic Salary and Total Bonus(output #2) IV. Outputs (use 2 decimal places for real numbers) 1. ID Number and Salary for the Month. Example: ID Number: 19970123 Salary: P1500.50 2. Total Basic Salary and Total Bonus. Example: Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55 V. Requirements 1. Use the printf function for all outputs including prompts. 2. Use the scanf function for accepting/reading all inputs. 3. Use defined constants for the constants used in the bonus computation. 4. Declare/define functions for each routine/subroutine in the program. 5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value. 6. Users should be able to use the program without special instructions or training.

            bleh

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #5

            See here for assistance.[^]

            Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

            1 Reply Last reply
            0
            • M mistyangel

              I. Overview 1. Create a program that will accept the necessary inputs and generate the proper outputs based on the processing instructions. 2. The program should meet all the requirements. II. Inputs 1. Employee’s ID Number – an 8 digit integer 1st four digits signifies the year the employee started. 5th digit signifies employment type. 0 for regular, 1 for contract. Other values are invalid. Last 3 digits are irrelevant for this program. 2. Salary Grade – a real number 3. Days worked for the month – an integer with valid values of 1 to 31 only. 4. wBonus – a character to signify whether the employee will receive a bonus or not III. Processing 1. Prompt for all necessary inputs. Check every input for validity. 2. Compute for the employee’s salary for the month. Basic Salary = Salary grade * Days Worked For employees with bonus For regular employees who started before 1990 Bonus = Basic Salary * .4 For regular employees who started before 2000 Bonus = Basic Salary * .3 For regular employees who started before 2006 Bonus = Basic Salary * .2 For regular employees who started after 2005 and contract employees Bonus = Basic Salary * .1 Salary for the Month = Basic Salary + Bonus 3. Accumulate Total Basic Salary and Total Bonus. 4. Display Employee’s Salary for the Month(output #1) 5. Prompt if the user wants to process another employee. If yes, go back to #1. 6. Display Total Basic Salary and Total Bonus(output #2) IV. Outputs (use 2 decimal places for real numbers) 1. ID Number and Salary for the Month. Example: ID Number: 19970123 Salary: P1500.50 2. Total Basic Salary and Total Bonus. Example: Tot Basic Salary: P180,000.90 Tot Bonus: P20,000.55 V. Requirements 1. Use the printf function for all outputs including prompts. 2. Use the scanf function for accepting/reading all inputs. 3. Use defined constants for the constants used in the bonus computation. 4. Declare/define functions for each routine/subroutine in the program. 5. Use error checking. If the user inputs an invalid value, inform the user and prompt for a new value. 6. Users should be able to use the program without special instructions or training.

              bleh

              B Offline
              B Offline
              BillW33
              wrote on last edited by
              #6

              If you are trying to say that these requirements are a horror, I have to disagree. Those requirements are quite resonable for a homework assignment. Also this is a "coding horror" forum not a requirements horror forum. Bill W

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups