Find Jobs
Hire Freelancers

C

$30-5000 USD

完了済み
投稿日: 22年以上前

$30-5000 USD

完了時にお支払い
Write a C program (unix) to demonstrate passing parameters to the main function. This project will test your ability to create related functions to perform parts of the same task. In addition it will expand the parameter passing concepts to now include the main function. NOTE: Do not use any screen clear or other cursor manipulation calls in your code. Do no prompt the user or read any input from the keyboard. It is absolutely imperative that the following be used in the code. MUST use: void main(int argc, char **argv); int hexnum(char *s); int hexdigit(char c); void usage(int c); A POW function must also be used to determine conversion.!! Given: A hexadecimal number passed on the command line. You will need: A function to convert individual hex digits (ie, hexdigit). A function to convert the whole number (ie, hexnum). A function to display errors and exit (ie, usage). Perform the following: (In no particular order) 1) Check for the appropriate number of parameters (too many or not enough). If not, display error message. Use MAIN to determine this (counts arguments). 2) Convert the hex number to decimal: Please use SWITCH STATEMENTS with hexdigit to perform this. 3) Trap for bad hex digits. Is it a valid hexidecimal digit? If not, display error message. Use hexnum (default -1) to determine. 4) Display the original number and its converted value or error. 5) Please clearly comment the code. Thank you. ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Deadline information As soon as possible
プロジェクト ID: 2832255

プロジェクトについて

2個の提案
リモートプロジェクト
アクティブ 22年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
See private message.
$17 USD 14日以内
5.0 (80 レビュー)
5.2
5.2
この仕事に2人のフリーランサーが、平均$20 USDで入札しています
ユーザーアバター
See private message.
$22.95 USD 14日以内
4.5 (33 レビュー)
4.2
4.2

クライアントについて

UNITED STATESのフラグ
United States
5.0
5
メンバー登録日:10月 13, 2001

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。