Find Jobs
Hire Freelancers

C code Dictionary

$30-250 USD

Selesai
Dibuat lebih dari 3 tahun yang lalu

$30-250 USD

Dibayar ketika dikirim
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 Proyek: 28266957

Tentang proyek

7 proposal
Proyek remot
Aktif 3 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
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 dalam 5 hari
5,0 (4 ulasan)
3,3
3,3
7 freelancer menawar dengan rata-rata $118 USD untuk pekerjaan ini
Avatar Pengguna
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 dalam 6 hari
4,8 (22 ulasan)
4,7
4,7
Avatar Pengguna
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 dalam 3 hari
5,0 (12 ulasan)
4,0
4,0
Avatar Pengguna
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 dalam 1 hari
5,0 (7 ulasan)
4,2
4,2
Avatar Pengguna
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 dalam 1 hari
5,0 (8 ulasan)
4,1
4,1
Avatar Pengguna
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 dalam 2 hari
4,9 (4 ulasan)
2,5
2,5
Avatar Pengguna
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 dalam 5 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
Doral, United States
5,0
1
Memverifikasi Metode pembayaran
Anggota sejak Nov 23, 2020

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.