Find Jobs
Hire Freelancers

C code Dictionary

$30-250 USD

Terminado
Publicado hace más de 3 años

$30-250 USD

Pagado a la entrega
This project is for my Intro to C code Class for my AA degree. Deadline is 3 weeks, due on the 13th of december Write a C program that prompts the user for a series of letters. The program will read in the letters and print out which dictionary words can be made from the provided letters. The dictionary is provided as a text file. In very general terms, determining if a given word can be made from the given letters will require counting how many distinct kinds of letters there are in the given letters and in the words. For example, assume that the word “bull” is in the dictionary. The word “bull” contains 1 ‘b’ character, 2 ‘l’ characters, and 1 ‘u’ character. Now say the input letters were “alblldi”. In “alblldi”, we have enough ‘b’ characters for “bull”, since “alblldi” contains at least 1 ‘b’ character. Similarily, “alblldi”, has enough ‘l’ characters for “bull”, since “alblldi” contains at least 2 ‘l’ characters. However, “alblldi” does not have at least 1 ‘u’ character, and as such we know that we cannot make “bull” from “alblldi”. Dictionary file Read in the dictionary words from a file. The name of the dictionary file must be “[login to view URL]”. Make the following assumptions about the dictionary file: Each line contains the words that begin with particular letter. The words in each line are separated by tab (\t). Each word consists only of lowercase letters in the range a-z. The maximum length of a single line is 99 characters. The maximum number of words is 1000. If you cannot open the dictionary file, you should print “Failed to open dictionary file ‘[login to view URL]’”, followed by a newline, and then exit the program. Program requirements The program must meet the following requirements: The program keeps asking the user for letters until the letters are exit. The program prints words in the dictionary that could be made in alphabetic order, as specified in the dictionary. The program prints out what letters were typed in, followed by a colon (:), followed by a list of the words that could be made (if any). Each word that could be made is prefixed by a tab character (\t). If the user types an upper case letter your program must convert it to lower case. Your program must check if each character is a valid letter of the English alphabet, if it is not then that character is discarded. Program output For instance, the following would be some output from your program: enter letters: alblldi alblldi: ball bill enter letters: moo moo: enter letters: bleppa bleppa: ape apple enter letters: exit Implementation Hint There are a lot of different ways to perform this sort of counting, but the shortest way will probably involve an array of 26 integers, one for each letter of the alphabet. The first index in this array refers to the number of ‘a’ characters, the second index the number of ‘b’ characters, and so on. Grading System If the program runs your maximum grade will be 100/100 If the program doesn’t run your maximum grade will be 50/100 In either case the following will be checked during the grading process: ( 5%) Indentation ( 5%) Meaningful comments (at least 1 per function, and 1 per conditional/repetition statement) (10%) Reading the dictionary file line by line, and closing the file correctly when finished (15%) function that can count the number of times each character appears in a given word (15%) function that can determine if a word can be made given the letter counts for the word and the input letters. (30%) Iterate through the dictionary, executing the above code for each word in the dictionary. Print out the words that can be made, using the format specified before. In other words, if your program runs and does what it is supposed to do. (20%) Answering correctly four (4) questions about your code during the one on one project interview. This is what the preset dictionary txt file looks like - ape apple ball bill bull foot parrot pebble season zebras zoo
ID del proyecto: 28266957

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 3 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hello dear, I am Computer Scientist and have a very good understanding of C programming and algorithms. I can do your task. Inbox me
$150 USD en 5 días
5,0 (4 comentarios)
3,3
3,3
7 freelancers están ofertando un promedio de $118 USD por este trabajo
Avatar del usuario
Hi, i have worked with dictionary building data structures before. I have some ideas about how to this. Let me know if you are interested. Thanks in advance.
$75 USD en 6 días
4,8 (22 comentarios)
4,7
4,7
Avatar del usuario
Dear Client, Nice to meet you. I have checked your requirement. My special skill for Algorithm is ML and Genetic Algorithm. Dev tools are C/C++, C#, Java and Matlab. I am well-experienced in Data Structure and Algorithm including BFS, DFS, A*, AI with 8+yrs experiences. I have implemented many algorithms including BST tree, QuickSort, BubbleSort, Radix Sort, ... Also with Cryptology, RSA, DES, CAESAR... Hope to discuss with you. Thank you.
$200 USD en 3 días
5,0 (12 comentarios)
4,0
4,0
Avatar del usuario
Dear. I am confident in your project and I can finish it clearly on time. I am well experienced and skillful C/C++ programmer as you can see my past works on this site. I ensure the best quality of your project and to keep your deadline. Please contact me kindly and let us discuss in more detail. Working with me, you will have a good experience and a good friend and save more time and money. Best regards!
$150 USD en 1 día
5,0 (7 comentarios)
4,2
4,2
Avatar del usuario
hi I am really interested in your project I am new to Freelancer so I placed a bid for a low price But I have full experience of c programming I could finish your project in high quality, in short timeline I could satisfy you Everything will be done well if you work with me Thank you
$140 USD en 1 día
5,0 (8 comentarios)
4,1
4,1
Avatar del usuario
HI Thanks for your kind job offer. I have checked you project detail very carefully so that I feel 100% sure in it. I have rich experiences in C. I can finish it on time with A++ grade. I hope your kind reply. Thanks Ming
$50 USD en 2 días
4,9 (4 comentarios)
2,5
2,5
Avatar del usuario
As a student, this is the type of project I work with the most.I know what type of code teachers like and how they like to see things implemented.
$60 USD en 5 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Doral, United States
5,0
1
Forma de pago verificada
Miembro desde nov 23, 2020

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos 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)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.