Write a program that adds a check letter to an eight-digit number. The check letter should be computed as follows: Break the number up into 4 two-digit numbers. Add the four numbers together. Find the remainder after division by 26. The check letter is the letter in the alphabet that corresponds to the number just computed. (A=0, B=1, C=2, etc.) Use at least one function that returns a value when you write this program.
this is what i have so far
#include
#include<iostream> using namespace std; int main() { int temp, original; int first, second, third, fourth; cout<<"enter an 6 digit number"<<endl; cin>>original; temp=original/10000; first=original%10000; second=original%100; third=temp%1000; cout<<"the first number is "<<temp<<endl; cout<<"the second number is "<<first<<endl; cout<<"the third number is "<<second<<endl; return 0; }
|dw:1347911353426:dw|
Join our real-time social learning platform and learn together with your friends!