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

Concept explainers

Question
Book Icon
Chapter 4, Problem 19RQ
Program Plan Intro

To find expression from the given expression which hasa condition, that the value of itemNumber is 5 and the value of zoneis 1 or 3 and price after adding tax.

Blurred answer
Students have asked these similar questions
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.
Write a set of functions that calculate the cost of movie tickets for a family. These functions should use a pass-by-reference variable that accesses the double running_total variable in main().  Using a loop, keep displaying  the ticket prices for each age group: Something like: Model Hall Movie Ticket Box Office Under Age 3 (free) Ages 3-11 ($10.25) Ages 12-54 ($15.50) Age 55 or older ($12) If 4 tickets are purchased (not counting under age 3) then 20% discount Within the loop: Keep asking the user to input the moviegoer age and to enter a zero for the age when they are finished inputting all the family members. Also, within the loop: Keep a running_total that is output to the screenafter each age has been entered. This running_total should be accessed through the functions using apass-by-reference variable. Finally, after the looping is done:  Calculate the total cost, including a 7.5% sales tax, and output it to the screen.
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
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Oracle 12c: SQL
Computer Science
ISBN:9781305251038
Author:Joan Casteel
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning