C assignment of curl library

Assignment Help C/C++ Programming
Reference no: EM1334569

The Problem

Write a program that translates to and from Morse Code. Use the curl library and a website (e.g. https://morse.socs.uoguelph.ca/cgi­bin/morse.pl) to do the actual translations. Your program must take the user input, call the remote perl script using curl, process the response and display the appropriate results to the user. You may use any suitable website for translation but you must call the site using curl. There is a curl­utility file in the A2 algorithm folder (in the examples repo) that you may use to simplify your use of curl. 

Your program should permit the user to enter text to be translated to morse code, or to enter dots and dashes to be translated to text. A dot is represented by the period (.) and a dash is represented by the hyphen (­). Separate words by spaces.

Musts: How to get more than ZERO

? Compile, with no errors using ­ansi ­Wall ­pedantic (on the raspberry pi (raspbian))

? Run and take both types of user input without crashing

The Basics: The first 80%

You can get 80% on this assignment by just following the instructions. If you meet each of the expectations listed, you should get most or all of the 80 marks allocated to basic functionality.  

Expectations for your Program

? The user can choose to enter text or morse code (up to 200 characters)

? The program loops until the user asks to quit

? Allow the user to see previous results (keep a history)

? When taking morse code input, prevent all input that is not a dot, dash or space

? The user interface is intuitive and pleasant to use (may use ncurses) and does not leave the user with a cluttered, confusing screen.

? The website used may be hardcoded, you do not have to let the user choose the translation service.

? The program gives correct translations.

 

Expectations for your Code

? Use the curl library (you may use the curl utility that is provided with the assignment algorithm files)

? Separate functions and main into different source files

? Root assignment folder has src/ include/ doc/ and bin/ subdirectories that are used properly. If needed use lib/ and assets/ subdirectories as well.

? make correct use of dynamic memory (including freeing pointers)

? dynamically allocate arrays and strings to be the correct length for the input

?Source code is divided properly into .c and .h files with required headers in .cfile (see the policies document)

? Source code is consistently indented using spaces

? Comments about function parameters and return values purpose are present (ideally in .h files). Comments about algorithm logic are in .c files

? Variable and function names are meaningful and are in camelCase

? Program compiles with a makefile that places the executable in the bin/ folder

Things you will need to know

? The basics of International Morse Code (https://morsecode.scphillips.com/morse2.html)

? The structure of an html document (so you can parse through the returned result)

? Dynamic Arrays

? Array processing and/or string.h library functions

? malloc and free

? How to use git to clone, commit, push

? How to write a simple makefile

? How to place files in folders

 

Enhancements: How to get the last 20%

The final 20% of the marks for this assignment are earned by showing that you have mastered the programming constructs and that you are an adept problem solver. You do not need to do all of the following to get graded on the last 20% of the assignment, but you do need to demonstrate (verbally when we grade you) that you have a solid understanding of how to approach them all and you need to have done at least one of these enhancements really well, or two of them to a functional­but­not­perfect level. Some of the enhancements are harder than others.

? Morse code is primarily intended to be heard. Add functionality to your program so that when text is translated to morse code, the user can hear the morse  code through speakers

? Use an LED/resistor set and the GPIO pins on the pi to visually display themorse code when english is translated to morse code. Judi has some LED/resistor sets you can purchase or you can build your own by following these instructions (https://www.thirdeyevis.com/pi-page-2.php). Our TA (Bill) has a C library you can use to simplify GPIO interaction. Youll need to ask us for it if you want it.

? Use a parsing library to parse the HTML instead of writing your own special purpose parser. Be sure to include the library files in your submission and to write your makefile to look in the lib/ folder for your library

Deliverables: Things you must hand in

1. (via git) The assignment files are in a subdirectory of your coursework repository. The subdirectory must be called A2 (capitalization is important)

2. A plain text file called README is in the root folder of the assignment (A2). It contains information about running and using your program as well as any known limitations of the program.

3. You have a makefile that will compile your code and place the executable in the bin subfolder. The makefile is in the root directory of the assignment. The makefile should not run your program.

4. Information about how you tested your program is in the testing document

5. Your reference list is in the doc subfolder

Reference no: EM1334569

Questions Cloud

Responsible for staying abreast of staffing trends : Staffing Trends - Human resources professionals are responsible for staying abreast of staffing trends.
Illustrate what are the effects of the current tax policy : Illustrate what are the effects of the current tax policy on US businesses in the short-run and in the long-run.
Wage and benefit issues : Why do employees today place such a high priority on paid time off and Do you feel that companies are fair in their offerings for vacation/personl/sick time? Why or why not?
What is the concurrency control and what is its objective : What is the role of a database management system (DBMS) and what are its benefits.
C assignment of curl library : C Assignment Curl library must be used To be done on linux, it should be compiled using the following command: gcc -Wall -ansi -pedantic NameOfFile.c -lncurses Please make sure it is commented with clarification Variable names in camel case
Illustrate what are institutional arrangements : Illustrate what are institutional arrangements. Why are they considered important fundamental determinants of economic growth and development.
Observe the decision making processes : How can I investigate and observe the decision making processes in a telecom vendor such as Motorola and Cisco?
Explain marketing mix- promotion : Explain Marketing Mix- Promotion and compare and contrast the two promotion strategies explaining why you think they would be similar or different
Minimum two aspects of quattro pro with excel : As a result of your work on the high school reunion project, you decide to learn more about Excel and the various  uses of spreadsheet applications.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Construct vector and linked lists data structures

You will prepare sorted versions of the Linked Lists and Vector data structures developed in class

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

  Insert the missing code in the c program

You are to insert the missing code in the C program given for combinational equivalence checking. This program will interface with the CUDD package and will parse netlist files in ISCAS85 circuit format. Next, BDDs will be created for each circuit an..

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Problems on oops

Problems on OOPS

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd