Find Jobs
Hire Freelancers

build me a program

$30-250 USD

완료함
게시됨 약 4년 전

$30-250 USD

제출할때 지불됩니다
Problem Statement: In the program, you must read commands which will require you to perform some operation on either one or two bit patterns, determine the result of the operation, and output accordingly. The binary operands will contain exactly 8 bits, where a bit is a binary digit. A byte contains 8 bits. The commands are as follows: NOT AND. OR CONVERT LSHIFT Input : one of the above commands, starting in column 1 of the data file <1st operand>: the 1st binary operand, a sequence of eight 0's and 1's starting in column 10. Shift commands will also have an integer following the binary number, starting in column 20. <1st operand>: the 2nd binary operand, for commands which require it, starting in column 20 BAD DATA: you must check for invalid command names. You may assume that the binary operands are all correctly given in the data file You may hard code the file name into your program. You are required to implement a check to see if the data file has opened successfully, and if it has not, your code must terminate the program with a descriptive error message. You can use either the return function and implement a second return in main or you may use the exit function. An additional test data file, which is smaller and may be used for your early testing, is also given on the web site and is named small.txt. Output and an example: Here is sample output, using the smaller test data file as input: ************************************************ * * * Eight Bit Binary Number Manipulator * * * ************************************************ COMMAND Operand #1 Operand #2 Shift Result 4 ---------------------------------------------------------- NOT 11010011 00101100 AND 10010010 11001110 10000010 OR 10011001 11100101 11111101 CONVERT 10010110 150 LSHIFT 11001101 3 01101000 WRONG 01010100 --- ERROR! Invalid Command --- Execution Completed. Use Of Functions Part of your grade on this and all future course programming projects will be determined by how well you utilize functions and parameters appropriately. Start by working on a good design, structure chart, etc. Your program must contain at least seven functions other than main, and represent a modular, cohesive design following class style guidelines. Note: it is not efficient to use the pow function (in the cmath header file) to calculate the integer powers of 2. Since pow uses doubles and must do data type conversions each time it is called, it is not efficient for the integers in this program. Instead, it is better and it is required to write up your own function to calculate integer powers of 2 (and this function may not call pow!). Use Of Data Structures and Data Types The major goal of this project is to familiarize you thoroughly with various aspects of processing standard core C++ language 1-dimensional arrays. For this reason, you must use 1-dimensional arrays of basetypeint to store the binary numbers (bit patterns). Then use what you have learned about arrays to perform the required manipulations on them. You may NOT use C++ strings to store the binary operands. You must use the C++ typedef construct to set up your arrays and pass them as parameters. You are required to use C++ string class variables to store and compare the commands. The ONLY classes you may use in this program are the standard C++ string class (for the commands only) and the standard basic iostream classes (for standard input and output). DO NOT use the C++ operators for bitwise operations to perform your bit pattern manipulations. You are required to set up the arrays and write the code to do these tasks yourself. Note: by convention, bits in a byte are numbered starting from 0 going from left to right. This is consistent with an array with indices from 0 through 7.
프로젝트 ID: 24798638

프로젝트 정보

6 제안서
원격근무 프로젝트
활동 중 4년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hi My name is Shahmeer Aslam. I’m expert in making projects and assignments on MS Office ( Word,Excel,Powerpoint,etc.). I’m Experienced in data entry, web research and coding in C++. I will complete your work on time or before the deadline. I would like to assist you with this project. Let’s connect on chat for further discussion and details. Thank you for your time and consideration. Regards, Shahmeer Aslam.
$30 USD 1일에
5.0 (2 건의 리뷰)
1.0
1.0
6 이 프로젝트에 프리랜서들의 평균 입찰은 $110 USD입니다.
사용자 아바타
Hello I read your problem description. I can get you a program implemented as per your spec to do binary operations. Please let me know if you are interested. Thanks Gokul
$100 USD 2일에
5.0 (69 건의 리뷰)
6.0
6.0
사용자 아바타
I CAN COMPLETE YOUR PROJECT EASILY Hello, I am programmer with enough experiences on C/C++ for 13 years. C/C++ is nice programming language and I am majoring on it for long years so I have confident to complete your project by C/C++. I can work by full time for your project and trying to satisfy the requirements. I am designing the project from scratch and structure it well. I am following the project's design process exactly, and if any error is found, f ix it within 24 hours and provide maintenance free of charge for a month. Client's idea + Programmer's good coding is the perfect result, this is my idea. I want to keep long-term relationship for customer so I want to give the nice result. If you want the perfect result, please contact with me.
$140 USD 7일에
5.0 (7 건의 리뷰)
5.5
5.5
사용자 아바타
I have exp in C Programming Algorithm Software Architecture C++ Programming PHP MySQL Debugging Payment Gateway Integration Magento 2
$140 USD 7일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hello, I am quite experienced with C/C++ programming and I have checked all of the files. I can help you with your project. Just let me know. Best regards
$110 USD 7일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (UNITED STATES)
Palm Harbor, United States
5.0
1
결제 수단 확인
4월 8, 2020부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.