menu-based program编程代做
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
标签:
热点文章
破冰雪见行动 保路畅暖民心 济宁高新区柳行街道崇文社区开展“铲冰行动”
三线小城里的世界第一 | 走进宁德时代
长江存储致态TiPro7000 SSD新固件升级体验:读写速度飙升 更稳了!
三大指数低开 航运板块领涨国航远洋涨超15%
惠普暗影精灵9出现黑屏问题!官方回应:免费检修
公募主动权益业绩前十收益超30%,近九成仍亏钱
济宁高新区柳行街道崇文社区开展黄河大集“岁寒情更浓,网格送温暖”走访慰问活动
商汤科技创始人汤晓鸥离世,所持20.63%股份动向受关注,业内人士:禁售期应无变化