Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A bank gives an interest of 2 % per annum on deposits. However, on deposits above $ 5 0 0 0 , it offers 3
A bank gives an interest of per annum on deposits. However, on deposits above $ it offers interest. What lines of code In C would we need to complete the following program that would, given a deposit, dec, between $ and $ calculate the interest of d in a year?
#include
int main
double dep, interest;
printfEnter the deposit: ;
scanff &dep;
THERE ARE EMPTY LINES HERE
printfdeposit f and Interest f
dep, interest;
return ;
Step 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