Write a C function named CalDeposit() that calculates the amount of deposit money that needs to be prepared by the home buyer: Computer Programming Assignment, APU, Malaysia

University Asia Pacific University (APU)
Subject Computer Programming

Question 1 

Write a C function named CalDeposit() that calculates the amount of deposit money that needs to be prepared by the home buyer. The function will receive the house price and return the deposit money. Below is the formula to calculate the deposit money:

deposit = 10% * house price

Question 2

State whether the followings are valid or invalid user-defined identifiers. If it is invalid, justify it.

  1. a six
  2. four_season
  3. 2You
  4. exit flag
  5. R$M

Question 3

Write a single C statement corresponding to each of the following tasks:

  1. Declare x and y as float variables with the values of 8 and 20 respectively.
  2. Print the value for variable volume in two floating points.
  3. Define a constant called POINT with a value of
  4. Print the message STAY SAFE!! on the terminal, the screen starts on a new line.
  5. Declare and initialize a double variable named salary.

Question 4

By using your own variable name, write a relational expression to express the following conditions:

  1. A person’s age is equal to 20
  2. A climate’s temperature is greater than 35.0
  3. The current month is 8 (August)
  4. A total is greater than 76 and less than 900
  5. A weight is greater than 40kg and a height is less than 6 feet

Question 5

Write a program that calculates the total cost for staying at the Royale Hotel. The calculation of the total cost is based on the room rate and the number of days to stay. 25% discount will be given to the users if they are staying more than 6 days.

Detail of the room rates are listed in Table:

Computer Programming

Stuck in Completing this Assignment and feeling stressed ? Take our Private Writing Services.

Get Help By Expert

Struggling to meet your essay submission deadline? Malaysiaassignmenthelp.com is here to help! Our PhD-qualified expert essay writers provide you with a 100% plagiarism and error-free document, fast - all at an affordable price point. Make sure you don't miss out on the many benefits our online assignment help can offer today!


Recent Solved Questions

Online Exam & Assignment Writing Services

11770+ Orders Delivered

5 Star Rating

Confidential & Secure Assignment Help For

Group Assignment Help

Online Exam -Test & Quiz

Cheapest Price Quote

Diploma & Certificate Levels

Semester & FYP Papers

Summative & Individual

GBA & Reflective

Last Minute Assistance

Sample Assignment Download

CBE699 Biopharmaceutical Technology UITM Assignment Sample Malaysia
CBE699 Biopharmaceutical Technology is an advanced course offered by Universiti Teknologi MARA (UiTM) that focuses on the principles and applications of biopharmaceuticals. This course is designed to provide students with…
CGE690 Final Year Project II UITM Assignment Sample Malaysia
CGE690 Final Year Project II at Universiti Teknologi MARA (UITM) aims to explore innovative approaches and cutting-edge control techniques to enhance efficiency and sustainability in energy management systems. This project…


Instant Paper Writing Services by Native Malaysia Writers

Plagiarism Free Solutions
100% Original Work
24*7 Online Assistance
Native PhD Experts
Hire a Writer Now

Get Assistance for Assignments, online Exam, and Projects Writing