Free Essay

Introduction to Programming

In:

Submitted By antbrown
Words 3241
Pages 13
Individual Project: INTRODUCTION TO PROGRAMMING

T110-1304A-05 INTRODUCTION TO PROGRAMMING JAVA GRAPHICAL USER INTERFACE (GUI) AND DESIGN DOCUMENT

11/11/2013

Table of Contents Week 1: Project Outline 3 WEEK 1: Case Diagrams 4 Use Case Diagram 4 Week 1: Class Diagrams 4 Class Diagrams 4 Week 2 Java Fundamentals 5 Week 3: Java Control Structure 10 Week 4: Error Handling and File Input/output 16 TBD 19

Week 1: Project Outline

Pizza R Us was founded in 2013 by a group of students who wanted to change the world of pizza one pie at a time. Using technology to bring the restaurant to the homes of the masses Pizza R US is currently developing an online ordering system that would rival the leaders of its class. Offering the following delicious products:
Pizza’s
Sizes: Small, Medium, Large
Toppings: Pepperoni, Ham, Onions, Bacon, Bell Peppers, Pineapples, Sausage, Olives, Etc….

Breadsticks
Wings
Sauces: Hot, Mild, Medium, Extra Hot

WEEK 1: Case Diagrams

Use Case Diagram http://yuml.me/diagram/plain;scale:60;/usecase/// PIZZA R US, %5BCustomer%5D-(Log In), (Log In)%3E(Product), (PRODUCT)%3E(PIZZA), (Pizza)%3E(Toppings), (PRODUCT)%3E(BREAD STICKS), (Product)%3E(Wings), (Wings)%3E(Sauce).png
Customers login into the system. Choose Product: Classes: Pizza, Breadsticks, Wings Pizza: Choose Toppings Wings: Choose Sauce

Week 1: Class Diagrams

Class Diagrams http://yuml.me/diagram/scruffy;/class/%5BCustomer%7C+Product;+Password;-Address%7C+Login();+Logout()%5D, -%3E%5BProduct%7C+Pizza;+Breadsticks;+Wings%7C+Login();+Logout()%5D, -%3E%5BAdd On%7C+Toppings;+Sauces;+Xtra%27s%7C+Login();+Logout()%5D.png

Customer Class: Choose Product, Password, Address, Log in, Log Out
Product Class: Choose Pizza, Breadstick, wings
Add On Class: Choose Toppings, Sauces, Xtras’
Log in and Log out

Week 2 Java Fundamentals

* To change this template, choose Tools | Templates * and open the template in the editor. * Filename: pizzasrusphase2.java * Created: 10/17/13 by * * Purpose: To create a customized welcome greeting for * Pizza-R-Us online ordering customers */ package pizzasrusphase2; import javax.swing.*;

