473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

I Need Help!!!

Okay, I am taking an intoduction to programming class in school right? We are not studying how to code the program, but just the design and logic. Here are the instructions that I am having trouble on:

A supervisor at a manufacturing company wants to produce a report from the PRODUCTION input file showing bonuses he is planning to give his employees based on this years production. He wants to have a report with 3 columns: last name, first name, and bonus.
If this year's production is:
- 1000 units or fewer, the bonus is $25
- 1001 to 3000 units, the bonus is $50
- 3001 to 6000 units, the bonus is $100
- 6001 units and more, the bonus is $200

PRODUCTION INPUT FILE

File name: PRODUCTION

FIELD DESCRIPTION DATA TYPE COMMENTS
Last Name Character 15 characters
First Name Character 15 characters
Last Year's Production Numeric 0 decimals
This Year's Production Numeric 0 decimals
__________________________________________________ _______________

Now, I am supposed to create a flowchart for this problem....

Is there anyone who can help out with this? No matter how many times I read the book, I am still lost. Any help at all would be greatly appreciated.

Thanks soooo much!!
Apr 26 '07 #1
5 2178
AdrianH
1,251 Expert 1GB
Okay, I am taking an intoduction to programming class in school right? We are not studying how to code the program, but just the design and logic. Here are the instructions that I am having trouble on:

A supervisor at a manufacturing company wants to produce a report from the PRODUCTION input file showing bonuses he is planning to give his employees based on this years production. He wants to have a report with 3 columns: last name, first name, and bonus.
If this year's production is:
- 1000 units or fewer, the bonus is $25
- 1001 to 3000 units, the bonus is $50
- 3001 to 6000 units, the bonus is $100
- 6001 units and more, the bonus is $200

PRODUCTION INPUT FILE

File name: PRODUCTION

FIELD DESCRIPTION DATA TYPE COMMENTS
Last Name Character 15 characters
First Name Character 15 characters
Last Year's Production Numeric 0 decimals
This Year's Production Numeric 0 decimals
__________________________________________________ _______________

Now, I am supposed to create a flowchart for this problem....

Is there anyone who can help out with this? No matter how many times I read the book, I am still lost. Any help at all would be greatly appreciated.

Thanks soooo much!!
It is not C/C++, but I'm sure we can help. First off, tell us what you are having difficulty with. Drawing the flow chart? What icons to use for the flow chart? What application you can use to draw it? (you can just use a pencil and paper).

Let us know.


Adrian
Apr 27 '07 #2
It is not C/C++, but I'm sure we can help. First off, tell us what you are having difficulty with. Drawing the flow chart? What icons to use for the flow chart? What application you can use to draw it? (you can just use a pencil and paper).

Let us know.


Adrian
__________________________________________________ _______________
Okay, I am using MS Visio to draw the flowchart. I am using regular I guess standard symbols such as the lozenge for the start/stop, rectangles for decision and diamonds etc. I am not actually going to code anything, just get it down on the flowchart. Some of the examples in the book look like this:
* Just an example:

createReport()
if empMedicalIns = "Y" then
if emDentalIns = "Y" then
print empIdNumber, empLastName, empFirstName
end if
endif
read empRecord
return

This is just an example written in psuedocode from my text. I am supposed to use the instructions above and make a flowchart for this problem.

__________________________________________________ _______

I hope this is enough info, if you need more, I will be happy to provide more details.. thanks!
Apr 27 '07 #3
AdrianH
1,251 Expert 1GB
Ok you have provide me with enough info except for one thing. What exactly are you having difficulty with? :)


Adrian
Apr 27 '07 #4
Ok you have provide me with enough info except for one thing. What exactly are you having difficulty with? :)


