Programmieren at Hochschule Pforzheim

Flashcards and summaries for Programmieren at the Hochschule Pforzheim

Arrow Arrow

It’s completely free

studysmarter schule studium
d

4.5 /5

studysmarter schule studium
d

4.8 /5

studysmarter schule studium
d

4.5 /5

studysmarter schule studium
d

4.8 /5

Study with flashcards and summaries for the course Programmieren at the Hochschule Pforzheim

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

int / int8

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

int16

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

2D Array [10 10]

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

uns8

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

uns16

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

bit

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

char

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

Grußbuchstaben in Kleinbuchstaben

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

Passwort (3 Versuche)

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

Quersumme

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

Primzahlen

This was only a preview of our StudySmarter flashcards.
Flascard Icon Flascard Icon

Millions of flashcards created by students

Flascard Icon Flascard Icon

Create your own flashcards as quick as possible

Flascard Icon Flascard Icon

Learning-Assistant with spaced repetition algorithm

Sign up for free!

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

Knobelspiel 

Your peers in the course Programmieren at the Hochschule Pforzheim create and share summaries, flashcards, study plans and other learning materials with the intelligent StudySmarter learning app.

Get started now!

Flashcard Flashcard

Exemplary flashcards for Programmieren at the Hochschule Pforzheim on StudySmarter:

Programmieren

int / int8

[-128...0...127]

1 byte

Programmieren

int16

[-32768...0...32767]

2 byte

Programmieren

2D Array [10 10]

#include <stdio.h>


int a[10][10];

int i,j;


int main (void)

{

     for (i=0; i<10; i++)

     {

         for (j=0; j<10; j++)    

         {

             a[i][j] = i;

             printf (" %d", a[i][j]);

             a[i][j] = j;

             printf ("%d", a[i][j]);

             if (j==9)

             {

                 printf ("\n");

            }

        }

    }

    printf ("\n\n");    

    for (j=0; j<10; j++)

     {

         for (i=0; i<10; i++)    

         {

             a[i][j] = i;

             printf (" %d", a[i][j]);

             a[i][j] = j;

             printf ("%d", a[i][j]);

             if (i==9)

             {

                 printf ("\n");

            }

        }    

    }


    return 0;

}

Programmieren

uns8

[0...255]

1 byte

Programmieren

uns16

[0...65535]

2 byte

Programmieren

bit

[0,1] 

1 bit

Programmieren

char

[0...255]

1 byte

Programmieren

Grußbuchstaben in Kleinbuchstaben

#include <stdio.h>


int i = 0;


int main (void)


 {

     char string[1][8];

     

     printf ("Gebe max. 7 Zeichen ein:");

     scanf ("%s", &string[1][0]);

     // printf ("%s", string[1]);

     

     for (string [1][i]; i < 9; i++)

     {

         if (string[1][i] > 96 && string [1][i] < 123)

         {

             string [1][i] = string[1][i] - 32;

             printf ("%c", string[1][i]);

        }

        else if (string[1][i] > 64 && string [1][i] < 91)

         {

             string [1][i] = string [1][i] + 32;

             printf("%c", string [1][i]);

        }

        else 

        {

            printf ("%c", string [1][i]);

        }    

    }

     return 0;

 }

Programmieren

Passwort (3 Versuche)

#include <stdio.h>



int i, y;

unsigned char string[2][10];



int main (void)

{

    printf ("Neues Passwort eingeben:");

    scanf ("%s", &string[0][0]);

    

    for(i=0;i<3;i++)

    {

        printf ("\nPasswort eingeben:");

        scanf ("%s", &string [1][0]);

    

        for (y=0; string [0][y]!=0 || string [1][y]!=0; y++)

        {

            if (string[0][y] != string [1][y])

            {

                printf ("Falsches Passwort eingegeben\n");

                if (i==2)

                {

                printf ("Passwort drei mal falsch eingegeben!");

                i = 3;

                }

                break;

            }

        

            else 

            {

                //printf ("Richtig\n");

            }

        }

        if (string [0][y] == 0 && string[1][y] == 0)

        {

            printf ("Richtiges Passwort eingegeben.\n");

            break;

        }

        

    }

        

    return 0;

}

Programmieren

Quersumme

#include <stdio.h>

int a,b,c;