/** * * @author you */ public class PizzasRUsPhase2 { private static String nameInputMsg; private static String returnInputMsg; private static String customerReturn; private static String returnOutputMsg; private static String greetingOutputMsg; private static String outputMsg; private static object nameoutputMsg;

/** * @param args the command line arguments */ public static void main(String[] args) { //declare and initialize variables String openingMsg, nameinputMsg ,customerName, nameOutputMsg; //display opening message openingMsg ="*** Welcome to Pizzas-R-Us Online Ordering System ***"; JOptionPane.showMessageDialog(null, openingMsg);

// get required input using dialog boxes nameInputMsg = "Enter your name"; customerName =JOptionPane.showInputDialog( nameInputMsg); returnInputMsg = "Are you a returning customer (yes or no)?"; customerReturn = JOptionPane.showInputDialog( returnInputMsg); //build output strings nameOutputMsg= "Welcome" + customerName + ".\n"; returnOutputMsg = "Your return customer status is " + customerReturn+".\n"; greetingOutputMsg = "Thank you for visiting Pizza-R-Us!" + "\n"; // create output string

// display output message JOptionPane.showMessageDialog( null, outputMsg);

} // end main } // end class

Package name: PizzaRUSPhase2 customerReturn string greetingOutputMsg string nameInputMsg string nameOutputMsg object outputMsg string returnInputMsg string returnOutputMsg string
1.OpeningMsg Welcome to Pizzas-R-Us online ordering system Program
2. NameInputMsg Enter your name user input
3. returnInputmsg Are you a returning customer (yes or no) program
4. nameOutputmsg welcome (customer name) program
5. returnOutputmsg Your return customer status program
6. greetingOutputmsg Thank you for visiting Pizza-R-Us

Week 3: Java Control Structure

* To change this template, choose Tools | Templates * and open the template in the editor. */ package pizzarussphase3;

import javax.swing.JOptionPane;

/** * * @author you */ public class PizzaRUssPhase3 {

/** * @param args the command line arguments */ public static void main(String[] args) { // declare and initialize variables
String openingMsg = null, nameInputMsg, customerName, nameOutputMsg = null, returnInputMsg, customerReturn, returnOutputMsg, greetingOutputMsg, outputMsg,

// display opening message and system introduction openingMsg1; openingMsg1 = "*** Welcome to Pizzas-R-Us Online Ordering System *** \n\n"; String openingMsg2; openingMsg2 = "You are now able to order your pizza through our online "; String openingMsg3; openingMsg3 = "take-out order system. \n\n"; String openingMsg4; openingMsg4 = "The pizza types you can order are: "; String openingMsg5; openingMsg5 = "Chicago, New York, or Hawaiian \n\n"; String openingMsg6; openingMsg6 = "The pizza sizes you can order are: "; String openingMsg7; openingMsg7 = "Small, Medium, and Large. \n\n";
JOptionPane .showMessageDialog(null, openingMsg);
// determine if they are a new or returning customer returnInputMsg = "Are you a returning customer (Enter y or n)? "; customerReturn = JOptionPane.showInputDialog( returnInputMsg ); boolean returnYes; returnYes = customerReturn.equalsIgnoreCase( "y" ); boolean returnNo; returnNo = customerReturn.equalsIgnoreCase( "n" ); int returnFlag = 0;
// initialize return flag
// determine if new customer or returning customer switch(returnFlag) { case 1:String loginMsg = "Please enter your Current username:";
String userid; userid = JOptionPane.showInputDialog(null, loginMsg);
String pwMsg = "Please enter your Current password: ";
String password; password = JOptionPane.showInputDialog(null, pwMsg); break; case 2: loginMsg = "Please enter your New username:"; userid = JOptionPane.showInputDialog(null, loginMsg); pwMsg = "Please enter your New password: "; password = JOptionPane.showInputDialog(null, pwMsg); break; default:{ Object invalidEntry = null; JOptionPane.showMessageDialog(null, invalidEntry);
}
loginMsg = "Please enter your New username:"; userid = JOptionPane.showInputDialog(null, loginMsg); pwMsg = "Please enter your New password: "; password = JOptionPane.showInputDialog(null, pwMsg);

} //end switch
// get required customer name using dialog boxes nameInputMsg = "Enter your name: "; customerName = JOptionPane.showInputDialog( nameInputMsg );

// repeat until a name is entered or exit after 3 tries for (int i =1; i <= 3; i++)
{ boolean validCustomer = customerName.isEmpty(); if (validCustomer) {Object invalidEntry = null; JOptionPane.showMessageDialog(null, invalidEntry); int i = 0; if (i == 3) System.exit(0); else { nameInputMsg = "Enter your name: "; customerName = JOptionPane.showInputDialog( nameInputMsg ); }
}
else

// build output strings nameOutputMsg = "Welcome " + customerName + ".\n";String password = null; String userid = null; returnOutputMsg = "Your login is: " + userid + "/" + password + ".\n"; greetingOutputMsg = "Thank you for visiting Pizzas-R-Us!" + "\n"; // create output string outputMsg = nameOutputMsg + returnOutputMsg + greetingOutputMsg;
// display output message
JOptionPane.showMessageDialog( null, outputMsg );
System.exit(0);
} // end main }
}
//

Week 4: Error Handling and File Input/output

* To change this template, choose Tools | Templates * and open the template in the editor. */ package pizzarussphase3;

import java.awt.HeadlessException; import java.io.File; import java.io.FileWriter; import javax.swing.JOptionPane;

/** * * @author you */ public class PizzaRUssPhase3 {

/** * @param args the command line arguments */ public static void main(String[] args) { // declare and initialize variables
String openingMsg = null, nameInputMsg, customerName, nameOutputMsg = null, returnInputMsg, customerReturn = null, returnOutputMsg, greetingOutputMsg, outputMsg, orderMsg1 = null, orderMsg2 = null,

// display opening message and system introduction openingMsg1; openingMsg1 = "*** Welcome to Pizzas-R-Us Online Ordering System *** \n\n"; String openingMsg2; openingMsg2 = "You are now able to order your pizza through our online "; String openingMsg3; openingMsg3 = "take-out order system. \n\n"; String openingMsg4; openingMsg4 = "The pizza types you can order are: "; String openingMsg5; openingMsg5 = "***Chicago, New York, or Hawaiian *** \n\n" ; String openingMsg6; openingMsg6 = "The pizza sizes you can order are: "; String openingMsg7; openingMsg7 = "Small, Medium, and Large. \n\n";
JOptionPane .showMessageDialog(null, openingMsg);
// determine if they are a new or returning customer returnInputMsg = "Are you a returning customer (Enter y or n)? "; customerReturn = JOptionPane.showInputDialog (returnInputMsg ); boolean returnYes; returnYes = customerReturn.equalsIgnoreCase( "y" ); boolean returnNo; returnNo = customerReturn.equalsIgnoreCase( "n" ); int returnFlag = 0;
// initialize return flag
// determine if new customer or returning customer switch(returnFlag) { case 1:String loginMsg = "Please enter your Current username:";
String userid; userid = JOptionPane.showInputDialog(null, loginMsg);
String pwMsg = "Please enter your Current password: ";
String password; password = JOptionPane.showInputDialog(null, pwMsg); break; case 2: loginMsg = "Please enter your New username:"; userid = JOptionPane.showInputDialog(null, loginMsg); pwMsg = "Please enter your New password: "; password = JOptionPane.showInputDialog(null, pwMsg); break; default:{ Object invalidEntry = null; JOptionPane.showMessageDialog(null, invalidEntry);
}
loginMsg = "Please enter your New username:"; userid = JOptionPane.showInputDialog(null, loginMsg); pwMsg = "Please enter your New password: "; password = JOptionPane.showInputDialog(null, pwMsg);

} //end switch
// get required customer name using dialog boxes nameInputMsg = "Enter your name: "; customerName = JOptionPane.showInputDialog( nameInputMsg );

// repeat until a name is entered or exit after 3 tries for (int i =1; i <= 3; i++)
{ boolean validCustomer = customerName.isEmpty(); if (validCustomer) {Object invalidEntry = null; JOptionPane.showMessageDialog(null, invalidEntry); int i = 0; if (i == 3) System.exit(0); else { nameInputMsg = "Enter your name: "; customerName = JOptionPane.showInputDialog( nameInputMsg ); }
}
else

// build output strings nameOutputMsg = "Welcome " + customerName + ".\n";String password = null; String userid = null; returnOutputMsg = "Your login is: " + userid + "/" + password + ".\n"; String orderInputMsg1 = null; final String orderInputMsg11 = orderInputMsg1; orderInputMsg1 = "Time to order. Choose your pizza type (1-3):\n"; String orderInputMsg2; orderInputMsg2 = "1. Large\n 2. Medium\n 3. Small\n"; String showInputDialog = JOptionPane.showInputDialog(null, orderMsg1 + orderMsg2); while(true){ //validate pizza type try { String pizzaType; String pizzatype = null; int pizzatypeInt = Integer.parseInt(pizzatype); if (pizzatypeInt == 1) { pizzaType = "Large"; //save as descriptive string to print break; } else if(pizzatypeInt == 2) { pizzatype =" Medium"; //save descriptive string break; } else if (pizzatypeInt == 3) { pizzatype = "small"; //save descriptive string }else{ //pizzatype =not valid, re enter pizzatype = JOptionPane.showInputDialog(null, orderMsg1 + orderMsg2); } } catch (NumberFormatException | HeadlessException e) { System.out.println(e);//just print out and re- loop to get valid data String pizzatype; pizzatype = JOptionPane.showInputDialog(null, orderMsg1 + orderMsg2); } try { try (FileWriter fileOut = new FileWriter(new File("pizzaoutput.txt"))) { fileOut.write("Order for " + userid + "\r\n"); String phone = null; fileOut.write("Phone: " + phone + "\r\n"); String address = null; String city = null; String state = null; String zip = null; fileOut.write("Address: " + address + " " + city + " " + state + " " + "" + zip + "\r\n"); String pizzaType = null; fileOut.write("Pizza type: " + pizzaType + "\r\n"); String pizzaSize = null; fileOut.write("Pizza type: " + pizzaSize + "\r\n"); String pizzaCount = null; fileOut.write("Pizza count: " + pizzaCount + "\r\n"); } } catch (Exception e) { System.out.println(e); } } greetingOutputMsg = "Thank you for visiting Pizzas-R-Us!" + "\n"; // create output string outputMsg = nameOutputMsg + returnOutputMsg + greetingOutputMsg;
// display output message
JOptionPane.showMessageDialog( null, outputMsg );
System.exit(0);
} // end main }
}
//

TBD

Week 5: Final Application Design & Screenshots

import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger;

/* * To change this template, choose Tools | Templates * and open the template in the editor. */

/** * * @author you */
@SuppressWarnings("empty-statement")
public class NewJFrame2 extends javax.swing.JFrame { private String userid;

private static class showInputDialog {

public showInputDialog() { } }

/** * Creates new form NewJFrame2 */ public NewJFrame2() { initComponents(); }

/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() {

jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jTextField5 = new javax.swing.JTextField(); jTextField6 = new javax.swing.JTextField(); jTextField7 = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jTextField2 = new javax.swing.JTextField(); jTextField8 = new javax.swing.JTextField();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

jPanel1.setBackground(new java.awt.Color(0, 0, 255));

jButton1.setText("Submit"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } });

jButton2.setText("Cancel"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } });

