- Program has to be written in C# as a Windows Console App. Any sort of help / d
ID: 3872278 • Letter: #
Question
- Program has to be written in C# as a Windows Console App. Any sort of help / direction would be greatly appreciated.
hapter3: Using GUI Obiects PavrolIGUI Programming Exercise (pg. 135) In this assignment you will write a program named PayrollGUI that prompts the user for a Name, Employee Id, hourly pay rate, and number of hours worked. In an interactive format, display all the input data as well as the followin Gross pay, defined as hourly pay rate times hours worked Federal withholding tax, defined as 15 percent of the gross pay State withholding tax, defined as 5 percent of the gross pay Net pay, defined as gross pay minus taxes The output shown below is a sample output. Be creative and come up with your own design. Sample Output Prompt the user to enter the following information. Payroll Calculator John Smth Enter your name Employee ID: Hourly pay rate Hours worked: 1212 25 3 OK When the user clicks the OK button, the following information is displayed ©prayappaExplanation / Answer
using System.Runtime.InteropServices; [DllImport("kernel32.dll")] static extern IntPtr GetConsoleWindow(); [DllImport("user32.dll")] static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); const int SW_HIDE = 0; const int SW_SHOW = 5; var handle = GetConsoleWindow(); // Hide ShowWindow(handle, SW_HIDE); // Show ShowWindow(handle, SW_SHOW);
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.