Announcement

Collapse
No announcement yet.

Any C programmers here?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Any C programmers here?

    Hey guys, Like the tittle says I'm looking to see if anyone can help me out with some C programming stuff. I'm not good at all at this stuff, I just know the very basics, I have an assignment and need some help. If anyone can help me out with these that would be great.

    Write a program to perform matrix transpose and multiplication using 2 dimensional
    array. You should write three functions:
    Main function: get the elements of two 2*2 integer matrix from user input; display the
    results after matrix transposition and multiplication.
    Transpose: transpose the input matrix.
    Multiplication: compute the multiplication of two matrix.
    REQUIREMENT:
    1 use pointers in transferring parameters between functions.
    2 using formatted output to keep the results clear to read.

    Second problem

    Write a function to convert a decimal integer into a binary number. Get the input
    decimal integer in the main function, transfer it to the user defined function. Display
    the binary number on the screen.


    Thanks a lot for your time.
    03' E46 M3--TCKline S/A 400F 450R -- OEM 19's-- DINAN software--330d SSK--ZHP knob
    Future mods -- headers/exhaust, 4.10 diff, 18" ARC-8's :hitler:

    91' 318i --coilovers-- skid plate--
    Future mods--new paint--E46 seats--

    #2
    What part do you need help with?

    Or were you just politely asking people to do your homework for you.
    '87 325is - Schwarz/Schwarz

    Comment


      #3
      Lol, politely asking, basically the issue I have with this class is that our professor is a horrible teacher. In this class we do not have computers for a C programming class and he teaches the class with power point slides. The class went from a class of 30 to a class of 10 after the midterm. The teacher himself sometimes has issues explaining some programs, its sad I think the school is only keeping him around because he is a part time professor and is cheapest way for the school. I only know the basics none of this more advanced stuff, so if anyone could help out it would be greatly appreciated.
      03' E46 M3--TCKline S/A 400F 450R -- OEM 19's-- DINAN software--330d SSK--ZHP knob
      Future mods -- headers/exhaust, 4.10 diff, 18" ARC-8's :hitler:

      91' 318i --coilovers-- skid plate--
      Future mods--new paint--E46 seats--

      Comment


        #4
        i hate to say it, but get used to it. you will deal w bad teachers. especially at the lower level classes. this is fundamental stuff, you're much better off learning this stuff on your own instead of getting help. write out what you want to do on paper, then try to figure out how to translate it to C.

        Comment


          #5
          I won't do this for you but the reason why your class isn't using computers to write computer programs is because the emphasis in introductory programming course is on problem solving, not syntax. Anyone can learn just the language and be a mediocre coder: but Good programmers create elegant and novel solutions to problems.

          I'm sure your class covered flow charting: start by flow charting each of the 3 functions on paper. Then rewrite the charts as code and wrap it all up in one main(). Same goes for Q2: flowchart the function to get your logic sorted out, then write it in C and wrap it up in a main() that gets input from the keyboard and outputs it to the screen.

          Good luck with the class.

          Comment


            #6
            I figured I would get lectured, and I understand where you guys are coming from, I was just reaching out for some help since I have a workload with some more complicated courses and final exams. I was able to get a C+ in the midterm but have been having issues with the Assignments. But thanks for the supporting comments and suggestions.


            Btw, anyone know any youtube videos or sites that can help me out with Arrays, and some C programming?
            03' E46 M3--TCKline S/A 400F 450R -- OEM 19's-- DINAN software--330d SSK--ZHP knob
            Future mods -- headers/exhaust, 4.10 diff, 18" ARC-8's :hitler:

            91' 318i --coilovers-- skid plate--
            Future mods--new paint--E46 seats--

            Comment

            Working...
            X