Objectives
CS515
2
¨ Understand data representation
¤ number system: decimal and hex
¤ text and binary data
¨ Learn to use printf
Requirements
CS515
3
¨ Title: my_student_id
¨ Requirements
¤ Implement a program to print out your student id in
various format
¤ Usage: my_student_id
Sample Output
CS515
4
¨ Let’s say your student id is 12345js
$ my_student_id
decimal = 49 hex = 31 char = 1
decimal = 50 hex = 32 char = 2
decimal = 51 hex = 33 char = 3
decimal = 52 hex = 34 char = 4
decimal = 53 hex = 35 char = 5
decimal = 106 hex = 6a char = j
decimal = 115 hex = 73 char = s
Deliverables
CS515
5
¨ Deliverables
¤ Source code
¤ Test log
n A screen dump of your testing
1
Expert's answer
2016-05-23T11:56:16-0400
Dear g ram, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
#!/bin/bash echo "Enter Student Id:" read my_student_id printf "Student id is : $my_student_id \n" for (( i=1 ; i
Leave a comment