ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 09 May 2017 My Price 9.00

CS1325 – F16Homework #5-2Assigned

I need to have this done in about 3 hours. Could anyone do this for me? If there's a way to tip more than the 20%, let me know and I will do so.

 

 

CS1325 – F16Homework #5-2Assigned Nov 1, due Nov 8 at 11:59 PMThis homework assignment gives you the opportunity to practice pointer notations, string manipulationand the principle of least privilege.HW5-2 (Graded out of 100)Write a program that prompts the user to input a string of characters, then converts each character ofthat string as follows:If the character is a lower case letter (‘a’ to ‘z’), convert that character to the corresponding upper caseletter (‘a’ is converted to ‘A’, etc.)If the character is anything different from a lower case letter (for example, an upper case letter or acharacter which is not a letter, such as @, etc.), the character is unchangedThe converted character is put into another string, which is printed by your program, along with theoriginal string.Additional requirements – Make sure you meet all the requirements to avoid losing points1.Follow the requirements in the “Homework Notes”.2.You can assume the arrays storing the strings are of size 11. Your program should use theappropriate conversion specifier inscanfto limit the number of characters read so as not tooverflow the array, no matter how many characters the user types.3.Throughout the program you are not allowed to use the array subscripting notation (array_name[i]notation), except when you define the arrays. Themain()function must use the “pointer offsetnotation on array name” or “pointer offset notation with another pointer”.4.Your program must implement the principle of least privilege by using theconstqualifiers whereappropriate.5.In addition, you will need to write the following functions besidesmain().Must use prototypes forall the functions.a)getString functionThis function takes as parameter a pointer to a char, prompts the user to input the string, and storesthe string into the location pointed at by the pointer, by usingscanf.main()calls this functionby providing an array as argument.void getString(___ char *___); // prototype.You have to determine if theblanks should be filled with the const qualifier, if any, to meet the principle of least privilegeb)conversion determination functionThis function takes as argument a character, determines whether the character should beconverted, and returnstrueif the character should be converted,falseif the character shouldnot be converted. The determination is based on whether the character is a lower case letter or not.You are not allowed to use any existing C library function to determine if the character is a lower

Answers

(11)
Status NEW Posted 09 May 2017 05:05 AM My Price 9.00

-----------

Not Rated(0)