Find Jobs
Hire Freelancers

C++ C-strings, structures, and file i/o

$30-250 CAD

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

$30-250 CAD

完了時にお支払い
There are 2 parts to this project: 1) Write a program that simulates a soft drink machine. The program should use a structure that stores the following data: Drink Name Drink Cost Number of Drinks in Machine The program should create an array of five structures. The elements should be initialized with the following data: Drink Name Cost Number in Machine Cola 0.75 20 Root Beer 0.75 20 Lemon-Lime 0.75 20 Grape Soda 0.80 20 Cream Soda 0.80 20 Each rime the program runs, it should enter a loop that performs the following steps: A list of drinks is displayed on the screen. The user should be allowed to either quit the program or pick a drink. If the user selects a drink. he or she will next enter the amount of money that is to be inserted into the drink machine. The program should display the amount of change that would be returned and subtract one from the number of that drink left in the machine. If the user selects a drink that has sold out, a message should be displayed. The loop then repeats. When the user chooses to quit the program it should display the total amount of money the machine earned. Input Validation: When the user enters an amount of money, do not accept negative values, or values greater than $1.00. 2) Write a program that uses a structure to store the following inventory data in a file: Item Description Quantity on Hand Wholesale Cost Retail Cost Date Added to Inventory The program should have a menu that allows the user to perform the following tasks: • Add new records to the file. • Display any record in the file. • Change any record in the file Input Validation: The program should not accept quantities, or wholesale or retail costs, less than O. The program should not accept dates that the programmer deter- mines are unreasonable.
プロジェクト ID: 1321191

プロジェクトについて

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

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Dear,sir. I'm ready to start right now. Regards.
$50 CAD 1日以内
3.4 (54 レビュー)
5.4
5.4
この仕事に7人のフリーランサーが、平均$57 CADで入札しています
ユーザーアバター
Good day. I have represented my country at international level with C++ algorithmic coding. I know what I'm doing. This comes as no challenge at all. To convince you to pick me for the job, I have sent you the first program. Accept my bid and the second one will follow shortly. Regards, Bennie Swart.
$50 CAD 1日以内
5.0 (10 レビュー)
4.4
4.4
ユーザーアバター
hi sir. i am a qualified programmer and i have good experience in c/c++ ... i can do this job in very short time. please check pmb. thank you
$30 CAD 0日以内
5.0 (15 レビュー)
4.0
4.0
ユーザーアバター
a high quality product on a competitive price
$90 CAD 1日以内
5.0 (4 レビュー)
4.1
4.1
ユーザーアバター
Hi, Please check PMB
$50 CAD 5日以内
5.0 (1 レビュー)
3.2
3.2
ユーザーアバター
Hi. Prgramming Guru here. Please check your inbox for more details.
$30 CAD 1日以内
5.0 (1 レビュー)
1.0
1.0
ユーザーアバター
Dear sir, I have the experience to do this project. Choose my bid and get the project done to professional standards. Regards!
$100 CAD 2日以内
0.0 (1 レビュー)
0.0
0.0

クライアントについて

CANADAのフラグ
Toronto, Canada
5.0
1
メンバー登録日:3月 11, 2011

クライアント確認

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