Find Jobs
Hire Freelancers

C code Dictionary

$30-250 USD

Đã hoàn thành
Đã đăng vào hơn 3 năm trước

$30-250 USD

Thanh toán khi bàn giao
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
Mã dự án: 28266957

Về dự án

7 đề xuất
Dự án từ xa
Hoạt động 3 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
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 trong 5 ngày
5,0 (4 nhận xét)
3,3
3,3
7 freelancer chào giá trung bình $118 USD cho công việc này
Avatar người dùng
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 trong 6 ngày
4,8 (22 nhận xét)
4,7
4,7
Avatar người dùng
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 trong 3 ngày
5,0 (12 nhận xét)
4,0
4,0
Avatar người dùng
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 trong 1 ngày
5,0 (7 nhận xét)
4,2
4,2
Avatar người dùng
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 trong 1 ngày
5,0 (8 nhận xét)
4,1
4,1
Avatar người dùng
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 trong 2 ngày
4,9 (4 nhận xét)
2,5
2,5
Avatar người dùng
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 trong 5 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Doral, United States
5,0
1
Phương thức thanh toán đã xác thực
Thành viên từ thg 11 23, 2020

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.