Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Larkdog

@Larkdog
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Can someone help?
    L Larkdog

    Thank you, That helped alot. I know this seems very rudemtary but it's like learning spanish in 7 weeks.

    C# csharp sales help question learning

  • Can someone help?
    L Larkdog

    1. Use of unassigned local variable 'Comm' 2. The name 'inputString' does not exist in the class or namespace 'TubSales.SalesPeople' 3. The name 'Comm' does not exist in the class or namespace 'TubSales.SalesPeople' 4. Unreachable code detected

    C# csharp sales help question learning

  • Can someone help?
    L Larkdog

    I am very new to C#, I have tried to make this work but it is very difficult learning this new language. Scenario: Three salespeople work at Sunshine Hot Tubs - Andrea, Brittany, and Eric. Write a program that prompts the user for a saleperson's initial. While the user does not type 'Z', continue by promting for the amount of a sale that salesperson made. Calculate the saleperson's Commission as 10 percent of the sale amount, and add the commission to a running total for that salesperson. After the user types 'Z' for an initial, display each salesperson's total commission earned. Here's what I have so far: (I have commented out compiler errors) using System; namespace TubSales {//Namespace class SalesPeople {//Class static void Main(string[] args) {// Main char response; //double Comm; Console.WriteLine("Please enter your first initial, or type Z to to find your total commision."); response = GetChar(); while (response == 'A' || response == 'a') { Console.WriteLine("Enter the amount of sales you had."); //CalculateSales(); } while (response == 'B' || response == 'b') { Console.WriteLine("Enter the amount of sales you had."); Console.ReadLine(); } while (response == 'E' || response == 'e') { Console.WriteLine("Enter the amount of sales you had."); Console.ReadLine(); } if (response == 'Z' || response == 'z') { Console.WriteLine("Andrea's total commision is {0}.");//,Comm); Console.WriteLine("Brittany's total commision {0}.");//,Comm); Console.WriteLine("Eric's total commision {0}.");//,Comm); } Console.WriteLine("Have a Nice Day!"); }//Main //public static double CalculateSales() //{ //double Sales; //double Commision; //Commision = .10; //double answer; //inputString = Console.ReadLine(Sales); //return answer; //Comm = Sales * Commision; //} public static char GetChar() { string inputString; char answer; inputString = Console.ReadLine(); answer = Convert.ToChar(inputString); return answer; } }//Class }//Namespace

    C# csharp sales help question learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups