Find Jobs
Hire Freelancers

cpp program

$10-20 USD

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

$10-20 USD

完了時にお支払い
In this assignment, you write a C++ program for logical cyclic shift of n-bit numbers by given number of positions (<= n). You are required to create a circular list to store a given binary number. Then your program will be able to rotate the number left by any given number of positions for the cyclic left operation, and rotate the number by right by a given number of positions for the cyclic right operation. The provided sample input below elaborates on these operations. In this assignment you are required to use a circular linked list to create a circular representation for the n-bit number. The cyclic shift operations will change where the first bit starts in the number. The cyclic shift left by one position shifts every bit to the left by one position; and the leftmost bit moves cyclically to the vacated rightmost position. Similarly, the cyclic shift right shifts every bit to the right by one position; and the rightmost bit is moved cyclically to the vacated leftmost position. These generalize to cyclic shifts (left and right) by any given number of positions in an obvious way. You may choose to use doubly-linked circular linked list, or make a full circular traversal on each cyclic shift as we discussed in the lecture. /* first input n = */ 8 /* next inputs are n bits, from leftmost bit to rightmost bit =*/ 1 1 1 1 0 0 0 0 L 1 /* rotate left by one position */ result=11100001 L 2 /* rotate left by two positions*/ result=10000111 L 1 /* rotate left */ result=00001111 R 3 /* rotate right */ result=11100001 The above is one simple example your program must be designed to work for every n and every n-bit number, and for every number of positions (<= n).
プロジェクト ID: 9627396

プロジェクトについて

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

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY | i CAN REALLY |
$20 USD 1日以内
4.6 (14 レビュー)
3.8
3.8
この仕事に3人のフリーランサーが、平均$20 USDで入札しています
ユーザーアバター
Dear Sir/Madam, I can do this accordingly. I have over 8 years of work experience in C, C++, C# and so on... I only bid on projects that I know I can complete successfully. Please visit the links below to see some of my skills and to see few of my works: https://www.freelancer.com/u/TechnoVilla.html I can ensure you that you will be fully satisfied with my work. You will be realized that I have a wonderful skills and strong abilities while I am working on your project. If I cannot complete your task with my skills, I will refund all funds to you based on 'Money Back Guarantee' Rule. But I can confirm you that it will never happen! Looking forward to working with you soon. Thanks! Kind Regards, TechnoVilla!
$19 USD 1日以内
5.0 (2 レビュー)
2.3
2.3

クライアントについて

UNITED STATESのフラグ
United States
5.0
1
お支払い方法確認済み
メンバー登録日:10月 16, 2015

クライアント確認

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