Answered step by step
Verified Expert Solution
Link Copied!

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 2% per annum on deposits. However, on deposits above $5000, it offers 3% interest. What lines of code (In C) would we need to complete the following program that would, given a deposit, dec, between $0 and $10000, calculate the interest of d in a year?
#include
int main(){
double dep, interest;
printf("Enter the deposit: ");
scanf("%f", &dep);
THERE ARE 4 EMPTY LINES HERE
printf("deposit =%f and Interest =%f
", dep, interest);
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

Synthesis

Answered: 1 week ago

Question

Q.1. Taxonomic classification of peafowl, Tiger and cow ?

Answered: 1 week ago

Question

Q .1. Different ways of testing the present adulterants ?

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago

Question

7. Discuss the key features of the learning organization.

Answered: 1 week ago