Question: 1. Write the code that displays the string 350Z in the carLabel when the car variable contains the string Nissan (entered using any case). 2.

1. Write the code that displays the string 350Z in the carLabel when the car variable contains the string Nissan (entered using any case).

2. Write the code that displays the string Reorder in the messageLabel when the quantity variables value is less than 10; otherwise, display the string Sucient quantity.

3. Write the code that assigns the number 25 to the bonus variable when the sales variables value is less than or equal to $500; otherwise, assign the number 40.

4. Write the code that assigns the number 100 to the shipping variable when the state variable contains the string Hawaii (entered using any case); otherwise, assign the number 65. 5. Write the code that assigns the number 15 to the reward variable when the state variable contains the string IL (entered using any case) and the sales variable contains a number that is greater than 2000; otherwise, assign the number 5.

6. Write the code to display the message Entry error in the msgLabel when the value in the Integer units variable is less than or equal to 0. Otherwise, calculate the total owed as follows: If the value stored in the units variable is less than 20, multiply the value by $10; otherwise, multiply it by $5. Store the total owed in the total variable.

I need help answering these questions in Visual Studio C# 2013. The answers are supposed to be just what code you would write to accomplish the said task. I am not very good at writing code and I really need help.

Thanks

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 Databases Questions!