您的位置: 首页 > 科技

menu-based program编程代做

2024-04-07 来源:互联网


Programming Assignment 5
In-class portion:
Create a menu-based program with the following options1. Request a string from the user. This string may contain any symbol but will be limited to a
length of 50 characters.
2. Convert the string to lower case.
3. Remove all non-alphabetic characters(keep only a-z or A-Z).
4. Determine if the string is a palindrome(the same forwards and backwards).
5. Print the current string.
6. Exit the program.
If the user enters something other than 1-6 during the menu, the program should display an error
message.
The menu and options 1, 5, and 6 will be developed in class. The rest of the assignment will be to
implement the functionality for options 2, 3, and 4.
Each option that handles the string will require the offset of the string to be passed to that
procedure. When a procedure that mutates the string is called, these changes should be reflected
in the original string.
Example: The user inputs the string “ab%$ BA”
After option 2 the string will become: “ab%$ ba”
After option 3 the string will become: “abba”
Option 4 should print that the string “abba” is a palindrome.
Irvine library functions to copy, compare, clear, or convert a string to lowercase are not allowed for
this program. You must develop your own functions. You may use the Irvine functions for ReadString
and WriteString.
You must use the code provided, your submission should only finish the procedures that are
incomplete and insert the necessary calls to those procedures in main. As always, sufficient

请加QQ:99515681  邮箱:99515681@qq.com   WX:codinghelp
 

08-17 Instagram全自动引流助手,ins精准营销工具,ig高效引流,ins全参协议号
Instagram全自动引流助手,ins精准营销工具,ig高效引流,ins全参协议号
这款Instagram营销软件是一种多功能的工具,能够满足现代社交媒体 [详细]
09-24 Instagram引流工具/ins私信群发助手全面私信引流/ig群发工具
Instagram引流工具/ins私信群发助手全面私信引流/ig群发工具
这款Instagram营销软件是一种多功能的工具,能够满足现代社交媒体 [详细]
09-14 WhatsApp初级筛选器,ws精准工具,ws高级群发助手,精准引流
WhatsApp初级筛选器,ws精准工具,ws高级群发助手,精准引流
WhatsApp初高级筛选器以其卓越的性能和丰富的功能,成为用户筛选领 [详细]
04-29 中科视语亮相2024中关村论坛,共论大模型驱动行业创新与发展
中科视语亮相2024中关村论坛,共论大模型驱动行业创新与发展
2024中关村论坛在北京盛大开幕,作为本次平行论坛之一的“行业大模 [详细]