:Write a program that will calculate your electric bill. You are to input the number of ki burs (kwh) used in a 30 day billing period. lectricity costs 0.0672 TL per kwh for daytime, 0.1127 TL for peak time and 0.03679 ght time. state tax of 12% and a city tax of 4.5% are also added to the bill. IF the total of all perioc gger than 500 kWh, the the cost per kWh will be 0.2719 TL Vrite a program that accepts the number of hours used per period, ong with your Electricity Number (6 Digits), social ID number, zip code, telephone are

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
WEEK 4- EXERCISES
1: Write a program that will calculate your electric bill. You are to input the number of kilo-watt
hours (kwh) used in a 30 day billing period.
Electricity costs 0.0672 TL per kwh for daytime, 0.1127 TL for peak time and 0.03679 TL for
night time.
A state tax of 12% and a city tax of 4.5% are also added to the bill. IF the total of all periods are
bigger than 500 kWh, the the cost per kWh will be 0.2719 TL
Write a program that accepts the number of hours used per period,
along with your Electricity Number (6 Digits), social ID number, zip code, telephone area code
and telephone number.
The program is to print a display with the following layout:
Please enter your first letter of Name
Please enter your first letter of Surname
Please enter your Electricity Number
Please enter your Phone Area Code
Please enter your Phone Number
Please enter total day-time kW in a month
Please enter total peak-time kW in a month
Please enter total night-time kW in a month
:T
:0
: 1026897
: 322
: 2356897
: 56
: 68
: 98
//////// ELECTRICITY BILL ///////
T*******
0*******
Electricity Number
:1026897
Phone
: < 322 )
2356897
Day time usage total
= 11.0432
TL
Peak time usage total
= 27.8984
TL
Night time usage total
= 15.4742
TL
State Tax (12%) : 6.52989
TL
City Tax (4.5%) : 2.44871
TL
TOTAL
:
63.3944
TL
Devam etmek için bir tuşa basın
Transcribed Image Text:WEEK 4- EXERCISES 1: Write a program that will calculate your electric bill. You are to input the number of kilo-watt hours (kwh) used in a 30 day billing period. Electricity costs 0.0672 TL per kwh for daytime, 0.1127 TL for peak time and 0.03679 TL for night time. A state tax of 12% and a city tax of 4.5% are also added to the bill. IF the total of all periods are bigger than 500 kWh, the the cost per kWh will be 0.2719 TL Write a program that accepts the number of hours used per period, along with your Electricity Number (6 Digits), social ID number, zip code, telephone area code and telephone number. The program is to print a display with the following layout: Please enter your first letter of Name Please enter your first letter of Surname Please enter your Electricity Number Please enter your Phone Area Code Please enter your Phone Number Please enter total day-time kW in a month Please enter total peak-time kW in a month Please enter total night-time kW in a month :T :0 : 1026897 : 322 : 2356897 : 56 : 68 : 98 //////// ELECTRICITY BILL /////// T******* 0******* Electricity Number :1026897 Phone : < 322 ) 2356897 Day time usage total = 11.0432 TL Peak time usage total = 27.8984 TL Night time usage total = 15.4742 TL State Tax (12%) : 6.52989 TL City Tax (4.5%) : 2.44871 TL TOTAL : 63.3944 TL Devam etmek için bir tuşa basın
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY