Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
write a modular c program that accepts 5 user scores on a PS4 gaming console.

the program must repeatedly request from each user, ratings on the following factors of PS4 gaming console

cost
games
backward compatibility
screen resolution



all factors are to be stored using a scale of 1-5 where 5 being the highest rating. all 4 factor scores must be totaled and stored within the PS4_ScoringArray, giving a score out of 20 for each user.


Write 3 functions to achieve the following requirements of the program.

1. print the lowest score for the PS4 console
2. print the hightest score for the PS4 console
3. calculate and print the average of the scores for the PS4 console. Determines and print the average ratings on the PS4 console.

a. "Excellent" if the average is between 16-20
b. "Average" if the average is between 10-15
c."Poor" if the average is between 0_9


What I have tried:

i have not tried because i am self taught and ive came across this question online and couldnt figure it out
Posted
Updated 30-May-20 8:33am

To solve your homework you need to learn basic programming skills. The first step is to figure out whether you are allowed to use only C or C++ and use of standard libraries with classes like std::string which solves a lot of string handling. So read your task assigment or asks your teacher about it and than search for some tutorial like Learn C.

For information you can read my How to Start the Homework or a Developer Career? in which I have condensed my experience and knowledge.
 
Share this answer
 
Quote:
i have not tried because i am self taught and ive came across this question online and couldnt figure it out

Eveb if this problem is not rocket science level, just giving you a full blowup solution will not help you to learn anything.
Advice: While learning, never skip steps.

You have to know that you can do pretty much anything in any language, simply some languages are harder for beginners because there is more pitfalls to handle.
You need to master a set of techniques that are the basis of the job and are not linked to a language.

Advices:
- Start with an easy/safe language: VB, Java, C#, not C or C++. I do not recommend to start with Python either because of the usage of indentation.
- Read documentation / Follow tutorials (a lot of them)
- Start with tiny/useless projects, the purpose is to learn programming, not doing something useful.
- Start with console mode programs (no fancy graphics, no mouse)
- Learn debugger (an incredible learning tool)
Debugger - Wikipedia, the free encyclopedia[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]
- A problem ? Google is your friend.
- Learn one or more analyze methods, E.W. Djikstra/N. Wirth Stepwize Refinement/top-Down method is a good start.
Structured Programming.pdf[^]
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]
- Learn Algorithms and Data-Structures.
- Learn Boole algebra
- Learn SQL
- Learn Databases design and Administration
Introduction to database design[^]
1NF, 2NF, 3NF and BCNF in Database Normalization | DBMS Tutorial | Studytonight[^]
- Learn Regular Expressions

Interesting link:
stanford.edu: Learn to Program[^]
CodersLegacy - Imparting knowledge to the Future[^]

There is no shortcut to knowledge, no one can learn for you, you are the only one that can do it.
Remember the exercises and little projects are not here to make something useful, they are here to teach you programming.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900