Lab070 - CNIT 175 Lab07 Due: Tues. 10/25/11, by 10:00 pm...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CNIT 175 Lab07 Due: Tues. 10/25/11, by 10:00 pm 15 Points Objectives: o Loops o Radio Buttons o Modularity Program: Your have been offered an internship during the winter break, for 10 to 30 days. You are given the option to choose your payment method! Your pay is calculated based on the number of days you work. Write a program to help you decide which payment method to choose. Assume that N is the number of days at the job. The payment options are: 1) Sum of squares: 1 + 2 2 + 3 2 + … N 2 . 2) Sum of 1*2 + 2*3 + 3*4 … N * (N + 1) 3) Sum of pennies paid each day: One penny for day-1, two pennies for day-2, four pennies for day-3, and so on. In other words each day number of pennies paid gets doubled. Allow the user enter the number of employment days, click on one of the Radio Buttons to select the pay option, and click on a Button to have the pay calculated. Design a GUI similar to Figure-1. Figure 1 Screen capture at runtime
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/06/2012 for the course CNIT 175 taught by Professor Na during the Fall '11 term at Purdue.

Page1 / 3

Lab070 - CNIT 175 Lab07 Due: Tues. 10/25/11, by 10:00 pm...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online