Ask your own question, for FREE!
Computer Science 20 Online
OpenStudy (anonymous):

Maybe some can help me with a program....

OpenStudy (anonymous):

Write a program that explores the seating patterns related to course performance by using an array of student scores. The program should do the following: Draw a seating chart of the classroom. Show where people sit and use color coding on the seats to indicate the student's current level of performance. The color-coding scheme should be as follows: Red—For students who are below the class mean Yellow—For students who are at or above the mean but below 90 percent Green—For students who are in the top 10 percent The program should use the following: A two-dimensional array of student scores instead of a one-dimensional array. The two-dimensional array of scores having the same number of rows and columns as the arrangement of seats in the classroom.

OpenStudy (anonymous):

Can you help me to write this out please?

OpenStudy (anonymous):

What programming language?

OpenStudy (anonymous):

C++

OpenStudy (anonymous):

I'm afraid I don't know much if any C/C++, sorry.

OpenStudy (anonymous):

that's okay at least you were honest

OpenStudy (anonymous):

I'll help you with the designing stage. You first probably want to write a function that displays the seating chart.

OpenStudy (anonymous):

how do you do that?

OpenStudy (anonymous):

What have you learned about C++ so far?

OpenStudy (anonymous):

not much i'm afraid I just started this course

OpenStudy (anonymous):

I know it is similar to C#

OpenStudy (anonymous):

The syntax is kind of the same, but everything else is pretty different.

OpenStudy (anonymous):

okay

OpenStudy (anonymous):

sorry if it takes me a little bit to respond I haven't had but like a half an hour of sleep today

OpenStudy (anonymous):

Do they want an actual graphical program, or do they want it in the console?

OpenStudy (anonymous):

I am thinking an actual graphical

OpenStudy (anonymous):

but I could be mistaken

OpenStudy (anonymous):

There are ways to change text colors in the console/terminal, but it may or may not work properly for everyone who runs it.

OpenStudy (anonymous):

What exactly have you learned about C++?

OpenStudy (anonymous):

true so lets try it and see what happeneds

OpenStudy (anonymous):

Like I said not a whole lot so far

OpenStudy (anonymous):

Did you enter the course in the middle of it? Have you missed anything they've taught?

OpenStudy (anonymous):

We learn by using a student handbook on the class site and the instructor has a little bit of help in showing us what we are supposed to do sometimes!

OpenStudy (anonymous):

How far have you gotten in the handbook, like what Chapter Name?

OpenStudy (anonymous):

After some reading, I think you need to write a graphical program with the chart and colors. Anyways here is a simple guide to follow, look up on how to do things you don't know how to do yet. 1. Write the main loop/function that has the student data. 2. Write a function that deals with all the graphical setup, etc. 3. Write a function that displays all the seats on the chart. 4. Write a function that goes through each student in the student data and colors their seat based on the information you gave me (grade determines the color of each seat. If necessary (I suggest as a last resort since you will be writing the same program twice in two different languages), find a tool that you can use to help you visualize what you need to write or use another programming language you already know how to use and create it in that then figure out how you would write the code in C++. I would use Scratch ( http://scratch.mit.edu ) to write the first version so I know what functions and stuff I would need to write it in C++..

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!