jLabel1.setForeground(new java.awt.Color(240, 240, 240)); jLabel1.setText(" Customer Name:");

jLabel2.setForeground(new java.awt.Color(240, 240, 240)); jLabel2.setText("Street Address:");

jLabel3.setForeground(new java.awt.Color(240, 240, 240)); jLabel3.setText("City:");

jLabel4.setForeground(new java.awt.Color(240, 240, 240)); jLabel4.setText("State:");

jLabel5.setForeground(new java.awt.Color(240, 240, 240)); jLabel5.setText("Zip Code:");

jTextField3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField3ActionPerformed(evt); } });

jTextField4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField4ActionPerformed(evt); } });

jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N jLabel6.setForeground(new java.awt.Color(240, 240, 240)); jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel6.setText("****Welcome to Pizza R Us Online Ordering System****");

jLabel7.setForeground(new java.awt.Color(240, 240, 240)); jLabel7.setText("Please enter your information:");

jLabel8.setForeground(new java.awt.Color(240, 240, 240)); jLabel8.setText("Pizza Type(1-Chicago, 2-New York, 3- Hawaiian):");

jLabel9.setForeground(new java.awt.Color(240, 240, 240)); jLabel9.setText("Pizza Size (S- Small, M- Medium, L- Large):");

jLabel10.setForeground(new java.awt.Color(240, 240, 240)); jLabel10.setText("Pizza Quanity:");

