Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Write a program that reads in the description and amount for 3 items purchased by a customer (you can assume that the customer is buying 1 of each item). The program must calculate the total, then determine the discount amount (at 5% discount) and the amount after discount. Furthermore, the store provides a “loyalty point” for each R5 spend (before discount). The final slip must have the following structure (including the blank lines as shown). The 3 item amounts have no currency sign, is aligned on the right and displays 2 decimal places. Below the list of items, the total, discount and final amounts must show the currency sign.


To create this specific output, the memo uses an item column width of 17 characters and an amount column width of 7 chacters for the list of the 3 items. You do not need to use the same values, but you can use it as guidance. You can also use spaces and the \t escape sequence or a combination of different plans for alignment.


Create a new project, and name it P2T1 Write a program that requests from a user the number of pies (at R18.50 per pie) and the number of hamburgers (at R35.00 per hamburger), and then calculates the total for the order. Now extend this program to request the amount paid by the user, before calculating and displaying the change that needs to be paid out. Ensure that your monetary amounts are displayed with the R currency sign. Your running program could resemble the following:


Create a console program that will perform the following:


• Ask the user to enter the pieces of apple.


• Ask the user to enter the total price of the apple(s).


• Print the total price of the entered pieces of apple(s).


• Convert the entered price into a whole number, then display the values of the original


price and the converted price.


2. Name the project as DataTypesApp and the class as DataTypesProgram

This is in Windowd Form. Create a House class with these fields; house year, purchase price, address, electric, gas, and water. Field should be private with appropriate property filters. Include a method that calculates total utility cost. The House calss should have a constructor that sets default values for each of the class characteristics. The House class shpuld have a constructor that allows the programmer to set all the properties in the main method. Create a second class Apartment that inheritance the properties from the House class but overrides the utility cost by cutting the cost in half.

Make a program where it is asked from user to enter an amount, you have to answer how much annual tax to be paid on that amount. annual tax is 5.2% of total amount

Enter two numbers then using user-defined functions, compute its sum, difference, product and quotient.

Problem Statement:



Jack and his three friends have decided to go for a trip by sharing the expenses of the



fuel equally. Implement a C# method Calculate CostPerPerson(double mileage,



double amountPerLitre, int distanceOne Way) which returns the amount (in Rs) each



of them need to put in for the complete (both to and fro) journey.

Implementa C# method CalculateCourseFee(double courseFee,double marks,double serviceFee)to calculate the totalfees to be paid by a student.The students are entitled to get scholarship based on the marks scored in the qualifying exam. Scholarship percentage should be considered as half of the marks scored by the student on the course fee. Apart from the course fee (after deducting the scholarship amount), the students have to payextra service fees.Assume that the marks is out of 100 and need not always be intege

Problem 1: Create a project in C# to implement the scenario provided in the following


diagram. The project have two list boxes which is filled by user provided data through


TextBox1. The user have choice to add element in ListBoxl or ListBox2 using the same


TextBox I and ADD button. The choices will be determine using two radio buttons. Further the


data have transfer from ListBox1 to ListBox2 vice versa using and buttons. The user may


remove elements from ListBoxl and ListBox2 with the buttons provided with each ListBox.

Create a method that determines whether a string is a valid hex

code. A hex code must begin with a pound key # and is exactly 6

characters in length. Each character must be a digit from [0-9] or

an alphabetic character from A-F . All alphabetic characters may

be uppercase or lowercase.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS