Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 4, Problem 17RQ

Which of the following C# expressions means, "If itemNumber is not 8 or 9, add TAX to price"?

  1. If(itemNumber !=8 || itemNumber !=9)
  2. price = price + Tax;

  3. If(itemNumber ! = 8 && itemNumber ! =9)
  4. price = price + Tax;

  5. If(itemNumber ! = 8 && ! = 9)
  6. price = price + Tax;

  7. Two of these

Blurred answer
Students have asked these similar questions
Using c++ write the function to find if target is visible to the camera, you may create and use helper functions. struct Vec3{   float x, y, z;};struct Quaternion{   float x, y, z, w;};struct AABB{   Vec3 min, max;};struct SFrustum{// code here};struct SCamera{   Vec3 position;   Quaternion rotation;   SFrustum relativeFrustum;}; // Function that returns true if target position is visiblebool IsVisible(const SCamera& camera, const Vec3& targetPosition, const AABB*   obstacles, size_t numObstacles){// Answer here}
Write a C++ program for STC company , that asks the user to enter his "Neqaty" points and his invoice value ,then display the updated invoice value according to the following condition: Neqaty points Bonus Less than 400 points -50 SA Between 400 and 899 points -200 SR Greater than 900 SR -500 SR Example: Enter your Neqaty points: 350 Enter your invoice value : 755 Your updated invoice value is: 705 SR.
please edit the code below to add a condition to your function . If the number of hours exceeds 40 hours then assign a 5% bonus to the wage, if it's between 30-40 assign 3% bonus to the wage. <?php   function calculateWage($hours, $wage) { $wage = $hours * $wage; return $wage; }   if ($_SERVER["REQUEST_METHOD"] == "POST") { $hours = $_POST['hours']; $wage = $_POST['wage'];   // call the calculateWage function to get the wage $wage = calculateWage($hours, $wage);   // print the result message echo "Your wage is: $" . number_format($wage, 2);   // repopulate the form fields with the input values $hours = isset($_POST['hours']) ? htmlspecialchars($_POST['hours']) : ''; $wage = isset($_POST['wage']) ? htmlspecialchars($_POST['wage']) : ''; } else { // set default values for the form fields $hours = ''; $wage = ''; }   ?>   <form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>"> <label for="hours">Number of Hours Worked:</label>…

Chapter 4 Solutions

Microsoft Visual C#

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Control Structure in Data Structure - Data Structures - Computer Science Class 12; Author: Ekeeda;https://www.youtube.com/watch?v=9FTw2pXLhv4;License: Standard YouTube License, CC-BY