Results 1 to 5 of 5
  1. #1

    * lesson 1 for learning C program

    Hello All

    i hope anyone here knows C well

    i am in engineering faculty Computer department

    so i am learning C at first 5 weeks and honestly i can't understand a single word from Professors

    so i will post my sheet that i must answer and you try to solve it and the MOST important thing is to explain quite bit the solution

    here are 7 problems
    please help me in sloving them or at least couple of them
    please don't forget to explain , consider me that i have 0% experience with C

    1. Write a program that given the an integer N, draws a triangale having a base and a
    height equals N. For example a triangle with base and height 4 will look like
    2. Write a program that given an array of N integers, output the maximum number, the
    minimum number and the average and sum of these numbers.

    3. Write a program that given two integer numbers x ,y and z, displays all the numbers
    that are divisible by z in the range between x and y inclusively. Note that x is not
    necessary less than y.

    4. A factory divides its workers into three skill levels. Unskilled workers receive L.E. 8.15
    per hour, semiskilled workers receive L.E. 12.55 an hour, and skilled workers L.E. 18.60
    an hour. Write a program to calculate a workers weekly pay formatted to two decimal
    places. Your program input should consist of the hours worked and a skill level
    indicator. The program should run until the user enters two zeros, then the sum of all
    wages should be displayed.

    5. A shop need to keep an inventory of its 100 items for sale. Write a program that uses
    paralled arrays to input the item code, price and quantity of each item. Then the
    program displays a neat table of all items whose price > 100 pounds. Then it displays
    another table of all items whose quantity is less than 10 items.

    6. Write a program that calculates how far a satellite travels in one rotation about the
    earth, given the satellites altitude in kilometers. Use 6365 km as the earths radius.

    7. Write a function called calculator that accepts two numbers and an operation ( + - * /
    ) of type char. The function body executes the operation and returns the result.

    Thanks in advance for all people who will help me
      0 Not allowed!

  2. #2
    Join Date
    Apr 2009
    Pittsburgh, Pennsylvania
    Please read your text book.. whole way through if you have to.. not just once.. and don't read for word for word skip around read as much as possible and repeat this... or search for tutorials regarding basics of c language. And tell your school to skip c and go straight to c++ since c teaches you HORRIBLE habits for when you start getting into c++.

    EDIT: If you start writing code, and need help, post your code and I will gladly assist you, but i can't help those who can't help themselves.. no offense.. I'm sure others would agree.
      0 Not allowed!

  3. #3
    the problem is i have 7th week exam the week after next week
    and also i must deliver 5 sheets to my professor about C
    so i wanna anyone to help me a little as i was desperate to figure out anything alone at all
      0 Not allowed!

  4. #4
    Join Date
    Nov 2001
    so i will post my sheet that i must answer and you try to solve it and the MOST important thing is to explain quite bit the solution
    Do you honestly believe that the right approach to doing your work is to have others do it for you?

    What school are you attending, and what's your prof's name so we can alert them to this.
    “Even those who arrange and design shrubberies are under
    considerable economic stress at this period in history.”
      0 Not allowed!

  5. #5
    Join Date
    Oct 2002
    State of Disbelief
    Quote Originally Posted by prince_sasa View Post
    the problem is i have 7th week exam the week after next week
    Then it's time to ask him/her for help. No, we will not do your homework for you.
    Having problems, or maybe questions about WHT? Head over to the help desk!
      0 Not allowed!

Similar Threads

  1. Let this be a lesson for me...
    By RoboGnome in forum Running a Web Hosting Business
    Replies: 9
    Last Post: 10-28-2005, 12:10 PM
  2. Perhaps this could be a lesson to all of us...
    By KI-ChrisE in forum Web Hosting Lounge
    Replies: 5
    Last Post: 09-18-2005, 08:37 PM
  3. learning English(lesson 1 ): "cheap prices"
    By e-view in forum Web Hosting Lounge
    Replies: 8
    Last Post: 03-30-2005, 08:28 PM
  4. PHP Lesson program
    By skelley1 in forum Programming Discussion
    Replies: 0
    Last Post: 01-19-2003, 12:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts