Find Jobs
Hire Freelancers

C program in Linux environment

₹600-1500 INR

Fechado
Publicado há mais de 8 anos

₹600-1500 INR

Pago na entrega
The below program giving wrong output when negative integer entered at command line for two consecutive times . can we correct that? #include <stdio.h> #include <unistd.h> int main() { int number = 0, status; pid_t pid; printf("Please enter a number n"); scanf("%d", &number); if(number<0) { printf("Please enter a positive number, greather than 0 n"); scanf("%d", &number); } pid = fork(); if(pid < 0) { printf(" Unsuccessful to create Child Process n"); return 0; } else if(pid == 0) { printf("%d ",number); do { if(number%2 != 0) { number = (number*3)+1; } else if(number%2 == 0) { number = number/2; } printf("%d ",number); }while(number != 1); } else { printf("\npid %d ",pid); wait(&status); } return 0; }
ID do Projeto: 8584545

Sobre o projeto

55 propostas
Projeto remoto
Ativo há 8 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
55 freelancers estão ofertando em média ₹1.088 INR for esse trabalho
Avatar do Usuário
Hello... When the user introduces the second time a negative value, what should you do?... test again if the number if negative? ... how many times will you ask to the user "Please enter a positive number?..."... because, it seems like you need to use a LOOP. I can help you right now. I havce 20 years programming in c/c++ with master and Phd. So, let me help you. Best regards!.
₹1.500 INR em 2 dias
5,0 (87 avaliações)
7,1
7,1
Avatar do Usuário
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
₹5.000 INR em 1 dia
4,9 (116 avaliações)
6,8
6,8
Avatar do Usuário
please put in description info what exactly the program was supposed to do?
₹850 INR em 2 dias
5,0 (82 avaliações)
6,3
6,3
Avatar do Usuário
Figured out the issue ur facing the problem with standard input while forking feel free to contact me #####################################################################
₹1.300 INR em 1 dia
5,0 (32 avaliações)
5,2
5,2
Avatar do Usuário
Hi, You have a very basic error in your code abdout how to handle numbers from command line input. I can fix that and explain to you. (and show you a demo of code running locally) Contact me back if interested. Cheers
₹1.250 INR em 1 dia
5,0 (18 avaliações)
5,0
5,0
Avatar do Usuário
Computer Sciencce student in his last year. Plenty of experience with programming languages like c++. I have identified the problem with the source code and can help you fix it
₹750 INR em 1 dia
5,0 (14 avaliações)
4,6
4,6
Avatar do Usuário
Hello I have 25+ years of C/C++ programming experience, 10 years as freelancer 300+ projects completed. · I´ll send you a full tested and documented program (in code). · 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.
₹1.500 INR em 1 dia
4,8 (29 avaliações)
4,9
4,9
Avatar do Usuário
hi i can help
₹1.250 INR em 1 dia
5,0 (33 avaliações)
4,7
4,7
Avatar do Usuário
A proposal has not yet been provided
₹1.050 INR em 1 dia
4,7 (18 avaliações)
4,9
4,9
Avatar do Usuário
Hello. More 20 years programming experience. I need more details to set real time and price. Regards. ---------------------------------------------------------------------------------------------------------------------------------------------------
₹1.300 INR em 1 dia
4,8 (12 avaliações)
4,4
4,4
Avatar do Usuário
Hello I am Software Developer working on Web & Desktop applications (C# expert developer) Languages , We are working on : C#.Net, VB.Net, Android, Java, C, C++, PHP, Java script, JQuery, Ajax, HTML etc... Database : SQL SERVER / Oracle / MS-Access / Text / SQLite My good points: - Master Degree in Computer Science - 3+ Years of experience - Delivered before time - My good habit is to leaving comment on each important lines. - More about me you can view my portfolio ------------------------------------ if you have any confusion, Feel free to ask Lets discus your project
₹1.500 INR em 1 dia
5,0 (13 avaliações)
3,7
3,7
Avatar do Usuário
Hi, This is a very simple mistake which I found by simply seeing,and that is big blunder I am a student in Indian Institute of technology madras (IIT) and have very good experience in c programming,if given the task i could finish it 5 minutes and give you back,and pay only when it works perfectly hope you give me the project
₹850 INR em 0 dia
5,0 (5 avaliações)
3,8
3,8
Avatar do Usuário
Hi, my name is Tom Uffner. I am an expert C/C++ developer, and I am very familiar with writing code for Linux. I have already fixed the problem, I can give you the solution as soon as you hire me When you hire me I will complete your program quickly and correctly. Thank you for considering this bid, tom
₹1.300 INR em 1 dia
5,0 (6 avaliações)
3,5
3,5
Avatar do Usuário
Hello. I have a lot of experience with C, I've checked and executed your code and I know how to fix it (it's very easy).
₹1.150 INR em 1 dia
4,9 (8 avaliações)
3,3
3,3
Avatar do Usuário
Hi,sir. I was interested when I saw your project. I can complete your project nicely. My skills are C, C++, Reversing, Matlab & Mathematics, Web scraping,Algorithm. I can help you very kindly. I can help you good. Best regards. Thank you.
₹1.300 INR em 1 dia
4,7 (3 avaliações)
2,5
2,5
Avatar do Usuário
Hey .. I have already solved the problem.. Ping me when u available.. i will give u the fixed code.. U can inbox me at any time.
₹750 INR em 1 dia
4,0 (1 avaliação)
3,0
3,0
Avatar do Usuário
Hello, I have over 6+ years of experience in C programming. I can correct your program to work properly. There is a condition which you need to add. I can tell correct the program and share corrected code with you immediately. Kindly ping me if you are interested. Prize quoted is negotiable.
₹600 INR em 0 dia
4,6 (6 avaliações)
2,3
2,3
Avatar do Usuário
Hello. The program asks for positive number as an input. So should I completely prohibit negative input numbers or what ? Best regards.
₹1.250 INR em 1 dia
4,7 (2 avaliações)
1,7
1,7
Avatar do Usuário
Just change if(number<0) to: while (number<0) You can hire me to help you out with the rest of the code... or just keep the solution.
₹600 INR em 0 dia
5,0 (6 avaliações)
1,8
1,8
Avatar do Usuário
A proposal has not yet been provided
₹1.250 INR em 1 dia
5,0 (4 avaliações)
2,0
2,0

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
5,0
7
Método de pagamento verificado
Membro desde set. 18, 2015

Verificação do Cliente

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.