Compiled Messages: ------------------------------------------------------------- Message no. 231: posted by Martha Wilson (marthawilson18) on Mon Nov 12, 2001 19:54 Subject: Chapter 8 problem Okay, am I way off base or is there a major error in the example they give on pages 113-116? The error seems to me to be in the desk checking. Seems they "accumulated" all employee hrs worked. Also seems they're way off in terms of the pay rates being less than $25. Any comments? This is one of my concerns with desk checking. If I have a logic error, I suspect I will simply carry my logic error into my desk checking. Martha ------------------------------------------------------------- Message no. 232: [Branch from no. 231] posted by Laura Scallion (cis122ls) on Tue Nov 13, 2001 21:54 Subject: re: Chapter 8 problem I've gone back over the example and here is what I see: emp1 $20 X 35 = $700 emp2 $20 X 35 = $700, then 700 + ($30 X 5 OT)= $850 *remember any hours over 35 = OT rate time 1/2 limit of $25.00 regular rate does not apply. emp3 $30 X 65 *receives two error messages. Pay rate exceeds regular rate high of $25, and hours worked exceeds limit of 60. HTH Laura ------------------------------------------------------------- Message no. 233: [Branch from no. 232] posted by Martha Wilson (marthawilson18) on Wed Nov 14, 2001 16:43 Subject: re: Chapter 8 problem Laura, I think that's what they meant...but that's certainly not what's in my book. In my book they show hours worked of both emp1 and emp2 as 20. They show pay rate as $35 and $40 respectively. Seems to me if $25 is the max, these should have both produced error messages. Emp3 is shown as working 30 hours, yet they generate an error message of having exceeded 60 hours. The only way that works is if you actually ADD the hours of all three employees. OR, am I still not reading this correctly? Does anyone see this as I do? Martha ------------------------------------------------------------- Message no. 234: [Branch from no. 233] posted by Jeffery Anderson (jefferyanderson69) on Wed Nov 14, 2001 18:26 Subject: re: Chapter 8 problem Martha- My book is incorrect as well. It reads the same as you have quoted. It was quite confusing but by replacing the incorrect information with the correct it seems to work except of course for the hours worked for emp3. I think it best to set this example aside! It's an obvious misprint. :) Jeffery ------------------------------------------------------------- Message no. 235: [Branch from no. 234] posted by Laura Scallion (cis122ls) on Wed Nov 14, 2001 20:21 Subject: re: Chapter 8 problem Your book must be different from mine, sorry. I show the wage of $20, then the hours worked in the next column. Sorry for the confusion. Are the column headings incorrect also? Laura ------------------------------------------------------------- Message no. 236: [Branch from no. 235] posted by Jeffery Anderson (jefferyanderson69) on Thu Nov 15, 2001 09:52 Subject: re: Chapter 8 problem Laura- The column headings seem to be okay. The records used for input are emp1: 20 hour @ $35, emp 2: 20 hours @ $40 and emp 3: 30 hours @ $65. Given this input the error message 'Pay rate exceeds $25' would be triggered for all the records and none would trigger the hours worked over 60 error. The Desk check and expected results in my book shows that neither emp 1 or emp 2 trigger any error messages while emp 3 triggers both. Seems like an error in the printing? ------------------------------------------------------------- Message no. 237: [Branch from no. 236] posted by Laura Scallion (cis122ls) on Thu Nov 15, 2001 12:57 Subject: re: Chapter 8 problem Yes, it must be an error in printing because my book has $20 per hour for emp1 and emp2, then 35 and 40 hours respectively. Laura ------------------------------------------------------------- Message no. 239: [Branch from no. 237] posted by Karen Trussell (karentrussell00) on Sat Nov 17, 2001 13:50 Subject: re: Chapter 8 problem The columns are correct but the info within each column isn't shown correctly. For instance, emp1 has a pay_rate of 20 and hrs_worked $35.00. If you just change 20 into $20.00 and $35.00 into 35 it will all work out fine. They really do need to get this fixed because it is a little confusing. Hope everyone is having a great weekend. Karen ------------------------------------------------------------- Message no. 238: [Branch from no. 231] posted by Melvin Magnusson (melvinmagnusson68) on Fri Nov 16, 2001 03:48 Subject: re: Chapter 8 problem I posted a lengthy reply last night, but for some reason it never got posted. I shall try again. The columns in my book for the input data are: Record, hrs_worked, and pay_rate. The columns for my expectd results are:employee, hours, pay rate and calculated pay. The interesting thing is that the error messages are for only emp3 for exceeding 30 hours of work and pay rate. This can't be. Why, because on page 113 of the text it is referred to the fact the company rules says no calculation to be performed for two different things if the criteria meets them. Namely, if the hours worked OR hourly rate are out of range, the input data and an appropriate message are to be printed and the emplyree's weekly pay is NOT to be caculated.Ok.... Last week, in our visual basic homework, we had conditions to work with. I think the condition OR is part of this week's homework. If one OR the other are out of range, THEN the data are to be printed, AND an error messaged displayed. ALSO, no action such as calculation are to be performed. A FLAG is set here. The way I see it, all 3 employees are with in range for hours worked under 30 hours for the week each. This means no overtime is to be calculated. The IF statement then goes on to the OR statement, and is flagged because of the out of range data for the pay rate. All three employees make more than $25/hr. An automatic flag for no calculation. They all get error messages because of the OR statement, they are out of range. My book lists emp3 twice at 30 hours and $65/hr. Is that the misprint? Which explains the hours out of range for emp3? How is it in the desk check, that emp2 worked 20 (which is less than 35 hours for the overtime pay, and less than 60 for the total hours for the week; and emp2 is getting 5 hours overtime for 20 hours worked? If emp2 gets the overtime for 20 hours worked, why not emp1 for the same hours worked? Shouldn't emp1 get the same OT pay as well? While emp3 worked 30 hours, how is it the desk check doesn't print the hours? The expected results lists emp3 twice when it should only be listed once. It sounds like we students are using the same book, but I am finding out there are some inconsistency in the discussion area concerning the whole thing. Dean ------------------------------------------------------------- Message no. 243: [Branch from no. 238] posted by Laura Scallion (cis122ls) on Sat Nov 17, 2001 23:21 Subject: re: Chapter 8 problem For problem 8 the program logic has taken a turn and more work is involved. Therefore, you only have to turn in what is requested in the assignment. Laura ------------------------------------------------------------- Message no. 240: posted by Tracy Ward (tracyward73) on Sat Nov 17, 2001 16:06 Subject: Assignment 8 In all the previous assignments we have had to Define the Problem, do a flowchart and do the desk check. This week those are not listed in the instructions. I did not put them into my documents. I am just wondering if anyone esle did or not. Should I shouldn't I? Thanks ------------------------------------------------------------- Message no. 241: [Branch from no. 240] posted by James Bland (jamesbland95) on Sat Nov 17, 2001 17:25 Subject: re: Assignment 8 I'm not putting them because it wasn't asked for.--James ------------------------------------------------------------- Message no. 242: [Branch from no. 240] posted by Melvin Magnusson (melvinmagnusson68) on Sat Nov 17, 2001 17:33 Subject: re: Assignment 8 The way I see it, we are still doing it, based on the first few assignment when this course began. Key word, 'from here on out' paraphrased. Assignment 8 as I read the text, the defining takes a different form because of using modules. I am now in the process of figuring out how to design a flow chart. I believe though, if we stay stuck on the discussion of the emp algorithm, the way it is, we are getting off focus of the assignment. I figured that out quickly once underway of designing the solution. In fact I was surprised to see how it was turning out. Last week we weren't instructed explicity to design the flow chart if memory serves me right, but I made one just to be safe. My grade seems to reflect that. Better safe than sorry. Dean ------------------------------------------------------------- Message no. 244: [Branch from no. 242] posted by Robin Canaday (robincanaday78) on Sun Nov 18, 2001 01:39 Subject: re: Assignment 8 Ditto what James said... besides, I figure we all know how to draw a flowchart by now :P -------------------------------------------------------------