Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What am I missing? That is giving me this error? 65 system. out.printin(The bill for a photo book is: +bi11) bill-photobook. computeBill (price,quantity):// here ve

What am I missing? That is giving me this error?
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
65 system. out.printin("The bill for a photo book is: "+bi11) bill-photobook. computeBill (price,quantity):// here ve are calling computeB111 systen. out.printin("The bill tor"+quantity* "photo book is: tbill): 67 70 //calling computeBill() 72 O Type here to search ip Save Close : 06 Cut ID Copy D Paste Undo Redo 86 Find Compile //Create billing Class Object with four overloaded computeBill() methods for a photo book store. import java.util.Scanner: public class Billing private static final double tax 0.085 6 float due 0: 8 //overload function computeBill) vith price of book and tax. 9 tloat computeBill(float price) 10 due+-price tax: due+ price: return due: 13 14) 15 16 overload tunction computeBillo vith the price ot book, tax, and number of books ordezed. 17 float computeBill(float price, int quantity) 18 price"-quantity; due+-price cax: due+-price return due: 20 21 23) 24 25 //overload function cosputeBillo vith the price ot book, in uantity, and coupon. 26 float conputebill (tloat price, int quantity, tloat coupon) plit210 m31Billing.java ct Language Level Help Save CloseCut Copy Paste Undo RedoFind Cor 25 Iloverload tunction computeBil1) vith the price ot book, in uantity, and coupon. 26 tloat computeBill(tloat price, int quantity, float coupon) 27 28 29 30 31 32 price* quantity; price--coupon: due+-price tax: due+-price: ceturn due: 34 35 I/overload funetion computeBill) tor price, int quantity, float coupon, float discount. 36 float coputeBill(tloat price, int quantity, cloat coupon, tloat discount) 37 I 38 price-quantity price--coupon; 40 price-sprice((.1.01) due+-price tax: due+ price: return due: 45 46 //mainosethod 47 public statie void sain(Stringt] args 48 49 50 51 float pzice,coupon, discount: int uantity: tloat bi11: onsole Compiler Output elabeDesktop14t210m31B411ng.ave [1ine: 74] thod computeBill(eloat, int, loat) in the ype Bi11ing is not applicable for the argunents (cloat, int, 11oa rrent document completed ype here to search Res Billing photobook nev Billing) system.out.printin("Enter price, Quantity, Coupon and Weekly Discount") 59 62 64 Systen. out.printin("The bill for"+quantity "photo book is:" +bill) billa

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

More Books

Students also viewed these Databases questions