program that offers choice of tool width

This is a discussion on program that offers choice of tool width within the C Programming forums, part of the General Programming Boards category; I need help writing this program: 1)The program will offer a choice of a tool width of: A 0.1 mm ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    4

    program that offers choice of tool width

    I need help writing this program:

    1)The program will offer a choice of a tool width of:
    A 0.1 mm
    B 0.3 mm
    C 0.5 mm
    D 1.0 mm

    2) Request the input of a position in 2D within the boundaries of -10000<=X<=+10000 and 0<=Y<=3000

    3) Print the XY coordinates in steps of the chosen tool width to plot the first letters of your first and family name within a rectangle of X=200 and Y=100. Make sure not to violate the boundaries of (3).

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Not even dignified with a response yet? Well surely you read the homework policy. I can give you my homework policy though: You show me how you are trying to get it, and where you are stuck, and I will help you from there.

    I can help you with a very basic start.

    Example:
    Code:
    #include <stdlib.h>  // just in case
    #include <stdio.h>   // this allows you to get input and write output
    
    int main(void)
    {
        float options = { 0.1f, 0.3f, 0.5f, 1.0f };
        char choice;
    
        choice = getchar();
    
        return 0;
    }
    That doesn't help too much in terms of doing your work for you. But its a place to start. The semester is almost over bud, don't think of any of us as heartless.

  3. #3
    Banned
    Join Date
    Nov 2007
    Posts
    678
    Geeeeez!!
    What is the OP's question???

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    4
    ok, i'll work it a little bit and see how it goes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Conversion tool
    By Thrakity in forum C Programming
    Replies: 18
    Last Post: 04-06-2009, 03:29 AM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 10:17 PM
  3. Program with Shapes using Virtual Functions
    By goron350 in forum C++ Programming
    Replies: 12
    Last Post: 07-17-2005, 01:42 PM
  4. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  5. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 04:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21