jTextField1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField1ActionPerformed(evt); } });

jTextField2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField2ActionPerformed(evt); } });

jTextField8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jTextField8ActionPerformed(evt); } });

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(53, 53, 53) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 88, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jLabel4) .addComponent(jLabel3) .addComponent(jLabel2)) .addGap(36, 36, 36)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9) .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jTextField8, javax.swing.GroupLayout.DEFAULT_SIZE, 19, Short.MAX_VALUE) .addComponent(jTextField1) .addComponent(jTextField2))))) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(141, 141, 141) .addComponent(jButton1) .addGap(135, 135, 135) .addComponent(jButton2)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(38, 38, 38) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(40, 40, 40)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(48, 48, 48) .addComponent(jLabel6) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(43, 43, 43) .addComponent(jLabel7) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(24, 24, 24) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel10) .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1) .addComponent(jButton2)) .addGap(71, 71, 71)) );

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(27, 27, 27) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(273, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) );

pack(); }// </editor-fold>

private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) { String phone = null; fileOut.write("Phone: " + phone + "\r\n"); String address = null; String city = null; String state = null; String zip = null; fileOut.write("Address: " + address + " " + city + " " + state + " " + "" + zip + "\r\n"); }

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: }

private void jTextField3ActionPerformed(java.awt.event.ActionEvent evt) { try { FileWriter fileOut = new FileWriter(new File("pizzaoutput.txt")); fileOut.write("Order for " + userid + "\r\n"); } catch (IOException ex) { Logger.getLogger(NewJFrame2.class.getName()).log(Level.SEVERE, null, ex); } }

private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) { String pizzaType = null; fileOut.write("Pizza type: " + pizzaType + "\r\n"); }

private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) { String pizzaSize = null; fileOut.write("Pizza type: " + pizzaSize + "\r\n"); }

