Answer:
using System;
public class Test
{
public static void Main()
{
// your code goes here
Console.Write("\nEnter the total bill : ");
double totalbeforetax = Convert.ToDouble(Console.ReadLine());
Console.Write("\nEnter the tip percentage(10% or 15%) : ");
double tip = Convert.ToDouble(Console.ReadLine());
double totalwithtax = totalbeforetax*(1+0.09);
double tipamount = tip*totalwithtax/100;
double total = totalwithtax + tipamount;
Console.WriteLine("\nTotal bill without tax: "+totalbeforetax);
Console.WriteLine("\nTotal bill with 9% tax: "+totalwithtax);
Console.WriteLine("\nTip Amount: "+tipamount);
Console.WriteLine("\nTotal bill with tax and tip: "+total);
}
}
Explanation:
Answer:
function createAndFillBufferObject(gl, data) {
var buffer_id;
// Create a buffer object
buffer_id = gl.createBuffer();
if (!buffer_id) {
out.displayError('Failed to create the buffer object for ' + model_name);
return null;
}
// Make the buffer object the active buffer.
gl.bindBuffer(gl.ARRAY_BUFFER, buffer_id);
// Upload the data for this buffer object to the GPU.
gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW);
return buffer_id;
}
You forgot to mention the language.
You can’t 646465465gfgrgrt
Visual perception and paying attention to the road ahead of you