User Profile

Collapse

Profile Sidebar

Collapse
confusedprogrammer
confusedprogrammer
Last Activity: Dec 17 '06, 05:58 PM
Joined: Sep 23 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • confusedprogrammer
    started a topic Issues with a program
    in C

    Issues with a program

    In the program below i need to get it, so that it will keep going through the program asks all the question and displays the results and goes back to the beginning if the user didn't select. After displaying the results, return to the menu to let the user choose another formula or exit.

    Code:
    #include <iostream>
    using namespace std;
    #include <iomanip>
    #include <cctype>
    #include
    ...
    See more | Go to post

  • confusedprogrammer
    replied to Program that calculates PI
    in C
    Here is the whole assignment page:

    Program #1

    If you were to measure the circumference around any circle and the diameter across the same circle, and then divide the circumference by the diameter, you might be amazed to find that your answer is the same for every circle you measure, about 3.1415926535897 9323846. This is such an amazing result, that mathematicians have given this result a name, the Greek character Pi....
    See more | Go to post

    Leave a comment:


  • confusedprogrammer
    replied to Program that calculates PI
    in C
    sorry, about that. That would be ok.
    See more | Go to post

    Leave a comment:


  • confusedprogrammer
    replied to Program that calculates PI
    in C
    it depends on what number the user inputs to have the program print. If the user inputs 20 then the program need to print every 20th step of the Pi calculation.
    See more | Go to post

    Leave a comment:


  • confusedprogrammer
    started a topic Program that calculates PI
    in C

    Program that calculates PI

    I am doing a program for a class of mine. I have figured out how to display the final result of PI but i have not figured out how to print the part where is ask me print out Pi after a certain number of steps. This is what the assignment says:

    After a valid number of terms has been entered, input from the user a display count representing how often the program should display the current total value of the series. For example, if they...
    See more | Go to post

  • confusedprogrammer
    replied to Assembly code programs
    in C
    Our assembly language instructions have two parts:
    The operation code specifies the operation the computer is to carry out (add, compare, etc)
    An address that allows the instruction to refer to a location in main memory
    The CPU runs each instruction in the program, starting with instruction 0, using the fetch-decode-execute cycle.
    See more | Go to post

    Leave a comment:


  • confusedprogrammer
    replied to Assembly code programs
    in C
    Ok, here are the instructions that i can use and they are used on a 32 bit processor.

    STP Stop the program
    LDA Load register A with value from a specified memory location
    LDB Load register B with value from a specified memory location
    STR Store register B value to a specified memory location
    INP Store data input by user to a specified memory location
    PNT Print the value stored in a specified memory...
    See more | Go to post

    Leave a comment:


  • confusedprogrammer
    started a topic Assembly code programs
    in C

    Assembly code programs

    1) Write a program to determine the correct admission price to a movie. The price of admission to a movie is $7 for kids (under 12) and $9 for adults. Display the correct admission fee after the user gives you the age for one person.

    Sample Run #1:
    ? 21
    9

    Sample Run #2:
    ? 11
    7

    This is what i have so far... I keep getting a unknown ALU operation. Please Help

    ...
    See more | Go to post

  • confusedprogrammer
    started a topic Questions about Java
    in Java

    Questions about Java

    Why they called the language Java?

    The library components in the Java language that creates the Graphical
    user interface are called Swings. Why that name was chosen for these
    library components?
    See more | Go to post

  • confusedprogrammer
    started a topic Why they called the language C?
    in C

    Why they called the language C?

    I just have a question. Why do they called the language C?
    See more | Go to post

  • This is what i have so far, its rough but does have an output
    [
    #include <cstdlib>
    #include <iostream>

    using namespace std;

    int main()
    {
    int I;
    int sum = 0;
    int n = 1;
    cout <<"Enter Positive Interger" << endl;
    cin >> I;
    //Add all intergers from 1 to I to sum
    while (n <= I)...
    See more | Go to post

    Leave a comment:


  • program that computes and displays the sum of all integers...

    Im doing a program for one of my classes and im no good.
    here is the question

    Write a program that computes and displays the sum of all integers from 1 to an ENDING number, using a while loop. Prompt the user for the ending number. For example, if the user enters 99, then the program will compute the sum of all the integers from 1 to 99 and would display the final sum of 4950.

    Im no sure how to do the while loop...
    See more | Go to post
No activity results to display
Show More
Working...