I need a code summary for these problems
Sale Total
Create a Visual C# Windows Console Application that will prompt the user to enter what type of item they are purchasing, the quantity of the item, and the price for the item. Calculate the subtotal, the sales tax and the sales total (subtotal + sales tax) and output all 3 to the user. Assume that the sales tax for your application is 8.5% (create a constant to store this value and use the constant in your calculations).
Student Grade
Create a Visual C# Windows Console Application that will prompt the user to enter their first name, their last name, their student id number as well as their overall percentage grade for quizzes, participations, homeworks, midterm and final exam. Use the percentages from this class to calculate their final grade and output it as a percent.
//Solution 1
using static System.Console;
class SaleTotal
{
public static void Main(string[] args)
{
//constant
const double SALES_TAX = 0.085;//8.5%
string itemName;
int quantity;
double price;
Write("Item name: ");
itemName = ReadLine();
Write("Enter " + itemName + " qunatity: ");
quantity = int.Parse(ReadLine());
Write("Enter " + itemName + "'s price: ");
price = double.Parse(ReadLine());
//calculate subtotal
double subTotal = quantity * price;
double salesTax = SALES_TAX * subTotal;
double salesTotal = subTotal + salesTax;
//print
WriteLine("Sub Total: " + subTotal.ToString("C") + "\nSales Tax: "
+ salesTax.ToString("C")
+ "\nSales Total: " + salesTotal.ToString("C"));
//pause
ReadLine();
}
}
//output

//Solution 2
using static System.Console;
class SaleTotal
{
public static void Main(string[] args)
{
string firsName, lastName;
int id;
//overall percentage grade
double quizzes, participations, homeworks, midterm,
finalexam;
Write("Enter first name: ");
firsName = ReadLine();
Write("Enter last name: ");
lastName = ReadLine();
Write("Enter student id: ");
id = int.Parse(ReadLine());
Write("Enter quizzes percentage: ");
quizzes = double.Parse(ReadLine());
Write("Enter participations percentage: ");
participations = double.Parse(ReadLine());
Write("Enter midterm percentage: ");
midterm = double.Parse(ReadLine());
Write("Enter homeworks percentage: ");
homeworks = double.Parse(ReadLine());
Write("Enter finalexam percentage: ");
finalexam = double.Parse(ReadLine());
double finalGrade = (quizzes + participations + homeworks + midterm
+ finalexam) / 5;
WriteLine("Final grade: "+ finalGrade.ToString("F")+"%");
//pause
ReadLine();
}
}
//Output

//If you need any help regarding this solution...... please leave a comment...... thanks
I need a code summary for these problems Sale Total Create a Visual C# Windows Console...
I need help building code in python for this: Create a program that: Creates a sales receipt, displays the receipt entries and totals, and saves the receipt entries to a file Prompt the user to enter the Item Name Item Quantity Item Price Display the item name, the quantity, and item price, and the extended price (Item Quantity multiplied by Item Price) after the entry is made Save the item name, quantity, item price, and extended price to a file...
**This program is to be created using Visual Studio C#**Create as a Windows Form application** 1. Output a header in the console: "Program 1" 2. Next you will ask the user to enter three floats and read the values into variables. 3. Perform addition, multiplication, and division examples with the numbers entered. 4. Implicitly cast the floats into doubles. 5. Explicitly cast the floats into ints. 6. Use conversion methods to convert the floats into strings. 7. Ask the user...
PLEASE USE VISUAL BASIC* BY VISUAL STUDIO.
Visual Basic INTERMEDIATE Create a Windows Forms application. Use the following names for the project and solution, respectively: Chopkins Project and Chopkins Solution. Save the application in the VB2017\Chap03 folder. Change the form file's name to Main Form.vb. Change the form's name to frmMain. Create the interface shown in Figure 3-37. The interface contains six labels, three text boxes, and two buttons. The application calculates and displays the total number of packs ordered...
Java I: Create a Java program that will accept the price of an item and the quantity being purchased of that item. After accepting the input, calculate the amount of the purchase (based on the price and quantity), calculate the sales tax on the purchase, then output the product price, quantity, subtotal, sales tax, and the total sale based on the output format shown below. Structure your file name and class name on the following pattern: The first three letters...
Assignment Content You are now working for a department store, and your task is to create a point-of-sale application to allow customers to calculate the total cost of their sale, including taxes. Create a C++ program that does the following: Include the proper header and make sure you properly comment your program. Also, make sure you use proper coding conventions so your program runs and compiles correctly. Compress all your Microsoft® Visual Studio® source code files from the console application folder into a ZIP file. Submit your assignment. Calculates sales tax and total cost based on the type of purchased product using the following categories and tax percentages: Category 1 - Clothing: 6% Category 2 - Beauty products: 7% Category 3 - Grocery: 3% Category 4 - Gardening: 6% Category 5 - School supplies: 3% Category 6 - Tobacco products: 10% Creates an array to store the numbers users input and uses the switch statement to calculate the sales tax and final cost based on the category of the purchased product Prompts the user for category and price of the product Calculates and displays the final cost
(C++) I need to alter the code below to fit the given requirements. You will need to move the calculations to a function. A second function to return the Letter Grade. You will need to define a namespace to contain the CONST. Also, need to define an enum for letter grades: A, B, C, D, and F. Console Student Grade Calculation Form First Name: Larry Last Name: Hobbs Homework Average: 65 Midterm Grade: 90 Final Exam Grade: 75 Student: Larry...
Has to be written in C#!
Write a Windows Forms application that calculates and prints the
take-home pay for a commissioned sales employee. Allow the user to
enter values for the name of the employee and the sales amount for
the week. Employees receive 7% of the total sales. Federal tax rate
is 18%. Retirement contribution is 15%. Social Security tax rate is
9%. Use appropriate constants. Write Input, Display, and Calculate
methods. Your final output should display all calculated...
Need this program in C#.
Thank you
3/19 Lab11 PartC Dur Scenario/Summary Write a windows console application that holds data about an item in a retail store. Your class should be named Retailltem and should hold data about an item in a retail store. The class will have the following member variables. Description- string holding the description of the item, unitsOnHand - int that holds the number of units in inventory Price - double that holds the price of the...
Code should be written in C++
2. [11] You have been hired by Shapes Calculator Menu Maker to create a C++ console application that prompts the user with a menu and various options. Starting from Lab03, prompt the user for a char value that corresponds to one of the following menu options: a. Sphere=4*pi"radius3 (hint: use a constant value for pi=3.1415) b. Right Circular Cylinder- piradius*height c. Rectangular Parallelepiped length *width height d. Cone-*pi*radius2 height 3 x. Exit menu. Implement...
For C# Scenario: Create a Windows Forms application that accepts the total cost of a sale and the amount submitted by the customer. Calculate and display the correct change from largest denomination to smallest. If the cost exceeds the amount submitted, post a message to the user that they have entered an invalid amount. The program should accept both the cost and the amount submitted into textbox controls. The program should use Try/Catch statements to keep the program from crashing....