#include <stdio.h>
#include <stdlib.h>

#define SIZE 4
#define STRING_SIZE 30

int main(void)
{
    char strings[SIZE][STRING_SIZE];
    double total = 0;

    for (int i = 0; i < SIZE; ++i)
    {
        printf("Enter floating-point string %d: ",
               i + 1);

        scanf("%29s", strings[i]);

        total += strtod(strings[i], NULL);
    }

    printf("\nThe total is: %.2f\n", total);

    return 0;
}