Search:

Type: Posts; User: jadedreality

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    8,593

    Grade program, pass/fail

    I'm actually just playing around with this program. It asks how many students are in the class, it asks for the student ID, then for each student it asks for three grades. It outputs each student's...
  2. Program to replace consecutive blank spaces with a single space.

    I am writing a program that should prompt the user to enter a line of text, and if there are consecutive spaces between the words, it should output the sentence with single spaces.

    I'm not really...
  3. Replies
    1
    Views
    1,414

    Code to convert from pints

    My assignment is to write a program that reads a list of dry measures in pints until end-of-file and then converts each measure into quarts and pecks.

    Here is my code so far:



    #include...
  4. Okay, I tweaked a couple of things so this is...

    Okay, I tweaked a couple of things so this is what I have now:



    #include <iostream>


    using namespace std;

    int main ()
  5. Okay, I corrected the errors. However, when my...

    Okay, I corrected the errors.
    However, when my teacher said that the program should print the numbers in ascending order, did he mean that it should actually print out on paper?
    Because it doesn't...
  6. Program to print 3 numbers in ascending order

    I have an assignment to write a code that will prompt the user to enter three integers, then it should print the integers in ascending order.

    The code that I have written has six errors & two...
  7. Replies
    5
    Views
    1,123

    I have...another question.

    In my homework, my teacher gave us a piece of code asking,

    "What would be the output of the following piece of code?"

    The code is this:


    include <stdio.h>
    main() {
    int x;
  8. Replies
    6
    Views
    4,090

    Thanks, that helped .

    Thanks, that helped .
  9. Replies
    6
    Views
    4,090

    Undeclared/un-initialized variable

    What is the difference between an undeclared variable & an un-initialized variable?

    The example I have is


    #include <stdio.h>
    main() {
    int prime = 21;

    for (k = 1; i < prime;...
  10. Replies
    17
    Views
    2,870

    Okay I've changed it around a little, it works...

    Okay I've changed it around a little, it works but not like it's supposed to...when I press 1 for Yes it exits instead of letting me try again.




    #include <iostream>
    #include ...
  11. Replies
    17
    Views
    2,870

    There are 2 errors still, but am I on the right...

    There are 2 errors still, but am I on the right track at all??





    #include <iostream>
    #include <ostream>
    #include <istream>
  12. Replies
    17
    Views
    2,870

    I've figured out what I'm supposed to be doing a...

    I've figured out what I'm supposed to be doing a little more.

    I know this is probably not very good, but all it has to do is work for me to get credit for it. However, it said 0 errors when all I...
  13. Replies
    17
    Views
    2,870

    Program to determine sum

    Just a bit of background info: I am in intro to computer science, and every other computer science class is learning word, excel, powerpoint, etc. Then I am expected to know how to write a program...
Results 1 to 13 of 15