Computers and Technology

Programs in C using gcc compilerProgram 1Content of the programRead your name from argc argv - minimum two words, max 4 words. Check for errors on number of words. Put your full name on an array. Count how many characters (letters) in your name are repeated, and how many times they are repeated .Your output should display your name followed by a list of each unique letter and how many times it occurs in your name. For example: Carlos Alonsoc - 1, a - 2, r - 1, l - 2, o - 3, s - 2, n - 1Program 2Similar to program 1 arrayname2.c but get your 2-4 word name from using fgets after prompt to user. Check for errors - more than 4 words or less than 2 words. Put the full name on array. Check name does not contain a number (e. g. use isdigit function from ctypes).Display full name followed by display the length of the full string. On separate lines, display each word individually (by moving each word to a separate array), followed by its length. Program 3Create program funcact. c - for function activity - main programYou will also need a encodecode. c for a subroutine callYou will need an encode. h to include the subroutine name in main program. The main program will read a sentence (max 80 characters) using fgets from the console, and a number from 1-5.The main program is going to encode that sentence by shifting each letter forward using the alphabet order by the number entered. This is done by calling the "encode" function. The main program is going to display the encoded sentence. Program 4Similar to Program 1 except funcact2.c will use the encoded sentence and number and call "decode" function to restore the original sentence. The "decode" function will also live in the same encodecode. c fileIn this case, decode is going to shift backward the found letters by the number entered. Main should call decode and get back the original sentence.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:00, nika0001
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
image
Computers and Technology, 23.06.2019 11:50, itaheart101
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
image
Computers and Technology, 24.06.2019 23:00, amandajennings01
Why is it preferable to code web pages in html format? a. to create more lines code b. to apply general formatting rules c. to display properly as search results in all browsers d. to add meaning to the document
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, shawnball8571
In contrast to data in a database data in a data warehouse is described as subject oriented
Answers: 2
Do you know the correct answer?
Programs in C using gcc compilerProgram 1Content of the programRead your name from argc argv - minim...

Questions in other subjects:

Konu
World Languages, 05.11.2020 18:10
Konu
Mathematics, 05.11.2020 18:10
Konu
Mathematics, 05.11.2020 18:10