Question

I need a flow chart for this, please do not write in cursive. so i can...

I need a flow chart for this, please do not write in cursive. so i can read it please

Algorithm for the Program:

1.Start reading the character c till the while loop ends.

2.Write the condition if the given is not character,Stops the program.

3.Call the function ischar() to determine if letter is character or not.

4.In the function check smaller case alphabet and return ASCII index of c-'a'+1.

5.If not,check bigger case alphabet and return ASCII index of c-'A'+1.

6.If nothing return -1 to result.

7.If result is not -1,print letter and ASCII index of alphabet else print that character.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Main Method

IsChar(C) Method

Add a comment
Know the answer?
Add Answer to:
I need a flow chart for this, please do not write in cursive. so i can...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • u also need to store the letters' ASCII number in the freq array 4. [8] Write...

    u also need to store the letters' ASCII number in the freq array 4. [8] Write a C function with prototype · void letter_freq(const char word[], int freq []); This function computes the number of appearances of each letter in the string word and stores them in array freq of size 26. The letters are the 26 letters of the Latin alphabet whose ASCII values are in the range 97-122 for the lower case letters, and in the range 65-90...

  • I need help programming this program in C. 1.) Write a program that reads a message,...

    I need help programming this program in C. 1.) Write a program that reads a message, then checks whether it's a palindrome (the letters in the message are the same from left to right as from right to left), example is shown below: Enter a message: He lived as a devil, eh? Palindrome Enter a message: Madam, I am Adam. Not a Palindrome 2.) Ignore all characters that aren't letters. Use integer variables to keep track of positions in the...

  • 4. [8] Write a C function with prototype void letter_freq(const char wordll, int freaq ); This...

    4. [8] Write a C function with prototype void letter_freq(const char wordll, int freaq ); This function computes the number of appearances of each letter in the string word and stores them irn array freq of size 26. The letters are the 26 letters of the Latin alphabet whose ASCII values are in the range 97-122 for the lower case letters, and in the range 65-90 for the uppercase letters. You must account for uppercase and lowercase letter variants, which...

  • I need eclipse code for : Write a program that analyzes text written in the console...

    I need eclipse code for : Write a program that analyzes text written in the console by counting the number of times each of the 26 letters in the alphabet occurs. Uppercase and lowercase letters should be counted together (for example, both ‘A’ and ‘a’ should count as an A). Any characters that are not letters should be ignored. You must prompt the user to enter the text to be analyzed. Then, for any letter that appeared at least once...

  • Can I please get some assistance on this? 1. Write a program to test the correctness...

    Can I please get some assistance on this? 1. Write a program to test the correctness of a password according to some rules. If the password is not valid, print messages showing what's wrong with the password. Partial program output should look like this: Please enter a password. It must be at least 8 characters long and contain at least 2 alpha characters, at least one upper case and one lower case, at least 1 numbers, and at least 1...

  • i need python code, thank you very much! characters) and prints ) 3. Write function, smallestCharacterLargerThan(keyChar,...

    i need python code, thank you very much! characters) and prints ) 3. Write function, smallestCharacterLargerThan(keyChar, inputString) that takes as input key character, keyChar, and a string of one or more letters (and no other the "smallest" character in the string that is larger than keyChar, where one character is smaller than another if it occurs earlier in the alphabet (thus 'C is smaller than 'y' and both are larger than 'B') and 2) the index of the final occurrence...

  • Please do not write in cursive, as I cannot read cursive. Please explain how you got...

    Please do not write in cursive, as I cannot read cursive. Please explain how you got the answers and show the work. Thank you very much in-too An does not? 1) Could there be a sequence {an}= {f (n)} such that limita—700 f (x) exists, but limit 2) Could limit noo An exists but not for limitx-700 f(x) 3) Discuss your options , you can give an example to enhance your reasoning.

  • please don't write in Cursive as i cant read it. And please write it in a...

    please don't write in Cursive as i cant read it. And please write it in a clear handwritting. NO CURSIVE please 8. Given the polar equation r = 1 + cos (30) (a) Sketch the curve. (b) Find the area enclosed by the curve. (c) Set up the integral for the arc length of the curve with 0 <0s (d) Find the equation for the line tangent to the curve at 0 = 2 Show all work. (5 points) (10...

  • Please answer number 5 CS500 Programming Problems Create a subdirectory of your home directory named sep16...

    Please answer number 5 CS500 Programming Problems Create a subdirectory of your home directory named sep16 (note the case). Save your solutions in that directory in files named pl.c, p2.c, p3.c, p4. c, and p5. c. Your programs are due Friday September 16 at 4:00PM. You will not receive any credit if your programs are late, have the wrong filename, or are in the wrong directory. 1. Write a C program that reads stdin one character at a time and...

  • please I need help with the question: Problem: Write a C++ program that reads each character...

    please I need help with the question: Problem: Write a C++ program that reads each character from a user input, extracts the character if it is a digit, and calculates the sum of all the digits. The program stops reading the user input when the new line character ‘\n’ is encountered. For the output of the program, you should print each digit extracted from the user input and the sum of all the digits. (*The main difference between “cin >>...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT