Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

C can anyone come up with the shortest solutions for these problems? all solutions are welcomed, guys im a newbie

nate nar

New Coder
Write a program to accept one string, after that:

Convert all characters to upper-case letter and display the new string

Count the number of characters that are changed from lower-case to upper-case and displays this value.

Calculate the average of all characters in the new string with their ASCII codes

(example: ABCs -> ASCII codes are 65,66,67-> the average is (65+66+67)/3=66)

Find in the old string the sub-string “Aa” and display the first position of sub-string in the old string. If the is no such string, display “there is not “Aa” in the string”

Count the times that each character appears in the string and display them

The program must be divided into 6 modules which do the followings:

Accept one string from user’s input.

Convert the string to upper-case

Count the number of characters that is changed from lower-case to upper-case

Calculate the average of all characters in the new string with their ASCII codes and return the float number format.

Find the sub-string “Aa”

Count the times that each character appear

Write main function to call all functions above.
 
Write a program to accept one string, after that:

Convert all characters to upper-case letter and display the new string

Count the number of characters that are changed from lower-case to upper-case and displays this value.

Calculate the average of all characters in the new string with their ASCII codes

(example: ABCs -> ASCII codes are 65,66,67-> the average is (65+66+67)/3=66)

Find in the old string the sub-string “Aa” and display the first position of sub-string in the old string. If the is no such string, display “there is not “Aa” in the string”

Count the times that each character appears in the string and display them

The program must be divided into 6 modules which do the followings:

Accept one string from user’s input.

Convert the string to upper-case

Count the number of characters that is changed from lower-case to upper-case

Calculate the average of all characters in the new string with their ASCII codes and return the float number format.

Find the sub-string “Aa”

Count the times that each character appear

Write main function to call all functions above.
Hi there,

This sounds like an assignment lol. Did you get started on this assignment and get stuck?
 
Back
Top Bottom