Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code in C! thank you lots, will leave a like! For this assignment, we are going to have some fun hiding our full name

Please code in C! thank you lots, will leave a like!image text in transcribed

For this assignment, we are going to have some fun hiding our full name (first and last) in the middle of an array of 1808characters generated at random except those that belong to your full name. What to do? -Declare an array large enough to store your first name a single blank space and then your last name. Your full name must be input. (consider lower case only) -Every char of your name will be stored at a location in another array of size 1080 . The location is calculated to be a location equal to the ASCII of the char to be stored modulo its ranking in the alphabet plus a random number between 1 and 980 . After you store each character of your last name, you must then populate all other positions with a character generated at random from ASCII codes between 1 and 18QQ (note that you must avoid storing at position already used by the chars from your own name. -While storing the chars from your full name, and based on the formula above, you need to find your name back. Declare another array that will store the actual positions of the chars from your name. The number made up of all the positions will be the key to retrieve your name back. Control flow and modular design. -Code a separate function that input your full name into the related array. -Code another function that store the chars from your name into the array of 1800 entries based on the formula described above. -Code another function that populates the rest of the positions left empty based on the schema described above. -Code a function that displays the contents of the array of 1800 storing your name. -Code a function that prompts the user to enter the key to retrieving the full name. Do not forget that you need an extra array to store the key

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions