Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C language Create a 12-digit student ID number that contains all of the registration-related data for a student. This number has four components: (1) The
C language
Create a 12-digit student ID number that contains all of the registration-related data for a student. This number has four components: (1) The year the student first enrolled at their school, (2) the program they are enrolled in, (3) the number of years needed to complete their program, and (4) a unique student identification number. Your program will accept as input the information necessary to assemble this 12-digit student ID number.
Problem: Create a 12-digit student ID number that contains all of the registration-related data for a student. This number has four components: (1) The year the student first enrolled at their school, (2) the program they are enrolled in, (3) the number of years needed to complete their program, and (4) a unique student identification number. Your program will accept as input the information necessary to assemble this 12-digit student ID number. T to The final two inputs are integers representing the desired digits to cut from the fully assembled number starting with 1 representing the digit in the ones place (100) through 12 representing the hundred billions place (1011). Display these desired digits following the student ID number. Additional Requirements: 1. Add the homework assignment header file to the top of your program. A description of your program will need to be included in the assignment header. This particular header can be added to your file by entering hhw while in command mode in vi. 2. Each of the example executions provided for your reference represents a single execution of the program. Your program must accept input and produce output exactly as demonstrated in the example executions, do not add any "bonus" features not demonstrated in the example executions. Your program will be tested with the data seen in the example executions and an unknown number of additional tests making use of meaningful data. 3. Revisit course standards as it relates what makes for good use of user-defined functions, what is acceptable to retain in the main function, and when passing parameters by address is appropriate. In many cases userdefined function use should result in a main function that only declares variables and makes function calls. 4. Course standards prohibit the use of programming concepts not yet introduced in lecture. For this assignment you can consider all material in the first four chapters of the book, notes, and lectures to be acceptable for use. - Any use of logical operators, relational operators, bool variables, or selection constructs is prohibited and would violate requirements of this assignment resulting in no credit being awarded for your effort. 5. A program MUST compile, be submitted through Vocareum as demonstrated during the first lab meeting of the semester, and submitted prior to the posted due date to be considered for credit. The C-file you submit must be named exactly: hw03.c Course Programming and Documentation Standards Reminders: - Use the course function header (vi shortcut : hfx while in command mode) for every user-defined function in your program. - List and comment all parameters to a function, one per line, in the course function header. - All function declarations will appear in the global declaration section of your program. - The user-defined function definitions will appear in your program after the ma in function. - Indent all code found within the main function exactly two spaces. - Place a single space between all operators and operands. - Comment all variables to the right of each declaration. Declare only one variable per line. - Maximize your use of symbolic/defined constants and minimize your use of literal constants. - Notice that several programs (see program 2-9 on pages 74-75) in the programming text use a single line comment to indicate the start of the local declaration and executable statement sections of the main function. - At no point during the semester should these two sections ever overlap. - Select meaningful identifiers (names) for all variables in your program. - Do not single (or double) space the entire program, use blank lines when appropriate. - There is no need to include example output with your submissionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started