subject

Both the hot dog price and sales tax rate may contain decimal amounts, so they should be declared as type double constants. in visual basic, a constant is denoted by the keyword const. by convention, constant names are usually written in all upper case, with underscores to separate words. you also have to assign the value to a constant at the time you declare it (because, by definition, the value of a constant cannot be changed).

for example, the declaration of a constant double representing an delivery charge rate of 3.5% could look like this in visual basic:

const dbl_delivery_charge_rate as double = 0.035
write statements to declare and initializing constants for:

a sales tax rate of 7%: [type your answer here]

the price of a dronedogs hot dog at $1.99: [type your answer here]

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 22.06.2019 12:30
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
You know the right answer?
Both the hot dog price and sales tax rate may contain decimal amounts, so they should be declared as...
Questions
question
Mathematics, 18.12.2020 04:50
question
Mathematics, 18.12.2020 04:50
question
Social Studies, 18.12.2020 04:50
Questions on the website: 13722367