[Hiring] [URGENT] 2 simple C language questions needed done by today!

Discussion in 'Jobs Hirings & Offerings' started by iGraffiti, 11/28/16.

Thread Status:
Not open for further replies.
  1. iGraffiti

    iGraffiti
    Expand Collapse
    High Risk Status: This user has been flagged as high risk due to one or more reasons

    Online
    Hey there!

    I'd like to hire someone that wants to make a quick 30$ for doing my assignment in C language for today! I didn't have time to learn everything because of exams in other subjects.
    It is basic scalar questions.

    Questions are:

    Question 1: Program called "my_scalar.c"

    There are two vectors; 'u' and 'v' (n dimension)

    v = (v1, v2, v3, ...,vn)
    and
    u = (u1, u2, u3, ..., un)

    The inner Multiplication (or the Multiplication scalar) of u and v, is the scalar that is obtained by adding the appropriate multiplication of the two vectors

    u*v = u1*v1 + u2*v2 + u3*v3 + ... un*vn


    example:
    if-
    U = (1,-2,3,-4)
    V = (6, 7, 1, -2)
    so-

    u*v= 1*6 + (-2)*7 + 3*1 + (-4) * (-2) = 3



    Required to write a program, that contains a function named "scalar_product" that recieves as parameters
    two vectors and one integer (what is it's job?), calculates the muliplication of the two vectors and returns.

    Note:
    you can assume that the length of the two parameters (vectors) will be the same length, but the function needs to be able to handle any length (up to 1000)



    Question #2 - head program for file con.c

    you have to write a program, that includes the functions void contract (char s1[], char s2[])
    that gets in s1 a series of characters, and returns in s2 the same series in a shorter format, for example:

    abcdef will be translated to a-f.

    And so on a continuous series of ASCII characters


    Please help me urgent!
    skype: anton.r.skype
     
    • This user is inactive. Hasn't logged into their account in over 60 days.
Thread Status:
Not open for further replies.