Question: Lab 1: Using Different Data Types |Dnce you are done with your program, zip it and upload it to eCentennial under Assessments f Assignment f

 Lab 1: Using Different Data Types |Dnce you are done with

Lab 1: Using Different Data Types |Dnce you are done with your program, zip it and upload it to eCentennial under Assessments f Assignment f Lab 1 The objective of this lab is to read and display native data types like int, double, haul and string. Please note that the problem might not have an intelligent business purpose, but all that is necessary is to for you to read from user input from the keyboard and display program output tn the console. You MUST use string interpolation expression 5 and where necessary format specifier, like "C\" for currency. Problem: Adult ticket cost $3.15 and child ticket cost $2.25. Write a program to prompt the user for the amount of adult and child ticket that she needs. The program will display a userfriendly message of the number of tickets brought as well as the total cost. {Use the "C" formatstring for currency}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!