User Profile

Collapse

Profile Sidebar

Collapse
janice3
janice3
Last Activity: Apr 5 '07, 03:34 AM
Joined: Mar 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • janice3
    replied to how to print digits with space?
    in C
    how to print digits with space?

    how can i use function 1 and 2 to write a function that inputs an integer between 1 and 32453, and prints it as a series of digits, each pair by two spaces. ex.3245 print: 3 2 4 5;
    See more | Go to post
    Last edited by sicarie; Mar 22 '07, 05:38 PM. Reason: Code removed per FAQ

    Leave a comment:


  • janice3
    started a topic how to print digits with space?
    in C

    how to print digits with space?

    In my homework i need to write a function that inputs and integer between 1 and 32767 and prints it as a series of digits, each pair of which is separated by two spaces. for example 3412 should print as : 3 4 1 2.
    please help.......
    See more | Go to post

  • janice3
    started a topic Help for homework......isVowel function
    in C

    Help for homework......isVowel function

    write a program that prompts the user to input a sequence of characters and outputs the number of vowels. using the function isVowel.
    help me for code.

    Code:
    bool isVowel(char ch);
    int main
    {
       char letter;
       int num;
       cout<<"enter a sequence of characters: ";
       cin >> letters;
       letter=isVowel(letter);
       cout<<"the number of vowels are:
    ...
    See more | Go to post
    Last edited by Ganon11; Mar 17 '07, 03:22 PM. Reason: code tags added, indented

  • janice3
    replied to write a program that will mimic a calculator
    in C
    i only know the flowing. i don't know how to use switch.
    Code:
    int answer;
        int num1=0;
        int num2=0;
        char ch = ' ';
        
        cout << "Welcome to the calculator" << endl;
        cout << "Enter your equation as number operation number" << endl;
        cout << "(Example: 3 + 4): ";
       
        cin>>num1>>ch>>num2;
    ...
    See more | Go to post
    Last edited by sicarie; Mar 13 '07, 03:43 AM. Reason: Added code tags

    Leave a comment:


  • janice3
    started a topic write a program that will mimic a calculator
    in C

    write a program that will mimic a calculator

    please help me....
    using selection structure
    the program should take as input two integers and the operation to be performed, iust as it would be entered into a standard calculator. it should output to the screen the same input, including the operator and the result of the operation. example: input2+2, and output 2+2=4
    thank.
    See more | Go to post

  • janice3
    replied to using loops to create diamon pattern shape
    in C
    I created only half diamon(right side)

    <Code Deleted by MOD>

    How can i create left side diamon
    See more | Go to post

    Leave a comment:


  • janice3
    started a topic using loops to create diamon pattern shape
    in C

    using loops to create diamon pattern shape

    hi.I am a new member in this site.
    today my question is how to make a diamond shape using loops?
    the shape is like:
    Code:
            *
          * * *                              
        * * * * *
      * * * * * * *
    * * * * * * * * *
      * * * * * * *
        * * * * *
           * * *
             *
    See more | Go to post
    Last edited by Ganon11; Mar 1 '07, 10:21 PM. Reason: code tags added to prserve spaces
No activity results to display
Show More
Working...