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 06 Jun 2017 My Price 8.00

1ECE175 Computer Programming for Engineering

I need help writing the code for this homework assignment. It needs to fit all the requirements in this assignment in C coding.

 

1ECE175 Computer Programming for Engineering ApplicationsHomework Assignment 6Due Date: Tuesday March 8, 2016 11:59 PM, via D2LConventions:Name your C programs ashwxpy.cwherexcorresponds to the homework number andycorresponds to the problem number.Write comments to your programs. Programs with no comments will receive PARTIALcredit. For each program that you turn in, at least the following information should beincluded- Author:- Date created:- Brief (two lines) description of the program:Submission Instructions: Submit your .c files via D2L Dropbox.Problem 1 (35 pts): IMEI (International Mobile Equipment Identifier)Every mobile phone operating in wireless networks is characterized by auniqueidentifier of 15 digits, calledIMEI(https://en.wikipedia.org/wiki/International_Mobile_Station_Equipment_Identity)A method to check if the device is really made by the official manufacturer is to comparetheIMEI’s last digit, calledLuhn digit, with a check digit. If theLuhn digitis equal to thecheck digit, the device is most probably authentic. Otherwise, it is not authentic for sure.The check digit is calculated as follows:1) First, we calculate theSUMof thefirst IMEI’s 14 digitsbyaddinga) thedigits in the oddpositions (meaningeven indexfor the array in C)b) thedouble ofthedigits in the evenpositions. But if the double of the digit is atwo-digit number, we add each digit separately. For example, suppose that the valueof the digit is 8, its double is 16. We therefore add to theSUMthe result of 1+6 = 7(not 16).2) If the last digit of the calculated SUM is 0, that is the check digit.If not, we subtract thelast digit of the calculated SUM from 10 and that is the check digit.For example:let’s check the IMEI 357683036257378.Note: the last digit of the given IMEI above is8which is the Luhn digit.Apply the above algorithm (by hand) to thefirst 14 digits, we get3 + (2x5) +7 + (2x6) + 8 + (2x3) + 0 + (2x3) + 6 + (2x2) + 5+ (2x7) + 3+ (2x7)3 + (10) +7 + (12) + 8 + (6) + 0 + (6) + 6 + (4) + 5+ (14) + 3+ (14)3 + (1+0) +7 + (1+2) + 8 + (6) + 0 + (6) + 6 + (4) + 5+ (1+4) + 3+ (1+4)3 + (1) +7 + (3) + 8 + (6) + 0 + (6) + 6 + (4) + 5+ (5) + 3+ (5)= 62Then the check digit = 10 – 2 = 8.Since the check digit (=8) is equal to the Luhn digit (=8), this IMEI is valid.

Answers

(11)
Status NEW Posted 06 Jun 2017 03:06 AM My Price 8.00

-----------

Not Rated(0)