Search:

Type: Posts; User: timka138

Search: Search took 0.01 seconds.

  1. I finally had a chance to work on the program...

    I finally had a chance to work on the program since I'm having exams. I got some things done but im having difficulty with it printing the GPA and storing multiple grades in the index. When i ran it...
  2. Thank you Hobbit. Ill look over and continue...

    Thank you Hobbit. Ill look over and continue working on the code and if anything ill ask some more questions. It makes sense to put it into functions, i just didn't think of that. This is the first...
  3. I'm having trouble inputting the student ID. The...

    I'm having trouble inputting the student ID. The way its supposed to work is that the ID is supposed to correlate with each index, meaning if each index is a student, then the ID is equivalent to the...
  4. the passwords file is a txt document so isn't...

    the passwords file is a txt document so isn't that why the .txt extension is put so that it reads from the txt file?
  5. Yes I'm on windows. That could be it because...

    Yes I'm on windows. That could be it because after i input the if statement that algorithm gave me, it doesn't even pull up the program, every time i try to run it on visual studio it doesn't even...
  6. This is what i get when i enter the username and...

    This is what i get when i enter the username and password

    14961
  7. And this is what i have in the passwords.txt file...

    And this is what i have in the passwords.txt file that i made. Its formatted where the first word is the username and second word is the password. Ex: Kenny is the username and Lofton is the...
  8. #include #include ...

    #include<stdio.h>
    #include <string.h>


    typedef struct student
    {
    char fname[100], lname[100], ID[100];
    double grades;
    }student;
  9. Thanks, but is the while loop given the correct...

    Thanks, but is the while loop given the correct statement because its supposed to scan the file and match the previously entered username with the username in the file and the entered password with...
  10. Help with creating a program to store student records using string arrays

    First I'll post the assignment, then explain my problem, and then post my code.

    Assignment:
    Instructions:
    You are to create a program that tracks student grades.
    When the program launches the...
  11. Replies
    1
    Views
    3,104

    writing in arrays

    here is an excerpt from my homework that I'm having some difficulty with and need some direction.

    "Selecting 2 Prompts the user for a first and last name. Store this information in the system as a...
  12. Thread: Homework help

    by timka138
    Replies
    8
    Views
    2,412

    @whiteflags It defines the fraction. if you look...

    @whiteflags
    It defines the fraction. if you look in the top of the program in the previous post it shows it. I saw this from a previous code in my class and used it. I think its like a shortening...
  13. Thread: Homework help

    by timka138
    Replies
    8
    Views
    2,412

    Im having a problem with finding the maximum and...

    Im having a problem with finding the maximum and minimun fraction, mean of the fractions. i started it but since i have the array as a fraction it keeps on telling me i cant compare it with an...
  14. Thread: Homework help

    by timka138
    Replies
    8
    Views
    2,412

    @GiForce Awesome, thanks for the help it worked.

    @GiForce
    Awesome, thanks for the help it worked.
  15. Thread: Homework help

    by timka138
    Replies
    8
    Views
    2,412

    This is the full code that i actually have so...

    This is the full code that i actually have so far( I know I should have probably posted this in the first place, sorry about the confusion)



    #include<stdio.h>
    #include <stdlib.h>
    #define...
  16. Thread: Homework help

    by timka138
    Replies
    8
    Views
    2,412

    if (a == 6) { printf("enter a...

    if (a == 6)
    {




    printf("enter a numerator and a denominator value\n");
    scanf("%d %d", &arrFraction[i].num, &arrFraction[i].denom);
    i++;
    }
  17. Thread: Homework help

    by timka138
    Replies
    8
    Views
    2,412

    Writing and sorting fractions homework help

    Press 6 to enter a Fraction //Prompt the user for numerator and denominator.
    Press 7 to Print fraction values //Print all stored fractions. Fractions should be printed in mixed number format.
    Press...
  18. converting improper fractions into mixed number

    if (a == 6)
    {


    printf("enter a numerator and a denominator value\n");

    int num, denom,num1;
    int whole = num/denom;...
Results 1 to 18 of 18