商业通讯
请输入关键词
  • 首页
  • 资讯
  • 科技
  • 财商
  • 汽车
  • 家电
  • 生活
首页 > 科技

menu-based program编程代做

发布于:2024-04-07 11:02:50 来源:互联网


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
 

上一篇:满足AEC-Q200汽车级应用的国产电阻—富捷电子推出面向汽车领域的FRQ车规电阻

下一篇:全线高端 智能焕新,东软医疗强势亮相2024CMEF

热门文章

  • 福特电动车卖不动?只有一半汽车经纪明年想卖纯电动车

    2023-12-23
  • 春节将至,河南致信返乡人员:期盼你们返乡创业就业,在外学到的知识带回来,献计献策!

    2024-01-12
  • 新政落地后首周北京二手房日均成交量上涨11%

    2023-12-23
  • 独行侠首节44分!兰德尔:欧文定下了基调 我们的防守没存在感

    2024-01-12
  • 周口城投城市运营丨聚焦城市发展 彰显国企担当

    2023-12-23
  • 东芝退市折射日企创新困局

    2023-12-23

本站部分文字及图片均来自于网络,如有侵权请及时联系删除处理

Copyright ©2023-2024 商业通讯.Powered by © hubeizhichuang.com