int main (void)

 {

     scanf("%d",&a);

     while(a>0)

     {

         b=a%10;

         a=a/10;

         c=c+b;

     }

     printf("%d",c);

     return 0;

 }

Programmieren

Primzahlen

#include <stdio.h>


int a,b,c,i,j;


int main (void)

{

    printf("Ausgabe von Primzahlen zwischen zwei Grenzen. \nGeben Sie die untere Grenze an:\t");

    scanf("%d", &a);

    printf("Geben Sie die obere Grenze an:\t");

    scanf("%d", &b);

    a=a+1;

    for(i=a; i<b;i++)

    {

        for(j=2;j<i;j++)

        {

            c=i%j;

            if(c==0)

            {

                break;

            }

        }

        if(c!=0)

        {

            printf("\n%d",i);

        }    

    }

    return 0;

}

Programmieren

Knobelspiel 

#include <stdio.h>


int main(void)


{

    int A,B,C,D,E,F,G,H;

    

    E = 0;

    F = 0;


    while(1)

    {

        do

        {

            printf ("\n\nSpieler 1 bitte Zahl groesser 0 eingeben: ");

            scanf ("\n%d", &A);

        }    

        while (A < 0);

        

        do    

        {

            printf ("Spieler 2 bitte Zahl groesser 0 eingeben: ");

            scanf ("\n%d", &B);    

        }

        while (B < 0);

            

        C = A + B;

        D = C % 2;

                

        if (A == B)

        {

            printf ("\nunentschieden\n");

        }

        else if (D == 0)

        {

            if (A < B)

            {

                printf ("\nSpieler %d gewinnt.\n",1);

                E = E+1;

                printf ("Spielstand: %d : %d",E,F);    

            }

            else

            {

                printf ("\nSpieler %d gewinnt.\n",2);

                F = F+1;

                printf ("Spielstand: %d : %d",E,F);    

            }

        }

        else

        {

            if (A < B)

            {

                printf ("\nSpieler %d gewinnt.\n",2);

                F = F+1;

                printf ("Spielstand: %d : %d",E,F);    

            }

            else

            {

                printf ("\nSpieler %d gewinnt.\n",1);

                E = E+1;

                printf ("Spielstand: %d : %d",E,F);    

            }

        }    

        

        G = E - F;

        H = F - E;

            

        if (G > 2)

        {

            printf ("\nSpieler 1 ist Gesamtsieger. Herzlichen Glueckwunsch!");

        }

            

        if (H > 2)

        {

            printf ("\nSpieler 2 ist Gesamtsieger. Herzlichen Glueckwunsch!");

        }

    }

    return 0;

}

Sign up for free to see all flashcards and summaries for Programmieren at the Hochschule Pforzheim

Singup Image Singup Image
Wave

Other courses from your degree program

For your degree program Programmieren at the Hochschule Pforzheim there are already many courses on StudySmarter, waiting for you to join them. Get access to flashcards, summaries, and much more.

Back to Hochschule Pforzheim overview page

Programmieren I at

Duale Hochschule Baden-Württemberg

Programmieren 2 at

Hochschule Karlsruhe

Programmieren 1 at

Technische Hochschule Nürnberg

programmieren at

Universität Düsseldorf

Programmieren 2 at

IUBH Internationale Hochschule

Similar courses from other universities

Check out courses similar to Programmieren at other universities

Back to Hochschule Pforzheim overview page

What is StudySmarter?

What is StudySmarter?

StudySmarter is an intelligent learning tool for students. With StudySmarter you can easily and efficiently create flashcards, summaries, mind maps, study plans and more. Create your own flashcards e.g. for Programmieren at the Hochschule Pforzheim or access thousands of learning materials created by your fellow students. Whether at your own university or at other universities. Hundreds of thousands of students use StudySmarter to efficiently prepare for their exams. Available on the Web, Android & iOS. It’s completely free.

Awards

Best EdTech Startup in Europe

Awards
Awards

EUROPEAN YOUTH AWARD IN SMART LEARNING

Awards
Awards

BEST EDTECH STARTUP IN GERMANY

Awards
Awards

Best EdTech Startup in Europe

Awards
Awards

EUROPEAN YOUTH AWARD IN SMART LEARNING

Awards
Awards

BEST EDTECH STARTUP IN GERMANY

Awards