473,569 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cant figure out how to do progrom help please

Program details as follows:

Input to the program the exam number and computer arch and programming
results for 10 people. Three arrays - ExamNo[10], Arch[10] and prog[10]
are used to hold these items. The First name and surname of each
student should also be entered, concatenated into one string and output
to an array called wholename[10]

We need to check weather the exam numbers are valid. An exam number
should consist of 7 digits only Include a function in your solution
that will pass in the exam number, determine if the exam number is
valid or not and return an appropriate message. only valid exam numbers
should be stored in the array ExamNo

For each of the students, calulatE display the average mark for the
class. For the Computer Arch results, find out how many students
received below the class average. Find the name of the students with
the highest result in each subject. These students' name are to be
displayed and told that they will receive a special prize for their
outstanding results.

For programming results, calulate and display standard deviation. I
think this is the following steps in order to get it
1. Calculate the average of the programming results

2. Calculate the variance(d) by subtracting each result from the
average

3. Square each of these results to get variance squared.

4. Sum all the variances squared

5. Divide by the number of numbers

6. Get the Square root of the result which is the standard Deviation.

Display the exam number, whole name and both results for all students.

Let me know what ya think.

Jul 23 '05 #1
5 1540
What is that you are having trouble with?

On Wed, 13 Apr 2005 14:50:53 -0700, johny wrote:
Program details as follows:

Input to the program the exam number and computer arch and programming
results for 10 people. Three arrays - ExamNo[10], Arch[10] and prog[10]
are used to hold these items. The First name and surname of each
student should also be entered, concatenated into one string and output
to an array called wholename[10]

We need to check weather the exam numbers are valid. An exam number
should consist of 7 digits only Include a function in your solution
that will pass in the exam number, determine if the exam number is
valid or not and return an appropriate message. only valid exam numbers
should be stored in the array ExamNo

For each of the students, calulatE display the average mark for the
class. For the Computer Arch results, find out how many students
received below the class average. Find the name of the students with
the highest result in each subject. These students' name are to be
displayed and told that they will receive a special prize for their
outstanding results.

For programming results, calulate and display standard deviation. I
think this is the following steps in order to get it
1. Calculate the average of the programming results

2. Calculate the variance(d) by subtracting each result from the
average

3. Square each of these results to get variance squared.

4. Sum all the variances squared

5. Divide by the number of numbers

6. Get the Square root of the result which is the standard Deviation.

Display the exam number, whole name and both results for all students.

Let me know what ya think.


Jul 23 '05 #2

<snip>
Let me know what ya think.


I think you can do it !
Jul 23 '05 #3
"johny" <da********@gma il.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .

Let me know what ya think.


Doesn't sound too hard.
Jul 23 '05 #4

johny wrote:
Program details as follows:

<snip!>
Let me know what ya think.


I think this is an excellent beginner's assignment. I kinda reminds me
of when I was first learning C++...

Once you have it written, if you are stuck then feel free to post your
code and ask for help.

-Jason

Jul 23 '05 #5
johny wrote:


Let me know what ya think.


Start with the parts you *can* do

Divide the assignment into managable parts.

Eg. Can you write a function that checks a *single*
exam number?
If you can, fine. Start with that, write it, test it.
If no: Why not? Where is your problem?

If you have that function, you could proceed with
creating the arrays and let the user enter his data
(using the above function to check the input). Continue
with just outputing what the user has entered (to see if the
input functionality works correct).

Got that to work? Fine.

Look at the assignment. What can you do next, now that you have
implememted the above. Average mark. All of the data is available
and calculating the average isn't that hard. So you could proceed
with implementing (and testing) that.

And so on, and so on.
The important point is: Divide the work into pieces and work on
each piece individually. The assignment might look big and complicated,
but it isn't when done this way.

And yes: even professional programmers work this way:
Start simple. Implement parts of the code and test them (that
is especially important: you need to make sure that those parts
work as expected *before* you use them as building blocks for
more complicated parts).

--
Karl Heinz Buchegger
kb******@gascad .at
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1794
by: Kentor | last post by:
hello, im trying to make a little loop, but i cant figure it out... i have a string with a bunch of 1s and 0s in it: 110101010101111010101 .... i need to count the number of 1s divide it by 2 and make a table with 2 columns and then for every one, depending on its position in the string i need to output a word and then go to the next 1 and...
6
3126
by: ancelotp | last post by:
hi, i'm new to sql i'd appretiate if someone would helpme out with this doudt i have CODE: CREATE TABLE entry ( uno int(6) NOT NULL auto_increment, fname varchar(30) NOT NULL, sname varchar(30) NOT NULL, email varchar(30) NOT NULL ,
2
7368
by: g35rider | last post by:
Hi, I have the following code that is giving this error, I cant simplify the code, I was just testing some theory for something we are doing and was getting an issue here. Please someone point out whats wrong with my code. class MsgData { char* data;
17
2012
by: so many sites so little time | last post by:
all right so the script is pretty simple it goes it retrives what the id of the post is and it lets you edit it well no it doesnt. now if you go to www.kirewire.com/pp2/index/php you will see a number 1 that is the value of collumn home_id which is set to auto increment ect ect but this script which gets the id of home_id of a row and...
1
1575
by: dav3 | last post by:
Any help here is appreciated folks. First in my Person class the comments = errors visual basics is giving me and I am not sure why. Also when i try and set up my array of pointers to Student class I get the error that is in the comment. This is really bothering me as I spent the last hour and a half with a classmate working on this and we can...
7
2303
by: griffinheart | last post by:
hey there this script works fine in firefox. but in ie the this call document.getElementById(form).style.display='block'; gives me object required, well i don't know much about java and can't figure out how to make it work EDIT: one thing to note is if i pass the value manually with " ' " it works fine im guessing its because form is...
1
1754
by: durjoy | last post by:
dunno is the right forum to ask for help , but i cant see any category for html help . dont know any other site as well . this site is my last hope dear experts . i was hosting my site with different server than curent hosting however i have moved my site into new server and start having so many troubles . first of all couldnt figure out...
6
2466
by: WolfgangS | last post by:
Ok first off, i am a total beginner at this groups stuff and i have no clue how this works. This is probabaly the wrong group for my problem but i will post it anyways. Learning by doing right? I will post a code snippet and explain my problem. I cant seem to find a logical explanation why this problem would occur after trying to figure it...
5
1868
by: chevon1920 | last post by:
I am trying to do my assignment but I cant figure out how to get 8 data points per line to print to a file. Here is the assignment 1. Program asks the user to enter an odd number as a BASE, using this Base it creates 48 multiples of the BASE and prints in a data file "data_3b.txt", 8-data per line. 2. Program opens this data file, scans...
1
1445
by: qwert7465 | last post by:
here is my code. i am only getting one error: // Final Project #include <iostream.h> #include <iomanip.h> void checkout(); void start_or_startover();
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.