Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Standard C, C++

Reply
 
LinkBack Thread Tools Display Modes
Old 02-06-2007, 11:14 AM   #1 (permalink)
tiggerzone
Recruit
 
Join Date: Feb 2007
Posts: 18
tiggerzone is on a distinguished road
Question need help with to write a flow chart and pseudocode

this is for another class but the question goes like this:


Write a program flowchart and corresponding pseudocode for the following problem: You are given an input record that contans a student's name and three exam scores. Compute the average of the three exam scores and output a grade corresponding to the average as follows:

Average Grade
90-100 A
80-89 B
70-79 C
60-69 D
under 60 F


Your output should look like this:

_______________ received a grade of ____________.




I'm new at all this programming stuff and really could use some help.
tiggerzone is offline   Reply With Quote
Old 02-07-2007, 07:46 AM   #2 (permalink)
Deliverance
C++ Beginner
 
Join Date: Jul 2005
Location: Ottawa
Posts: 73
Deliverance is on a distinguished road
I'm not entirely sure on this one, but I believe flow charts are a visual representation of the data you are using for your application, and how it is inputted and / or manipulated. In this case,

you receive the input record (either three floats for each exam mark, or they can be in a structure....try searching a previous post for more info on structures).

from there, you must manipulate the data...so you add the numbers together. finally, the results are outputted.

I believe the idea of flow charts is to make you comfortable thinking about a program as real-life 'objects' in terms of how they interact. In real life, from this description you have three main tasks: get the data, produce the results, and display the results (give the student the mark or something similar).

Translating this into a program, you can write it the conventional way (everything inside your main function, which works for smaller applications), or group the related tasks into functions. Lookup functions for an idea of how they are used.

Try to see if you can start writing some of this yourself and don't get discouraged. Do as much reading as possible to familiarize yourself with all the definitions/terms of the language as you can grasp right now.

Good luck! hope this information helped you about a bit (i apologize if there is any ambiguity in my explanation)....I believe there's a post a few pages back with a VERY similar program to the one you are asked to write

Grade program
Deliverance is offline   Reply With Quote
Old 02-07-2007, 09:32 AM   #3 (permalink)
tiggerzone
Recruit
 
Join Date: Feb 2007
Posts: 18
tiggerzone is on a distinguished road
I've figured that one out thanks for the info.
tiggerzone is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 08:39 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting