Programming graph question

I need to be able to create a calss that graphs a grade distribution (number of A's, B's, C's D's, and F's) horizontally by printing lines with proportionate numbers of asterisks corresponding to the percentage of grades in each category.
Could anyone help me out? I have no idea where to begin lol :P

This that is along the lines of what i am meaning... here ill just write out the full question lol :P ;)
Create a class that graphs a grade distribution (Number of A's, B's, C's, D's and F's) horizontally by printing lines with proportionate numbers of asterisks corresponding to the percentage of grades in each category. Write methods to set the number of each letter grade; read the number of each letter grade; return the total number of grades; return the percentage of each letter grade as a whole number between 0 and 100, inclusive; and draw the graph. Set it up so that 50 asterisks correspond to 100 percent (each one corresponds to 2 percent), include a scale on the horizontal axis indicating each 10 percent increment from 0 to 100 percent and label each line with its letter grade.
For example, if there are 1 A, 4 B's, 6C's 2 D's and 1 F, the total number of grades is 14, the percentage of A's is 7, the percentage of B's is 29, the percentage of C's is 43, the percentage of D's is 14 and the percentage of F's is 7. The A row would contain 4 asterisks (7 percent of 50 rounded to the nearest interger), the B row 14, the C row 21, the D row 7, and the F row 4.

Similar Messages

  • Discoverer Desktop Graphing Questions

    I have several questions about the graphing tool in Discoverer Desktop:
    1. I'm bringing in a customer id field which I convert with a to_char in the query from a numeric field. Most of them are 5-digit, but some are 4. I notice in the x-axis the customer id's appear only for the 5 digit id's, and for the 4-digit ones the identifier appears. i.e. if the 5th record has an id of 1508, instead of displaying 1508 it displays 5. Does anyone know how to correct this?
    2. In the y-axis values, is it possible to display more than 5 decimal places? (We're dealing with very small percentages). When I try to enter 6 or higher as the decimal value in Options, it says invalid number.
    3. When I open an existing workbook, it readjusts the y-axis scale to a max of 1, when I've set it to .0001. How I can I make this retain my scale values?
    4. Is it possible to display the y-values in the graph area itself next to the plot points?
    Thanks for any help!!!!

    Hi paul,
    Its a good idea to upgrade from 4i to 10g 4i is no more used by many and their are some issues or bugs with it.The latest version is 11g which has been released 1 week back.If not go with 10g version available.
    1) Do all reports have to be stored on the database to allow them to be accessed by Plus or Viewer? Can only the 10G client version open files from a local hardrive or shared network drive?Yes they have to stored in the database so any ened user can access them from plus or viewer.
    Can only one report be open at any given time with Plus or Viewer? In client it is possible to have 2 reports open at the same time to facilitate easier comparisons.Yes,if the reports are registered as different reports and if the end user has access to both the reports thn he can open and compare it OR if both reports are in same workbook as different sheets than its easy to view or compare.
    NULL values are still showing the word "NULL" even though in Tools Options we have set it to show blank, existing reports are still using the NULL value.It should show blank,might be some problem.In discoverer 10g i think you will not find this issues.
    Hope this helps you.
    Best Wishes,
    kranthi.

  • Line Graph Question: Compare different values thru time ...

    Hi, hope someone can help me I've been looking at examples, but I cant get this to work:
    Here is a link to what the data looks like: http://primolandia.com/line_problem.jpg
    As you can see, I have a table with columns: Team, Date, CriteriaNum1, CriteriaNum2, CriteriaNum3
    One graph per Criteria which compares how each Team did on that Criteria thru time...
    So I want the X axis to have the "Date" and have one line per team showing the value at different times ...
    Any ideas?
    Thank you!!!
    Claudio

    I wish to withdraw this question ... I finally figured out my issue...

  • Java Programming Language questions...???

    Hi everybody....
    Can I post here my questions about Java Programming Language....or only to to the relevant Sun's forum....http://forum.java.sun.com/index.jspa???
    My greetings,
    Simon

    Simon,
    sure, the worst thing that could happen is that people point you to the SUN forum. Usually this forum answers general Java questions.
    Frank

  • RFC Sender Adapter configuration - Program ID question

    Hello All,
    I am working on a Sync RFC(R/3) --> XI --> Webservice scenario. I have a question on Program ID's. We're going to be having different RFC's call the same webservice. In that case, we'll have one scenario for each RFC sender.
    Do we need to create different TCP/IP ports and Program ID's in R/3 for each RFC sender or just one TCP/IP port and Program ID can be used by all RFC's from R/3?
    Please respond with your suggestions.
    Thanks in advance.
    Karthik

    Aamir,
    Buddy please correct me if i'm wrong!! As u said u will design this as single scenario with conditional receiver determination, Wht happen if I create RFC channel under some other Business Service with same Program ID. In this case my receiver is different isn't it!!!
    The key is Outbound Interface .. If the RFC sends BAPI_GET_DETAIL with say ProgramID TEST_1000 the corresponding interface in XI will be triggered, similarly if the RFC sends RFC_READ_TABLE with same program ID TEST_1000 the corresponding interface will be triggered?
    Is the above example make sense, please correct me if my understanding is wrong.
    raj.

  • Specific Excel graph question for Indesign

    Hello,
    I have a question about how to use an image generated on Excel for mac for Adobe Indesign CC. I have browsed the forums here and googled but I'm not finding solutions for my specific question (so please bear with me, thanks). I have a report for work that requires a lot of bar graphs. The graphs are all done on Excel for mac 2011. I have tried two different ways of importing it into InDesign (also for mac) - 1) saving the graph as a PDF and then placing into InDesign, and 2) copying and pasting the Excel graph into Illustrator and then saving it as an ai file. In both cases, the ai file looks a bit better but the fonts seem a bit jarbled/compacted once I place it into InDesign. The font I use is Times New Roman. Also, since my report is laid out in a 2-column format, I need a chart to fit a space that is approximately 3 inches by 3.5 inches. Whenever I import the image, it’s significantly larger so I place it to fit the 3x3.5 inch space proportionally. When that happens, the fonts don't look quite right on the screen. I need to ensure that the chart looks sufficient once it’s printed on paper. I only recently began learning InDesign (self-taught) so your advise is appreciated.

    First, the preview may be at a lower quality, so see how it looks with View > Display Performance > High Quality Display set. Second, ID always displays some sort of preview on screen, but uses the actual image data for output, so export a page to PDF and print it to judge the quality.

  • 3D graph question

    Hi everyone,
    I have 2 questions concerning the 3D graph.
    1°) I can’t find in the property node how to position the view as XY (it’s possible to do it right clicking on the graph, then  CWGraph3D,….). Is there a way to set it throw the property node?
    2°) In the color map editor (see print screen under graph) the figures don’t stay as I have put them although I press on “ok” for saving
    Any help would be great,
    Thanks,
    User
    Attachments:
    Forum graph 3D.vi ‏36 KB

    Hello User_1979,
    Thanks for posting on National Instruments forum.
    There is a property node to change programmatically the ViewMode:
    About your second question, you should be able to set your value then click OK and then click Apply on the Property page. I'm in LabVIEW 2010 and I don't have any problem.
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/

  • Another Programming Newbie Question:

    I have read many of the posts from programming newbies like myself looking for advice as to which language to start their programming journey. While helpful, my situation is slightly different and I would appreciate thoughts from those of you who have been doing this for a while.
    On one level, like the others, I am interested in beginning programming for my own personal interest and hobby. I want to be able to poke around building stuff for my Mac as I see the need. The second driver however, is a professional one; I work as a management consultant within an IT company.
    Much of my work relates to Business strategy and IT alignment. At that level I am expected to bring a business perspective to IT issues and to provide assessments that confirm proposed technology/software solutions are in fact going to add value for the company overall. Basically big picture stuff.
    In this role I am not usually asked to bring the same "technical" perspective that a true business analyst would. However, I would like to better understand the methods, terms and concepts that my colleagues use in developing their software. On occasion I am asked to provide a high level requirements analysis, which draws largely upon my business knowledge, but given that that this information is then presented to my developer colleagues I would like to understand things at a more technical level.
    So my question is whether I am free to choose any language to begin my learning quest or if there is a language that will better lead me to understanding and communicate the technical side of software development.
    Also I know that a lot of the work done in my company is in Java - but there are obviously a wide range include various applications that sit atop various data bases.
    I hope my various questions have been communicated clearly enough. I welcome any thoughts or advice that any of you may be able to share with me.
    Thanks!
    Power Book 12   Mac OS X (10.4.1)  

    The case of the employee wishing to merge his own admirable desire to learn programming with the requirements of his position is an interesting case that shows, perversely (or so it seems at first--it's actually perfectly logical) that corporations do not necessarily benefit from the talents, drive and ambition of individual employees--and this is not a cynical or sinister notion. Etresoft's analysis and advice is spot-on and I only wish to add a footnote to it: Along with the "getting the job done quickly and simply as possible" fallacy, and the at first glance counter-intuitive proposition that the complex, fragile, and massive solutions actually benefits the corporation qua corporation, one must remember that corporations are not and never pretended to be pure meritocracies nor are they conceived of as sets of individual employees in competition with each other for rewards. That is to say, trying to make one's personal interests into job requirements is far too questing and individual a project to succeed in any corporate (in the neutral sense of "aggregate," not in the sense of conformist) environment The corporate nature of the incorporated business is, after all, its defining characteristic. This means solutions by consensus aimed as much at institutional self-perpetuation as at the maximization of profit will be favored over mavericks following instincts, absolutists assimilating all power to themselves, or the efficient yet eccentric (again, in the neurtral sense of the word) initiatives of earnest employees trying to unite where possible the requisites of their given post with their own private interests. The upshot to all this is this: the attempt to use pre-existing corporate structures and processes for the fulfillment of individual growth and personal satisfaction (which may as a by-product, or accident in the Aristotelian sense, generate corporate wealth) is to look past stated categories and definitions and to ignore historically-observed outcomes. Corporations will not appreciate or benefit from individualistic impulses not because individual satisfaction is suspect but because its ways are inimical to corporate ways--the friction of the indivduals trying to redefine mutually-agreed upon positions and outcomes for selfish purposes costs too much to be indulged. From the corporate point of view, it is a threat to be contained, not an asset to be exploited. Robinson Crusoe had to spend 28 years on an island alone in order to adequately enact his individualism as it relates to capitalism.* The adaptable, nimble, individual-identified employee with his productivity tied to his own appetites, cannot, at least in the abstract, help but work against the aggregate needs of the corporation.
    *Excursus: Defoe's 1719 novel is the foundational narrative of capitalist self-production and its major offspring is Max Weber's Protestant Ethic and the Spirit of Capitalism (1920).This is where 18th-century economic theory including Adam Smith, leads us astray today--it was formulated not before the Industrial Revolution--the transition to capitalism took place in the 17th century--but before the aqdvent of the modern corporate structure.

  • Graph question

    hi, I have to do this project for a class, i dont want to know how to do it, just if someone can help point me in the right direction to get me started.
    Im supposed to take an undirected graph and construct an adjacency list representation of the graph.
    My question is,
    first, i am unclear on the deffinition of an undirected vs a directed graph.
    Second, what is the best way to construct this structure? Do I actraly create a graph object or use a linked list im just a little confused.
    Thanks for the help
    _stevebiks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    A undirected graph is one where the connections between nodes have no specific direction. They're not one-way streets, they're two-way streets.
    An adjacency list is a list of all node-pairs which are directly connected (they're neighbours in the graph). You can have a NodePair class to represent them. What actual data structure you use to hold them should be an implementation detail hidden in a class say AdjacencyList. You can start using an ArrayList but that shouldn't be known from the outside. The functionality of AdjacencyList depends on what you want to use it for but a minimum would be an add method and a way to iterate through all stored NodePair objects.

  • Instruments ObjectAlloc Graph question

    Hello,
    I'm in the process of finalizing my iPhone application for release. Right now I'm focused on performance tuning and hunting down memory leaks. I've been using the Instruments application to help find memory leaks and it has been quite wonderful. I was able to successfully fix the few memory leaks reported. I'm relatively new to using instruments and I did have 1 question about the ObjectAlloc instrument:
    In general I've noticed that the CurrentBytes display graph of the ObjectAlloc instrument is always going up. It's not going up rapidly, but just slowly overtime during the use of my application. Even when some of my objects get deallocated it doesn't seem to make the graph go down. This seems wrong to me. The Leaks instrument is not reporting any memory leaks at this time. Why would my ObjectAlloc graph continue to go up? Should I be worried about this? Perhaps I'm doing something wrong or reading the graph wrong?
    Any insight would be greatly appreciated.
    Thank you,
    -Keith

    Thanks for the explanation Mark that is what I suspected but it helps to have it confirmed.
    A second question. I notice that the Net Bytes and #Net are going up over time very slowly. It seems to ramp up at the beginning and then plateau around 8420000 bytes. After playing the game a few times more it may be up to 8430000 bytes or so. Leaks isn't reporting any memory leaks. Any idea what might be going on or how I may be able to go about tracking this down?
    Thank you,
    -Keith

  • Graph questions

    hello
    I want to use Graph demo in oracle form 10g using OTN demo.I have some questions.
    1. Is there any way to change the color of bars in chart? colors set random.Is it Right?
    2. when the value is large tooltips shows the round value. How can I avoide it from rounding?
    your help is really appreciated
    thanks in advance
    Edited by: user611879 on Feb 22, 2009 4:45 AM

    OK, in this case an intensity graph seems to be the right thing but there is a small complication.
    Since each byte contains 8 pixels, you need to expand each byte into 8 bytes.
    Easiest would be to typecast it into a boolean array using "4.x mode" (very important!), then use "boolean to 0,1) to convert it to the final array.
    (you might need to transpose the array or flip an axis to make it upright).
    I have attached a small demo (LabVIEW 7.0) on how to do this.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    GetBWimage.vi ‏29 KB

  • Program RSUPGRCHECK  - Question

    Hi Guys,
       The program is used to verify if the object are active in bw before to execute the PREPARE fase. My question is will it validate this a metadata level and not at application level?. Because, I have an ODS not activate at workbench level, but a metadata repsitory show me as active
    Can someone clarify this for me?
    Thanks in advance
    I.

    hi I.,
    i think you should get it activated. and make sure there is no transport request in modifiable status (all should be released, not necessary to be transported) before you do PREPARE to avoid unnecessary problems.
    another thing is for data loading request, there should be no 'yellow' status with any request, and all requests which have 'data target' should be updated in data target, can check in rsa1->monitor->status overview.
    also no inconsistency with any infoobjects (rsd1).
    hope this helps.

  • My Java Scheduler Program - A question

    Hi all, I have just started experimenting with java after programming a lot in ANSI c++. I am writing a GUI scheduler program (cuz i sure need it! and... to get me familiar with aspects of Java such as Swing, multi-threading,etc. My program is going fine and i am almost done. I just had one question about the scheduler program:
    1. My scheduler uses a Jlist to display all events that the user. Now if the user closes the scheduler completely, and then restarts the program, i want the events to be displayed again and all my internal data structures to be filled in again as they were when the user closed the program. As of now, the only way i know how to do this would be to keep a separate text file, which would store all the scheduled events in it when the user closed the program, and every time the program was started, it would read in from the text file and replinish the data structures and my visual Jlist.
    This method, though possible, seems a bit cumbersome and not so elegant. Can anybody give me another way for me to do this?...I would much appreciate any comments/ideas.

    Sounds like you want to serialize some of your classes. See this link to a Sun tutorial:
    http://java.sun.com/docs/books/tutorial/essential/io/providing.html

  • General Graph Question

    Hello all,
    I am interested in learning about graphs and shortest paths in Java, particularly for problems like the Word Ladder from SIGCSE 2001. I have read up about graphs in a couple Algorithm / Java books, but they mostly describe the structures and behaviors of graphs and algorithms to traverse graphs (BFS, DFS, etc), but I'm having a difficult time understanding how to "construct" a graph.
    For example, if one was interested in finding the shortest path between two five letter words in a graph (start vertex, end vertex), you could read in all five letter words that are to be tested into an unordered Array. After the words are all stored in the unordered array, you could BFS the unordered array which would take the starting vertex (a word from the unordered array), add it to a queue, mark that vertex as visited, remove it from the queue, and then find the next word that only has a one letter difference than the last, add that to the queue, mark it as visited, search for the next word that's only one letter away from the second in the unordered array, etc?
    money <----- Starting vertex
    honey
    etc
    etc
    etc
    (ending vertex)
    I don't know if I did a good job of explaining what I'm asking... Generally what it boils down to is that I'm having a difficult time understanding the actual concept of graphs and how they are constructed, assuming you have a bunch of five letter words (Word Ladder) and you need to find the shortest path between first word and the last word you supply.
    I've tried searching around the net for a good example of graphs actually being constructed and searched through in Java, but something isn't clicking with me. Is there anybody that could assist in helping me understand this concept?
    Any help would be appreciated, and I apologize in advance if I'm not supposed to post general questions in this forum.

    Building the graph is the lesser of the tedious jobs you have to do: every word represents a node. An edge from node A to node B occurs if word A differs in only one letter with word B. If you represent the graph as nodes having an outgoing edge list then B contains A in its list only if A contains B in its list, i.e. the graph isn't directed. e.g. "honey" is one 'hop' away from "money" because "money" is one 'hop' away from "honey"; the 'hop' is the edge. Once you have that complete graph you can play with shortest path algorithms etc.
    kind regards,
    Jos
    ps. personally I'd build a BitSet per node indicating which other node(s) are one hop away from that node. The words can be simply stored in a linear array.

  • Newbie graph question.

    Hello there. My LabVIEW program is reading measurements from a digital multimeter. I need to make a graphic of that measure in terms of a current i manually vary. I would like to know if with an XY Graph can I plot this results. This would mean that X is my current and Y is the measurement from the dmm. Thank you.

    Hi there. I've seen this context help screen before but I didn't know where to find these array functions and how to manipulate them. I looked for them in the array palette but I didn't found  them.
    Attachments:
    context help.JPG ‏15 KB

Maybe you are looking for