subject

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.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
The “rule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
Each row in a database is a set of unique information called a(n) ? a.) table. b.) record. c.) object. d.) field.
Answers: 2
You know the right answer?
Programs in C using gcc compilerProgram 1Content of the programRead your name from argc argv - minim...
Questions
question
History, 05.03.2021 22:50
question
Mathematics, 05.03.2021 22:50
question
Mathematics, 05.03.2021 22:50
question
Law, 05.03.2021 22:50
question
Mathematics, 05.03.2021 22:50
Questions on the website: 13722363