4 Replies - 1128 Views - Last Post: 28 January 2014 - 07:34 AM

#1 PK_S14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-January 14

Computer Science Homework

Posted 27 January 2014 - 07:25 PM

Ok so before I end up looking like an idiot if this is the wrong section please move it mods, But I have no idea where to put it.

So I just started taking a Computer Science class at my school and we are learning algorithms and I am completely lost on how to do this homework if someone could help me with it. Anyways here goes

Its 2 problems

1. Attached Image

2. And this one is done after.
Attached Image


I tried doing the first one and this is what I came up with.

3.
Steps Operation
1) Get values for Test1, Test2, Test3, Final
2) Set value of Average Score to (Test1+Test2+Test3+2(Final)/5)
3) Print the value of Average Score
4) Stop

I dont know if it is right but thats what I got lol.

8. Now for this one I did not know how to add all the values and make it loop.

Well thanks guys and any help is appreciated

Is This A Good Question/Topic? 0
  • +

Replies To: Computer Science Homework

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10364
  • View blog
  • Posts: 38,376
  • Joined: 27-December 08

Re: Computer Science Homework

Posted 27 January 2014 - 07:31 PM

Moved to Software Development.

Problem (3) looks good. For #8, are you familiar with arrays? You should check out arrays and a for loop.
Was This Post Helpful? 0
  • +
  • -

#3 PK_S14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-January 14

Re: Computer Science Homework

Posted 27 January 2014 - 07:44 PM

Thanks for moving it, now I know where to put most of my questions :bigsmile:

As for the arrays, no I am not familiar with them, this is literally the second week of class and the teacher does not really explain things in class lol
Was This Post Helpful? 0
  • +
  • -

#4 PK_S14  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 27-January 14

Re: Computer Science Homework

Posted 28 January 2014 - 07:09 AM

So is there anyone that can help me with the second problem?
Was This Post Helpful? 0
  • +
  • -

#5 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10364
  • View blog
  • Posts: 38,376
  • Joined: 27-December 08

Re: Computer Science Homework

Posted 28 January 2014 - 07:34 AM

Loops and Arrays. Think about storing your scores in an array.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1