Looking for help with an assignment? Connect with an assignment Expert Now!

Distinguish between characters read from a file and EOF or WEOF. 

Distinguish between characters read from a file and EOF or WEOF. .

The current code (attached), developed by a junior developer, has several issues and is not functioning as expected. The desired functionality of the program is to allow a user to select from several choices on a menu. After the user selects the “Exit” option from the menu, the program will populate a password with ‘1’s and then display the value of the password. The program also captures a character so the screen can stay paused for review before exiting. Below are screenshots for successful program execution.

Unfortunately, not only are there security issues, the code you were provided doesn’t work as expected. For the first part of this exercise demonstrate your C developer environment is working properly. You can do this by running any of the sample C code applications.

Modify the C code in this example to make the desired functionality work properly. Demonstrate the code works properly through screen captures and describing what changes were made to fix the functionality issues.

Carefully, review the code and perform analysis as needed. Consider the following rules and recommendations and hints for items that you might want to review.

Note, that some rules and recommendations listed below may not be found as issues in the code.

 STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator.

 MSC24-C. Do not use deprecated or obsolescent functions.

 FIO34-C. Distinguish between characters read from a file and EOF or WEOF.

 MSC17-C. Finish every set of statements associated with a case label with a break statement.  MSC33-C. Do not pass invalid data to the asctime() function.

 MSC17-C. Finish every set of statements associated with a case label with a break statement.

 DCL20-C. Explicitly specify void when a function accepts no arguments.

 MEM30-C. Do not access freed memory.

You can use any C compiler you have access to.

  • attachment

    HW3code2Fix.c

Distinguish between characters read from a file and EOF or WEOF. 

Get a Quick Quote

Approximately 250 words
Total price (USD) $: 10.99

Pressed for time on your upcoming paper? We can help!

Bored with homework

Reviews from Clients who Ordered from Our Website

Client: 3425

Ive submitted over 30 assignments from this website and gotten an average of 3.8 G.P.A.

Client: 2516

Juggling school with family and work has always been hectic but this website made it easy to do my studies and work while raising my 3 year old girl.

Client: 3516

Great customer service and quality work delivered on time!

Client: 2718

Client: 7384

Client: 8291

Client: 162

Client: 827

They delivered a professional and well written Resume for me. Reccommend

Why Us?

Privacy

Your personal and payment details are safe with us. Our website uses secure encryption for all orders. We guarantee not to share your details with any third parties.

Flexible Pricing

We offer great discounts and flexible pricing tailored to your needs. Additionally, we provide offers for orders above 30 pages and returning customer.

Originality

Our Professional Team of Writers have great experience and writing techniques to provide you with Quality Non-plagiarized work.

Customer Support

Our Customer Support and Professional Team of Writers are always available to help you anytime. Our Team  of writers are also available to take care of your writing needs 24/7 Live Chat is available 24/7 

How it Works

Step1: Provide Instructions

 

Provide detailed instructions including deadline for your paper and any additional information

Step 2: Pay & Assign Writer

 

Complete payment through our safe checkout and wait for your order to be assigned to suitable writer

Final Step: Download & Review

 

Download & Review your paper. You may request revision if anything is not satisfactory and rate the writer.