[SOLVED] CSC3320 Lab Assignment 7 - Post-Lab

24.99 $

Category: Tags: , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab-07-intipi.zip (372.2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Purpose: Learn how to get input and print out formatted results using scanf and printf separately in C.
Part 1:
1) Write a C program named as getPhoneNumber.c that prompts the user to enter a telephone number in the form (999)999-9999 and then displays the number in the form 999-999-999:
Enter phone number [(999)999-9999]: (404)123-4567
You entered 404-123-4567
Question: Execute your getPhoneNumber.c and attach a screenshot of the output. Then write the source code of getPhoneNumber.c in your answer sheet and upload your file getPhoneNumber.c to googleClassroom.
2) Write a program named as calcPrice.c that formats product information entered by the user and calculate the total amount of purchase.
Enter item number:583
Enter unit price:13.5
Enter quantity:2
Part 2: (Optional)
Note : This part is not for grading. But you will get some feedback. Can you write a shell script to finish the same task as in question 1) of Part 1?
Submssion:
• Please follow the instructions below step by step, and then write a report by answering the questions and upload the report (named as
Lab7_FirstNameLastName.pdf or Lab7_FirstNameLastName.doc) to Google Classroom, under the rubric Lab 7 Out-of-lab Assignment. • Upload files getPhoneNumber.c and calcPrice.c to the rubric named “Lab7” of the classroom. Note: if you do not upload the C files you would get zero for this assignment.
• Please add the lab assignment NUMBER and your NAME at the top of your
file sheet.

  • Lab-07-intipi.zip