473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to show Total number of items entered and the percentages.

1
Project 2 asks you combine these exercises to expand upon the idea of a grading application with
the following requirements:
• The application should allow the user to perform score calculations for as many
assignments as they would like. (5 pts)
• The application should accept as many scores per assignment as the user would like, with
the user indicating they are done by a terminal value of -1. (5 pts)
• When the user is done entering scores for an assignment, the system should output:
o The total number of scores for that assignment (2 pts)
o The average score for that assignment (2 pts)
o The lowest score for that assignment (2 pts)
o The highest score for that assignment (2 pts)
o The total number and percentage of A’s, B’s, C’s, D’s, and F’s for that
assignment (7 pts)
• The application should then ask the user if they would like to enter another assignment.
Example Screen Dialogue:
Want to average another assignment? (yes/no)
yes
Enter all the scores for the assignment followed by a -1
100
50
-1
Total number of scores: 2
Average score: 75
Lowest score: 50
Highest score: 100
A's: 1 (50%)
B's: 0 (0%)
C's: 0 (0%)
D's: 0 (0%)
F's: 1 (50%)



Is the project I was assigned but I'm not sure how to achieve the counting of A's B's C's as well as their percentage to show. I as well have most the rest of the program I think done but keep getting 2 compile errors that I can't seem to fix.

I included a txt version of my program if it can be used to help me out in any way.

Any help would be appreciated.
Attached Files
File Type: txt project2.txt (1.7 KB, 382 views)
Feb 17 '10 #1
1 1959
Curtis Rutland
3,256 Expert 2GB
This is a homework problem. I suggest you read our Posting Guidelines on Homework Questions.
Feb 17 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Shannan Casteel via AccessMonster.com | last post by:
I have a form for entering part numbers along with the associated quantity for each part. There are 25 Part fields and 25 associated Quantity fields. If I go to record 1 and enter part number 1234...
1
by: Shannan Casteel via AccessMonster.com | last post by:
After reading several replies, I don't think I'm making clear what exactly it is that I need. Let me explain... I have a database for warranty claims. We reimburse according to labor and...
0
by: buran | last post by:
Dear ASP.NET Users, How can I get the total number of rows selected by the command text of the datagrid (items in datagrid)? If I use the statement grdSP.Items.Count with the datagrid grdSP with...
1
by: paulsmith5 | last post by:
Hi, Given that I have an two integers - firstly the total number of items and secondly the number of items per page what is the syntax to give me the total number of pages. For example if there...
3
by: JDiamond | last post by:
Hi, I have a table called Hosts. The Hosts table contains the following fields: Each field represents a step in the project. The tech that completes each step initials the respective...
1
by: Bob Alston | last post by:
I need to produce a report like this Color: # % ------ --- --- White 10 20 Black 25 50 other 15 30 ---- ---- Total 50 100
4
by: J | last post by:
I am editing a pre-existing view. This view is already bringing data from 40+ tables so I am to modify it without screwing with anything else that is already in there. I need to (left) join it...
2
by: gaga | last post by:
hi all, i need to write a program - cash register for dummies, so to speak. here's the gist - enter the amount of pies that a person wants to get. A person can get either, 1, 2, 3, or 4 pizza...
1
by: ZiggyShort | last post by:
I need to summate across a number of line items over a group of invoices, then round down on an invoice by invoice basis to the nearest penny. I would then like to get a total of THOSE rounded...
5
by: OllyJ | last post by:
Hi guys hope you can help, I have a report which is made up of 2 subforms next to each other. These both relate to the 'job number' that is selected on a form prior to opening the report. If...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.