Write program which inputs sequence of digits from data file

Assignment Help C/C++ Programming
Reference no: EM132113117

Question: Write a program which inputs sequences of digits (one sequence per line with no spaces between the digits) from the data file DigitSeq.txt. You can assume that a previous program has validated the data to make sure that each sequence consists only of valid digits. Print the input sequence to the screen or to a file, then print the value of what you calculate the check digit should be. Then print VALID or INVALID to indicate whether the check digit is correct or not. The digit sequences may be of different lengths, but you may assume that there will be no sequence longer than 20 characters.

Requirements: 1) The sequence must be stored and manipulated as an array or string.

2) You must use at least 3 functions in addition to main. Some suggestions:

• input the sequence,

• convert a character into an integer,

• do step 1 calculations,

• do step 2 calculations,

• do step 3 calculations,

• determine the correct check digit (this function could call the previous three functions) and return the calculated check digit.

3) At least one function must return a value with a return statement, at least one function must have a value parameter, and at least one function must have a reference parameter.

4) I recommend printing the results of your calculations so that you can code a little at a time and make sure that what you've coded so far is correct. This will also make is easier for me to figure out where you went wrong if an answer is not correct.

Information related to above question is enclosed below:

Attachment:- Pgm1CheckDigits-reviewofarrays.rar

Reference no: EM132113117

Questions Cloud

What the consequence of Waldmart Ltd and its director : BLO 2205 CORPORATE LAW ASSIGNMENT, VICTORIA UNIVERSITY, AUSTRALIA. What will be the consequence of Waldmart Ltd and its director
What is technology transfer : 1. What is technology transfer? 2. What is the difference between Basic, Product and Engineering R&D?
Write a program to meet the specifications : For this week's assignment, build on the Week Four Individual Assignment, "Error Handling," by reading the software developers' C# data structure records data.
What is corporate governance : 1. What is corporate governance? 2. What is the job of the board of directors?
Write program which inputs sequence of digits from data file : Write a program which inputs sequences of digits (one sequence per line with no spaces between the digits) from the data file DigitSeq.txt.
The relationship between business operations and csr at bp : Does the organization consider CSR as obligatory or do they seek opportunities for CSR? In other words, is the organization reactive or proactive?
Describe at least two pieces of jkl industries : Describe at least two pieces of JKL Industries' policy or procedure that conflict with the team's behaviour towards the employee.
Confidence among the teams and overall organisation : JKL Industries values the important principles of trust and confidence among the teams and overall organisation
Comment on jacks approach to order promising : Comment on Jack's approach to order promising. What are the advantages? The disadvantages? How would formal master scheduling improve this process?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd