function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venkateswarlu yanamalavenkateswarlu yanamala 

write an apex program,to calculate the bill Amount based on the quantity and unitprice

PriyaPriya (Salesforce Developers) 

Hi Venkateshwarlu,

Can you also provide the object names and field name where qunaity and unitprice are stored ?

Regards,

Priya Ranjan

Suraj Tripathi 47Suraj Tripathi 47
Hi venkateswarlu,
 
class BillAmount{
    public static void BillAmt(Integer quantity,decimal unitprice){
        
    decimal BillValue=quantity * unitPrice;
    System.debug('Billvalue'+BillValue);
    }
}


For Running This Code 
ctrl+e;
BillAmount.BillAmt(2,45.4);
then click execute.
if you find your answer then mark as the best answer.

thanks and Regards,
Suraj Tripathi.
venkateswarlu yanamalavenkateswarlu yanamala
ok thanks brother, giving this information
venky velvetvenky velvet
2 plates idle 
price 30