Question: sent me the link for this problem so i can download and see what is inside I HAVE CHANGE THE FORMULA BECAUSE THE FIRST FORMULA
sent me the link for this problem so i can download and see what is inside
I HAVE CHANGE THE FORMULA BECAUSE THE FIRST FORMULA WAS WRONG
E(J) = P(W) / t(s) to E(J) = P(W) * t(s). Multiple not divide.)
The correct .cs file, correct .exe file, the correct zipped solution file and a design sheet word document that contains all of your UI design and completed pseudo-code must be submitted to receive full credit! If you are not sure if you have the correct files see the document How to find your files in the Resources Modules. It clearly shows which files you need to submit. Lab 05 Program description: o You are going to create a project that shows the user how much power is being used based on two user inputs: total work (energy) that has been done and time (in seconds) for the total number of seconds this work has been done. o For Electrical Energy, in physics, the following is true: Watts are a measure of Power or how fast Energy is used. Part 1: Program Description: Essentially the user will input how much total Energy in joules used and how long Time in seconds. Your program will then output, to a label, the calculated result for Power in Watts. For example, if the user inputs 1000 Joules were used in 10 seconds, the outputLabel would display similar to the following. The Power results in Watts is 100W. o Part 1: 1.1. Plan your program UI Design: (Use the Designer User Interface document) o You are to come up with an appropriate user interface: This is where you should draw out your design on a sheet of paper and identify each object (name your controls). There are no specific sizes or colors of fonts. You have read enough to this point to where you know how to change all these properties. You must create something that looks professional. 1.2. Plan the Event Handler Methods: use Pseudo code, flow charts, etc.. o A Calculate button will take the users two inputs and display the Power calculation result in a label. Variables must have appropriate data type and meaningful names Exception handling must be included in this program with if-else try parse logic (advanced) or try-catch parse logic (average) User should not be able to put letters or negative numbers in these input boxes and try to calculate Appropriate error messages should prompt the user Output must be a formatted text with result properly calculated and displayed in a label. o A Clear button should clear everything and set the focus back to the first input box o An Exit button will exit the user out of the program. 1.3. Write the program code: o Create a new project. Call the project yourlastnameLab02_164. Rename the Form1.cs file to WattsCalc.cs (accept all changes if prompted). Change the text on the form to Power Calculator. o Place and Set the properties of each object, as you have planned. o Before you proceed: Make sure all objects (controls) are properly re-named and properties assigned as instructed. o Build your program to ensure all changes load correctly. o Working form the pseudo code, invoke and write each event-handler method. o When you complete the code, thoroughly test the project. Make several good and bad input tests to ensure your program performs correctly and handles all user input. o Once your program works as desired: get three screenshots of your program when running. 1. Of the user interface when it first starts. 2. Of the program with the result displayed when the user types in good data. And 3. Of the program with the error message when the user types in bad data. You will include these screenshots at the end of your design sheet. o Part 2: o Program Description: Once Part 1 is working correctly you are to modify your program such that your program will also utilize a loop to display in a List Box how much work(Energy in Joules) was done for each second. For example, Using the Power result calculated (as exampled in Part 1), the ListBox output would look similar to the following: After 1 second the work do Part 2: 2.1. Plan your program UI Design: o You are to modify your user interface: This is where you should modify your previous UI design to include and identify each new object (control). 2.2. Plan the Event Handler Methods: use Pseudo code, flow charts, etc o When the Calculate button is clicked all of Part 1 should perform as previously instructed. And, also, a list will display in the List Box. For the sake of simplicity and for size considerations of your list box, edit your previous program to limit the total number of seconds entered to the range from 0 to 10. Plan (write, or flow chart) your logic before you begin to code. Identify on your design sheet where, in your outline logic, you are to put the loop logic. Flowchart or pseudo-code this logic including the output. Do not attempt to change your UI and code in your program until You understand what you are doing and how/where to add the additional controls and code logic. 2.3. Write the program code: o Place each new object and Set their properties as you have planned. o Before you proceed: Make sure all new objects (controls) are properly re-named and properties assigned as instructed. o Build your program to ensure all changes load correctly. o Working form the pseudo code, modify the appropriate event-handler method(s). o When you complete the code, thoroughly test the project. Finally: You must assign accept and cancel button assignments (page 179), Proper form tab order (page 175-176)
PLEASE this is the correction, so use this!
1. For the second equation given: change it from E(J) = P(W) / t(s) to E(J) = P(W) * t(s). Multiple not divide. 2. For the instructions for Part II make the equation correction noted above and your list box output should look as follows: After 1 second the work done was 100 Joules. After 2 seconds the work done was 200 Joules. After 3 seconds the work done was 300 Joules. After 4 seconds the work done was 400 Joules. After 5 seconds the work done was 500 Joules. After 6 seconds the work done was 600 Joules. After 7 seconds the work done was 700 Joules. After 8 seconds the work done was 800 Joules. After 9 seconds the work done was 900 Joules. After 10 seconds the work done was 1000 Joules.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
