Question: c programming Score Part I. Fundament of Programming (50 Points) 1. (10 Points) Write a program to input your student number as an integer and
Score Part I. Fundament of Programming (50 Points) 1. (10 Points) Write a program to input your student number as an integer and print the welcome message. [Sample Input) 20029001 [Sample Output) Dear 20029001, Welcome to UPC! 2. (10 Points) A cloth showroom has announced the following seasonal discounts on purchase of items: Total price Discount 1-200 10% 201-300 20% Above 300 30% Write a program to compute the net amount to be paid(with 2 decimal digits). [Sample input) 253 [Sample output) 202.40 3. (15 Points) Write a C program to calculate the factorial of a given number n(defined as double). [Sample input) [Sample output) 5! - 120
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