Adrian
Well, I know how to flowchart, but I am not sure exactly how to get this in a flowchart. I am able to get as far as a start symbol but that's it! lol. I feel like such a dummy :( . I am not sure how to get this problem into a flowchart.. I don't even know where to start, even the psuedocode for this would help but I don't have anything to go by.
Apr 28 '07 #5
AdrianH
1,251 Expert 1GB
Well, I know how to flowchart, but I am not sure exactly how to get this in a flowchart. I am able to get as far as a start symbol but that's it! lol. I feel like such a dummy :( . I am not sure how to get this problem into a flowchart.. I don't even know where to start, even the psuedocode for this would help but I don't have anything to go by.
OK, so it sounds like you need help breaking down the problem. Well, I'll see if I can get you started. What you need to do is to create a set of manageable sub-goals to achieve the end goal. Lets take what you posted as the description of the problem and break it down to help kick-start the process.

Here is part of the description of the problem you gave:
A supervisor at a manufacturing company wants to produce a report from the PRODUCTION input file showing bonuses[ he is planning to give his employees based on this years production. He wants to have a report with 3 columns: last name, first name, and bonus.
All the underlined sections describe what is wanted. The bolded section describes where to extract the information from.

Now that you know what is wanted, look at next part which you posted:
If this year's production is:
- 1000 units or fewer, the bonus is $25
- 1001 to 3000 units, the bonus is $50
- 3001 to 6000 units, the bonus is $100
- 6001 units and more, the bonus is $200
This describes in some detail the breakdown of how to do part of what is wanted.

This part that you posted:
PRODUCTION INPUT FILE

File name: PRODUCTION
describes the source of the data.

And finally, the rest that you posted:
FIELD DESCRIPTION DATA TYPE COMMENTS
Last Name Character 15 characters
First Name Character 15 characters
Last Year's Production Numeric 0 decimals
This Year's Production Numeric 0 decimals
are just describing some of the data constraints and are not useful at this time. They will be needed later on in the process, but can be safely ignored for now.

Now that I have taken what you gave me and segmented it in to smaller parts, can you answer the following questions:
  1. Can you identify the ultimate goal? What is it?
  2. Can you identify any sub-goals that you would need to accomplish in order to achieve the ultimate goal? What is it/are they?
  3. In those sub goals, can you see and write down a set of steps that would achieve them? Write them down.
I will leave it at that for the moment. I don't want to overwhelm you in one shot ;) and it may be enough for you to move on by yourself. If not, answer the questions that I gave you and then tell me what you are still having problems with.

Happy problem solving :),


Adrian
Apr 28 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gregory Nans | last post by:
hello, i need some help to 'tree-ify' a string... for example i have strings such as : s = """A(here 's , B(A ) silly test) C(to show D(what kind) of stuff i need))""" and i need to...
0
by: xunling | last post by:
i have a question about answering ..... this topic is "need help" what do i have to write at te topic line, !after i have klicked the "answer message" button ive tried many possibilities,...
2
by: Paul Mendez | last post by:
I really need some help Date Code ConCAT Bal_Fwd NS_Fees Amt_Coll Cur_End_Bal 1/15/2004 KW 11KW2003 $500.00 $250.00 $250.00 2/15/2004 KW 12KW2003 $300.00 $500.00 ...
7
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
8
by: Elliot M. Rodriguez | last post by:
I am having a heckuva time debugging this, or determining why my page is behaving this way. I have a search form, that when completed, returns a datagrid. When the user selects a row (normal...
3
by: Rich Squid | last post by:
Hello Here's my basic problem: On my asp.net form page I have a DetailsView (default mode=edit) bound to a AccessDataSource control. Users can successfuly update a databound template field,...
2
by: XML Beginner | last post by:
I have an XML file that contains values that my application needs, so it knows which database to connect to. It also contains a configuration option so that I can specify which node to return...
2
by: =?Utf-8?B?am9lb2ppaA==?= | last post by:
Most students do not have enough time to do their homeworks, assignments, college papers, etc alone. Also most of them, even though they know what to do with respect to their writing assignment,...
30
by: carlos123 | last post by:
Ok I am working on a Hall Pass program for my computer programming class. There are 3 things that I am confused on. 1. Reading a file. 2. Taking that data read from the file and putting it into...
1
by: jhaydon | last post by:
First of all, I'm not a CSS expert. If I was, I wouldn't need to be posting for help here. Secondly, I have been doing web design for several years, just not css. Thirdly, I need help and hope...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.