Find Jobs
Hire Freelancers

C++ assignment 2

$10-30 CAD

Concluído
Publicado há mais de 10 anos

$10-30 CAD

Pago na entrega
Problem Statement: Implement the function justify in the file [login to view URL] to perform left and right justification on a text input of type string. The justified text is a vector of strings (see new type PARA in justify.h). Text justification is a part of typesetting, where a ragged text is transformed into a text that neatly fits into a column of given width. The assumptions for the input text are as follows: 1. The input text is a single unjustified string terminated by a null (‘\0’) character. 2. The input text consists only of alphabets (lower and upper case), blank spaces (‘ ‘), and two punctuation marks (periods (‘.’), and commas (‘,’)). 3. Every word in a sentence in the input text is separated by a single blank space. 4. The punctuation marks immediately follow the last character of the preceding word, and a single space is present between a punctuation mark and the following word. 5. There are no new line characters in the input string. We will perform a very primitive form of justification in this assignment using the following rules: 1. Every line in the justified text must have at least width – 2 characters, with the exception of the last line, which may have fewer characters. 2. Every line in the justified text must have at most width characters, with the exception of lines that terminate with a punctuation mark (period or comma). In such cases, the line may have width+1 characters to accommodate the trailing punctuation mark. 3. Every line in the justified text must start with an alphabet (word). The first character in a line cannot be a punctuation mark or space. 4. If a word needs to be split across lines in order to follow the above rules, a hyphen (‘-‘) character must be inserted after the first part of the word. The hyphen character counts toward the total number of characters in a line. Development Methodology You are given four C++ source files in an archive. Extract the archive on your PC (or Linux server) and change into the directory. Inside you will find the following files: 1. studentID.h: This file should contain your student ID. For now, it has a placeholder value “123456”. Please put your student ID here. It is very important that you change the value to your correct student ID, otherwise we will deduct 1 point from your score, because a missing ID causes significant burden for testing your program and evaluating your grade. 2. justify.h: This is a header file that defines error codes, PARA type and useful macros. Do not edit or submit this file. 3. [login to view URL]: This is the file where the justify function must be implemented. You must edit and submit this file. 4. [login to view URL]: This is the file where the main function, used for testing the program, resides. You should NOT submit this file, although you may choose to modify it for testing.
ID do Projeto: 5174185

Sobre o projeto

3 propostas
Projeto remoto
Ativo há 10 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello, a m experienced with C and C++ and I am able to complete this task in 24 hours, maybe sooner, if needed.
$15 CAD em 1 dia
5,0 (157 avaliações)
5,8
5,8
3 freelancers estão ofertando em média $23 CAD for esse trabalho
Avatar do Usuário
Hello 20+ years of C++ experience, 10 years as freelancer 300+ projects completed. > I´ll send you a full tested and documented program (in code). No external documentation. > Unlimited cycles of revision in the agreed time period. > Full advice about the best way to do the implementation. Please contact me to discuss the details. Thanks.
$30 CAD em 1 dia
5,0 (2 avaliações)
2,4
2,4
Avatar do Usuário
I Used to work as a software engineer for 3 years. Good at C++ and linux. Can finish it perfectly. Thanks.
$23 CAD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) CANADA
Montreal, Canada
5,0
6
Método de pagamento verificado
Membro desde nov. 11, 2013

Verificação do Cliente

Trabalhos semelhantes

NinjaTrader Developer for Quick Help
$10-40 CAD
Lotus Notes to PDF Batch Converter
$750-1500 USD
I am looking for a C++ EXPERT For debugging an existing desktop software, using: C++ Visual Studio .NET OpenCV
$250-750 USD
Enhance OpenSource Video Editor WPF/C#
$250-750 USD
I am looking for an experienced image processing/openCV/AI software engineer to implement a C++/ML program that can segment teeth from pictures. The pictures can be from front, lateral, and the bite direction of a dental jaw
$250-750 USD
Trading Indicator Lua Script Creation
$30-250 USD
Telegram BULK DMs 100k
$750-1500 USD
Java, Qt developer
$25-50 USD / hour
I'm looking for a way to create an openbook market id on solana for cheaper than the typical fee. Apparently there is a method out there in which you can create one for ~0.3 sol or even 0.02 - 0.04 sol which would be great.
$10-30 USD
C++ Debugging for Linux RPG Game
$10-30 USD
J1939 CAN Protocol Development Specialist
$10-30 USD
Discord Crypto Bot for Market Swap
$30-250 USD
Python Programmer for Automated Social Media Posting
€100-250 EUR
Generative A.I text to video website development
€3000-5000 EUR
Multifaceted C Socket Programmer Required
$250-750 NZD
Cross-Platform QT Desktop Application Expert needed
$750-1500 USD
Merge mining AiBlockChain (clone of Litecoin) -Dogecoin Mining Pool
$250-750 USD
UMG Programmer for Unreal Engine Todo
$10-30 CAD
Ghosts of Tabor VR ESP Design
$30-250 USD
Crypto Bot Following Single Wallet
$250-750 USD
Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.