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

We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.

Care to do it for me?


Input

A line containing two integers separated by a space.

10·3

Output

A single line containing an integer.

1





Friendly Hal’s Used Cars has four sales people named Pam, Leo, Kim

and Bob.

In Program.cs,

De

fine

a method called

PrintCarSales

to accept values for the number of cars sold by

each salesperson in a month, and create a bar chart that illustrates sales, similar to

the following one.


Ensure

you capture the user input and call the

PrintCarSales

method

in

Program.cs

.



Using Visual Studio, create a new Console App project.



Write a program that:



Asks the user to enter the final mark for a module; and



Displays the module result based on the following rules:



0 to 48 (inclusive) means the result is failed;



49 means that the result is passed (condoned);



50 to 73 means that the result is passed;



74 means that the result is distinction (condoned); and



75 to 100 means that the result is distinction.

Using Visual Studio, create a new Console App project.

Write a program that: 

a. Asks the user to enter the final mark for a module; and

b. Displays the module result based on the following rules: 


  1. 0 to 48 (inclusive) means the result is failed;
  2. 49 means that the result is passed (condoned);
  3. 50 to 73 means that the result is passed;
  4. 74 means that the result is distinction (condoned); and
  5. 75 to 100 means that the result is distinction.

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.




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.




Demonstrate the difference between “==” operator, object.Equals methods and object.ReferenceEquals method. Relevant code examples and comments should be provided. 


People who earn less than R6 000.00 or who are older than 70 years do not pay tax. Write a program that reads in a person’s salary and age. If the person should pay tax, your program should request the tax percentage. The program must finally display an appropriate message.


People who earn less than R6 000.00 do not pay tax. Write a program that reads in a person’s salary. If he earns R6 000.00 or more, the program must request the percentage tax the person pays. The program must then finally display one of the following messages (as an example): For a person who earns R1500.00 You do not pay tax, and your final payout is R1500.00 For a person who earns R8200.00 and whose tax is 10% You pay R820.00 tax, and your final payout is R7380.00


Write a program that prompts the user his balance as well as an amount to be withdrawn from his/her bank account. Display an error message if the amount is more than the balance; otherwise display the new balance.


LATEST TUTORIALS
APPROVED BY CLIENTS