private void jTextField8ActionPerformed(java.awt.event.ActionEvent evt) { String pizzaCount = null; fileOut.write("Pizza count: " + pizzaCount + "\r\n"); Object orderMsg1; Object orderMsg2 = null;

}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { fileout.close(); { boolean e = false; System.out.println(e); }

/** * @param args the command line arguments */ /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(NewJFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold>

/* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { new NewJFrame2().setVisible(true); } }); } // Variables declaration - do not modify private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JPanel jPanel1; private javax.swing.JTextField jTextField1; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; private javax.swing.JTextField jTextField7; private javax.swing.JTextField jTextField8; // End of variables declaration

private static class fileOut {

private static void write(String string) { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }

public fileOut() { } }

private static class fileout {

private static void close() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. }

public fileout() { } }
}

Similar Documents

Free Essay

Introduction to Programming

...David McCon March 31, 2014 Unit 2 Assignment 1 Introduction to Programming The first thing a professional programmer will usually do to gain the understanding of a problem is to work directly with, and interview the customer. What is pseudocode? Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed. Computer programs typically perform what three steps? Computer programs usually follow the following three steps: 1) Input is received. 2) Some process is performed on the input. 3) Output is produced. What does the term “user- friendly” mean? User friendly- easy to use, simple, not complicated Algorithm Workbench     1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.       1. Display “enter height here”       2. Input height 3. save in word document named height       2. Design an algorithm that prompts the user to enter his or her favorite color and stores the user’s input in a variable named color.                       1. Display “enter favorite color”                       2. Input favorite color                       3. Save in word document named favorite color. Total Purchases 4: #include <iostream> using namespace std; int main(void) { //declarations double item1 = 0; double item2 = 0; double item3 = 0; double item4 = 0; double item5 = 0; double subtotal = 0; double total...

Words: 400 - Pages: 2

Premium Essay

Introduction to Programming

...PERSPECTIVE The logic of indirect speech Steven Pinker*†, Martin A. Nowak‡, and James J. Lee* *Department of Psychology, and ‡Program for Evolutionary Dynamics, Departments of Mathematics and Organismic and Evolutionary Biology, Harvard University, Cambridge, MA 02138 Edited by Jeremy Nathans, Johns Hopkins University School of Medicine, Baltimore, MD, and approved December 11, 2007 (received for review July 31, 2007) When people speak, they often insinuate their intent indirectly rather than stating it as a bald proposition. Examples include sexual come-ons, veiled threats, polite requests, and concealed bribes. We propose a three-part theory of indirect speech, based on the idea that human communication involves a mixture of cooperation and conflict. First, indirect requests allow for plausible deniability, in which a cooperative listener can accept the request, but an uncooperative one cannot react adversarially to it. This intuition is supported by a game-theoretic model that predicts the costs and benefits to a speaker of direct and indirect requests. Second, language has two functions: to convey information and to negotiate the type of relationship holding between speaker and hearer (in particular, dominance, communality, or reciprocity). The emotional costs of a mismatch in the assumed relationship type can create a need for plausible deniability and, thereby, select for indirectness even when there are no tangible costs. Third, people perceive language as a digital...

Words: 6875 - Pages: 28

Premium Essay

Introduction to C Programming

...1. CPU (Computer Processing Unit): the key component of a computer system, which contains the circuitry necessary to interpret and execute program instructions. 2. RAM (Random Access Memory): computer memory available to the user for creating, loading, or running programs and for the temporary storage and manipulation of data, in which time of access to each item is independent of the storage sequence. As a storage medium, RAM is volatile, so its contents are lost when the power fails or is turned off 3. ROM (Read Only Memory): computer memory in which program instructions, operating procedures, or other data are permanently stored, generally on electronic chips during manufacture and that ordinarily cannot be changed by the user. 4. Firmware: a microprogram stored in ROM, designed to implement a function that had previously been provided in software. 5. Operating system: the collection of software that directs a computer's operations, controlling and scheduling the execution of other programs, and managing storage, input/output, and communication resources. 6. Application program: a program used for a particular application 7. Machine language: a coding system built into the hardware of a computer, requiring no translation before being run. 8. Binary: A system of numerical notation to the base 2, in which each place of a number, expressed as 0 or 1, corresponds to a power of 2 9. Main memory: program-addressable storage that is directly controlled...

Words: 913 - Pages: 4

Premium Essay

Introduction to Object-Oriented Programming

...Introduction to OOPs ------------------------------------------------- 1.1 STRUCTURED INTRODUCTION Structured programming (known as modular programming) is a subset of procedural programming that enforces a logical structure in the programming being written, to make it more efficient and easier to understand and modify. Structured programming frequently employs a top-down design model, in which developers map out the overall program structure into separate subsections. A defined function or a set of similar functions coded in separate modules can be reused in other programs. After a module has been tested individually, it is then integrated with other modules into the overall program structure. Program flow follows a simple hierarchical model that employs looping constructs such as 'for,' 'repeat' and 'while.' Use of the 'Go To' statement is discouraged in structured programming. Structured programming was first suggested by the mathematicians Corrado Bohm and Guiseppe Jacopini. They demonstrated that any computer program can be written with just three structures: decision, sequences and loops. In structured programming coders break larger pieces of code into shorter subroutines (functions, procedures, methods, blocks or otherwise) that are small enough to be understood easily. In general, programs should use local variables and take arguments by either value or reference. These techniques help to make isolated small pieces of code easier to understand the whole program at once...

Words: 2729 - Pages: 11

Free Essay

Pt1420 Introduction to Programming Lab03

...Variable Name | Problem(Yes or No) | If Yes, What is wrong? | Declare Real creditsTaken | NO | | Declare Int creditsLeft | YES | INT can only hold whole numbers, cant account for half credits. | Declare Real studentName | Yes | Needs to be string not Real. Real is for numbers | Constant Real creditsNeeded = 90 | No | | Step 1 Step 2 What is wrong with the following calculation? Set creditsLeft = creditsTaken – creditsNeeded The calculation is backwards, if left as is it would read a negative number. It should be Set creditLeft = creditsNeeded – creditsTaken. Step 3 Display “The student’s name is”, studentName The student’s name is Nolan Owens Step 4 Display “The Network Systems Administration degree is awarded after 90 credits and”, studentName, “has”, creditsLeft, “left to take before graduation.” The Network System Administration degree is awarded after 90 credits and Nolan Owens has 70 left to take before graduation. Step 5 1. //Provide documentation on line 2 of what this program does 2. //This program shows how many credits a student needs to graduate from Network System Administration. 3. //Declare variables on line 4, 5, 6, and 7 4. Declare Real creditsTaken 5. Declare Real creditsLeft 6. Declare String studentName 7. Declare Constant Integer creditsNeeded = 90 8. //Ask for user input of studentName and creditsTaken on line 9-12 9. Display “What is the student’s name?” 10. Input studentName 11....

Words: 275 - Pages: 2

Premium Essay

Microsoftword

...7072 01266 MACRO ECONOMICS D 11:0 - 12:30 ST 7072 01267 MACRO ECONOMICS E 12:30 - 2:0 MW 7072 01268 MACRO ECONOMICS F 2:0 - 3:30 ST 7072 01269 MACRO ECONOMICS G 3:30 - 5:0 MW 7072 01270 MACRO ECONOMICS H 5:0 - 6:30 ST 7072 BEHAVIORAL SCIENCE 00783 INTRODUCTION TO BEHAVIORAL SCIENCE A 3:30 - 5:0 MW 154 00784 INTRODUCTION TO BEHAVIORAL SCIENCE B 5:0 - 6:30 ST 154 00785 INTRODUCTION TO BEHAVIORAL SCIENCE D 9:30 - 11:0 ST 154 00787 INTRODUCTION TO BEHAVIORAL SCIENCE E 11:0 - 12:30 MW 154 00788 INTRODUCTION TO BEHAVIORAL SCIENCE F 12:30 - 2:0 ST 154 00789 INTRODUCTION TO BEHAVIORAL SCIENCE G 2:0 - 3:30 MW 154 00790 INTRODUCTION TO BEHAVIORAL SCIENCE H 3:30 - 5:0 ST 154 00791 INTRODUCTION TO BEHAVIORAL SCIENCE I 5:0 - 6:30 MW 154 INTRO TO PROGRAMMING 00030 INTRO TO PROGRAMMING (BBA) A 8:0 - 10:0 S 432 LABORATORY 8:0 - 11:0 T CL7...

Words: 479 - Pages: 2

Premium Essay

Optimization 7th Edition Sollution

...MATHEMATICAL PROGRAMMING - INDR. 363 (1) 2011 FALL Class Meeting Location ENG Z27 Class Meeting Times TH B3,TU B3 Instructor Office Hours Office Location Office Phone Email Web Address Number of Credits ETC Credit Prerequisites Language ONUR KAYA W 14:00-16:00 ENG 206 1583 okaya@ku.edu.tr 3 6 INDR. 262 English Assistant TA/RA/Lab Assistant Name AYLİN LELİZAR POLAT GÜLÇİN ERMİŞ Email aypolat@ku.edu.tr gulermis@ku.edu.tr Office Hours Office Location Course Description Introduction to modeling with integer variables and integer programming; network models, dynamic programming; convexity and nonlinear optimization; applications of various optimization methods in manufacturing, product design, communications networks, transportation, supply chain, and financial systems. Course Objectives The course is designed to teach the concepts of optimization models and solution methods that include integer variables and nonlinear constraints. Network models, integer, dynamic and nonlinear programming will be introduced to the students. Students will be exposed to applications of various optimization methods in manufacturing, product design, communications networks, transportation, supply chain, and financial systems. Several different types of algorithms will also be presented to solve these problems. The course also aims to teach how to use computer programs such as Matlab and GAMS to solve mathematical models. Learning Outcomes Students are expected to model...

Words: 768 - Pages: 4

Free Essay

Computers

...Programming Assignment 1 (Submit by Sunday of Week 6) Preliminary Steps 1. Invoke Visual Basic by following the directions in section 2.2, pp. 20– 23. 2. Perform the text box, button, label, and list box walkthroughs, pp. 23– 30. 3. Perform the event procedure walkthrough, pp. 38–43. Programming Exercises Do the following exercises from An Introduction to Programming Using Visual Basic 2010. a. Exercise no. 70, p. 67 b. Exercise no. 40, p. 82 To submit your assignment, first create a ZIP file of the application folder for each exercise (see “Appendix: A Note on Submitting Programming Assignments” at the end of the syllabus). Then upload and submit both ZIP files (compressed folders) to the assignment link provided in the Assignments area of the course Web site. S-18 ASSIGNMENT MODULE 5 Learning Objectives After successfully completing this assignment, you should be able to:  Write programs in Visual Basic 2010 while being guided by the six steps of the program development cycle: analyze the problem, design a solution, choose the interface, write code, test and debug your solution, and document your code.  Incorporate input and output methods, including reading data from sequential files, obtaining user input to input boxes, and displaying boxes, and displaying messages in message boxes. Study Assignment Assigned Reading  Read chapter 3, section 3.3, in An Introduction to Programming Using Visual Basic 2010, 8th ed., by Schneider.  Read the...

Words: 660 - Pages: 3

Free Essay

A Paper

... | | |Information Systems & Technology | | |PRG/211 Version 4 | | |Algorithms and Logic for Computer Programming | Copyright © 2012, 2011, 2010 by University of Phoenix. All rights reserved. Course Description This course provides students with a basic understanding of programming development practices. Concepts covered include the application of algorithms and logic to the design and development of procedural and object oriented computer programs to address the problem solving requirements associated with business information systems. This course will cover procedural programming concepts including data types, controls structures, functional decomposition, arrays, and files, classes and objects. Policies Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents: • University policies: You must be logged into the student website to view this document. • Instructor policies: This document is posted in the Course Materials forum. University policies are...

Words: 1735 - Pages: 7

Premium Essay

Sem 5 Bca

...Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune University of Pune Pattern 2008, w.e.f. 2010-11 Semester – V Course No. 501 502 503 504 505 506 Subject Name VB.NET or VB.NET Programming Internet Programming and Cyber Law Principals of Marketing Core Java Project work ( VB ) Computer Laboratory and Practical Work (.NET + Core Java ) Semester – VI Course No. 601 602 603 604 605 606 Subject Names E-Commerce Multimedia Systems Introduction to Syspro And Operating Systems Advance Java Project Work (Banking & Finance, Cost Analysis, Financial Analysis, Payroll, EDP, ERP etc.) Computer Laboratory and Practical Work (Multimedia + Advanced Java) University of Pune, T.Y. B.C.A., Semester V & VI 2 T.Y. B.C.A. Semester V Subject Name -: VB.NET or VB.NET Programming. Course Code -: 501 Sr. No. 1. TOPICS .NET Framework (Introduction to .NET Framework) 1.1 Introduction 1.2 CLR 1.3 CTS 1.4 MSIL 1.5 Garbage Collection 1.6 Assemblies 1.6.1 Assembly content 1.6.2 Assembly types VB.Net Programming 2.1 Windows Forms 2.1.1. Setting Title Bar Text 2.1.2. Seeing the initial position of a form 2.1.3. Minimizing/Maximising a form 2.1.4. Working with multiple forms 2.1.5. Setting the StartUp Form 2.1.6. Adding controls to a form 2.1.7. Setting properties at Design Time...

Words: 3973 - Pages: 16

Premium Essay

Asdsada

...CAPITOL UNIVERSITY College of Computer Studies Introduction to Programming Activity Book Compiled by: Mark Godfrey D. Torres 2012 Introduction to Programming ii Table of Contents Weeks 1 to 3 – Creating Your First Java Classes ....................................................................................... 1 Objectives ........................................................................................................................................... 1 Summary ............................................................................................................................................ 1 The Don’ts........................................................................................................................................... 2 Key Terms ........................................................................................................................................... 3 Seatwork............................................................................................................................................. 6 Where to Save Your Files ................................................................................................................. 6 Configuring Windows to Work with the Java SE Development Kit................................................... 6 Your First Application ........................................................................................................................

Words: 4647 - Pages: 19

Free Essay

C++ Objects Solutions

...C++ LOCATION OF VIDEONOTES IN THE TEXT Chapter 1 Designing a Program with Pseudocode, p. 19 Designing the Account Balance Program, p. 24 Predicting the Output of Problem 30, p. 24 Solving the Candy Bar Sales Problem, p. 25 Using cout to Display Output, p. 32 Assignment Statements, p. 59 Arithmetic Operators, p. 61 Solving the Restaurant Bill Problem, p. 72 Using cin to Read Input, p. 75 Evaluating Mathematical Expressions, p. 81 Combined Assignment Operators, p. 102 Solving the Stadium Seating Problem, p. 151 Using an if Statement, p. 162 Using an if/else Statement, p. 172 Using an if/else if Statement, p. 175 Solving the Time Calculator Problem, p. 236 The while Loop, p. 249 The for Loop, p. 263 Nested Loops, p. 277 Solving the Ocean Levels Problem, p. 299 Defining and Calling Functions, p. 306 Using Function Arguments, p. 316 Value-Returning Functions, p. 326 Solving the Markup Problem, p. 380 Creating a Class, p. 391 Creating and Using Class Objects, p. 393 Creating and Using Structures, p. 436 Solving the Car Class Problem, p. 480 Accessing Array Elements, p. 487 Passing an Array to a Function, p. 517 Two-Dimensional Arrays, p. 526 Solving the Chips and Salsa Problem, p. 567 Performing a Binary Search, p. 580 Sorting a Set of Data, p. 587 Solving the Lottery Winners Problem, p. 616 (continued on next page) Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 LOCATION OF VIDEONOTES IN THE TEXT Chapter 10 Pointer Variables...

Words: 11246 - Pages: 45

Free Essay

Management Lessons from Mayo Clinic

...PRINCIPLES OF PROGRAMMING LANGAUAGES Sub Code: IA Marks: Hrs/Week: 04 Exam Hours: 03 Total Hrs: 42 Exam Marks: 100 UNIT I 1. Introduction 4 Hrs Toward higher level languages, Programming paradigms, Language implementation: Bridging the gap, Expression notations, Abstract syntax trees. 2. Types : Data Representation 6 Hrs Elementary data types – Data objects, Variables and Constants, Data types, Declarations, Type checking and type conversion. Numeric data types, Enumerations, Booleans, characters. Structural data types- Structured data objects and data types, Specification of data structure types, Implementation of data structure types, Vectors and arrays, Records, Type equivalence. UNIT II 3. Imperative Programming 6 Hrs Basic statements, Structured sequence control, Handling special cases in loops, Programming with invariants, Proof rules for partial correctness. Procedure activations – simple call-return subprograms, Parameter passing methods, Scope rules for names...

Words: 403 - Pages: 2

Free Essay

Concepts of Programming Language Solutions

...Instructor’s Solutions Manual to Concepts of Programming Languages Tenth Edition R.W. Sebesta ©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Preface Changes for the Tenth Edition T he goals, overall structure, and approach of this tenth edition of Concepts of Programming Languages remain the same as those of the nine earlier editions. The principal goals are to introduce the main constructs of contemporary programming languages and to provide the reader with the tools necessary for the critical evaluation of existing and future programming languages. A secondary goal is to prepare the reader for the study of compiler design, by providing an indepth discussion of programming language structures, presenting a formal method of describing syntax and introducing approaches to lexical and syntatic analysis. The tenth edition evolved from the ninth through several different kinds of changes. To maintain the currency of the material, some of the discussion of older programming languages has been removed. For example, the description of COBOL’s record operations was removed from Chapter 6 and that of Fortran’s Do statement was removed from Chapter 8. Likewise, the description of Ada’s generic subprograms was removed from Chapter 9 and the discussion of Ada’s asynchronous message passing was removed from Chapter 13. On the other hand, a section on closures, a section on calling subprograms indirectly, and a section on generic functions in...

Words: 7025 - Pages: 29

Free Essay

Java Programming

...Guide Computers in Society Introduction to Data Organisation and Management Trigonometry Linear Algebra I Elementary Mechanics Heat and Properties of Matter Introductory Practical Physics I * Students are expected to offer at least one elective course per semester. Also they can only register a maximum of 25 units per semester Total Credit Unit - Compulsory Total Credit Unit - Elective Total Credit Units 2 2 2 2 2 2 2 2 2 C C C C C C C C C 18 0 18 2 2 2 2 2 2 2 2 2 2 C C C C C C C C C C 2nd Semester GST 102 Use of English and Communication Skills II GST 105 History and Philosophy of Science CIT 102 Software Application Skills MTH 102 Introductory Statistics MTH 112 Differential Calculus MTH 122 Integral Calculus MTH 142 Vectors and Geometry PHY 124 Geometric and Wave Optics PHY 132 Electricity, Magnetism and Modern Physics PHY 192 Introductory Practical Physics II * Students are expected to offer at least one elective course per semester. Also they can only register a maximum of 25 units per semester Total Credit Unit - Compulsory Total Credit Unit - Elective Total Credit Units 20 0 20 200 Level Course Code 1st Semester GST 201 CIT 211 GST 203 CIT 213 CIT 215 CIT 237 MTH 211 MTH 213 MTH 241 MTH 281 Course Titles Unit(s) Status Nigerian Peoples and Cultures Introduction to Operating Systems Introduction to Philosophy and Logic Elementary Data Processing Introduction to Programming Languages Programming & Algorithms Introduction to Set Theory and Abstract Algebra...

Words: 911 - Pages: 4