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...
Type: Posts; User: jadedreality
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...
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...
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...
Okay, I tweaked a couple of things so this is what I have now:
#include <iostream>
using namespace std;
int main ()
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...
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...
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;
Thanks, that helped .
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;...
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 ...
There are 2 errors still, but am I on the right track at all??
#include <iostream>
#include <ostream>
#include <istream>
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...
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...