Navigation

    Cyberian
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Pro Blog
    • Users
    • Groups
    • Unsolved
    • Solved
    1. Home
    2. laiba javed
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Groups 0

    laiba javed

    @laiba javed

    0
    Reputation
    10
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    laiba javed Unfollow Follow

    Latest posts made by laiba javed

    • CS201 Assignment 3 Solution and Discussion

      Re: CS201 Assignment 3 Solution and Discussion

      Assignment No.  3
      

      Semester: Fall 2020
      CS201 – Introduction to Programming Total Marks: 20
      Due Date:
      29-01-2021

      Instructions
      Please read the following instructions carefully before submitting assignment:
      It should be clear that your assignment will not get any credit if:

      o Assignment is submitted after due date.
      o Submitted assignment does not open or file is corrupt.
      o Assignment is copied (From internet/students).
      o Assignment is not in .cpp format.

      Software allowed to develop Assignment

      • Dev C++

      Objectives:
      In this assignment, the students will learn:
      • Use of class in programming
      • How to deal with a file in programming
      • How to implement switch statement for Class based functions.

      ABC bakery is using a console based inventory management system for the receipt generation purposes. Console application will help the cashier in calculating total price of each item with respect to its price. Menu list will provide Add an item option to take data about an inventory item, include Item Id, Item name, price and quantity. Relevant data of all items will be displayed on screen with the help of menu option. Quantity amount of items will changeable if user wants to add quantity of an item.

      Problem Statement
      Write a C++ program to manage the inventory item using your knowledge about file handling and classes. User will manage details of an Inventory item using menu list that will provide three options:

      ENTER CHOICE

      1. ADD AN INVENTORY ITEM
      2. DISPLAY FILE DATA
      3. INCREASE QUANTITY

      Prompt will show to the user for continue the program after dealing with each option, until user will press a key other than ‘y’.

      Instructions to write C++ program:

      You will use class “Inventory” to declare inventory data and info
      Make “Inventory.txt” file to save inventory item record
      “Inventory.txt” file will delete each time when the program will run
      “ERROE IN OPENING FILE” will be shown if user not press ‘1’ when program will execute first time.
      You will use switch statement to handle different conditions and to perform different actions based on the different actions, that is, choice 1, 2, and 3.

      Code structure [ Demonstration]:
      You will be using the following class and other functions to develop the assignment:

      class Inventory
      {
            private:
                    int itemID;
                    char itemName[20];
                    float itemPrice;
                    float quantity;
                    float totalPrice;
      
            public:
                   void readItem();
                   void displayItem();
                   int getItemID() ;
                   float getPrice() ;
                   float getQuantity() ;
                  void updateQuantity(float q);    
      };
      
      //Deleting existing file
      void deleteExistingFile(){--------}
      
      //Appending item in file
      void appendToFille(){------------}
      
      //Displaying items
      void displayAll(){------------}
      
      //Increasing Quantity of item
      void increaseQuanity(){------------}
      

      Program Output:

      1. User’s prompt when program will execute for the first time.
        6bcfa578-bdbb-4d1a-afd3-1f50ec8dd32b-image.png

      2. When user press ‘1’ , It will take data about an inventory item as an input from the user.
        02679a3e-f114-43f3-b38a-0f9596a53d86-image.png

      3. When user press ‘2’, it will read data from “Inventory.txt” file and display record of all inventory items on the screen
        fc208996-9a2a-44fa-ad1e-c4734f3368ab-image.png

      4. If user press ‘3’, it will ask to enter Item id against which user want to increase item quantity.
        799bf532-032e-4891-bac8-795fefea34b5-image.png

      5. Now, when the user will press ‘2’, the inventory item record will be shown as:
        559a0b14-878a-400f-a916-a2ce8fd4e3fc-image.png

      Assignment#3 covers course contents from lecture 17 to 30.

      Best of Luck!

      posted in CS201 - Introduction to Programming
      laiba javed
      laiba javed
    • CS606 GDB 1 Solution and Discussion

      Re: CS606 GDB 1 Solution and Discussion

      Total Marks 5
      Starting Date Monday, February 15, 2021
      Closing Date Tuesday, February 16, 2021
      Status Open
      Question Title Intermediate Code Generation
      Question Description
      CS606 GDB Fall 2020

      Compilers are used to translate the source code in to machine code but there is an intermediate code is generated before the target machine code. Compilers can be developed to translate directly without generating machine code.

      Do you think intermediate code generation is extra and time consuming step while translating or it is necessary or beneficial in some way?

      Give your comments in favor or against it with proper reasons.

      Instructions:

      Read the following instructions carefully before sending your comments:

      GDB will have weightage of 5% of your total subject marks.
      Your discussion must be based on logical facts.
      You should post your comments on the Graded Discussion Board & not on the Regular MDB.
      Your comments should be relevant and to-the-point i.e. clear and concise (Maximum 4-5 lines answer using font style Times New Roman and Font Size 12).
      Books, websites and other reading material can be consulted but must be changed into your own wording before posting your comments. (Do not copy the material as it is.)
      No extra time will be given for discussion.

      posted in CS606 - Compiler Construction
      laiba javed
      laiba javed
    • RE: What is girls menses start age in Pakistan?

      @zareen said in What is girls menses start age in Pakistan?:

      What is the start age of girls average?

      Most girls will have their first period when they’re between 11 and 14½, but anywhere from 9-16 years is considered normal. If a girl has a major growth spurt and has grown some underarm hair, periods are likely to be just around the corner.

      posted in General Discussion
      laiba javed
      laiba javed
    • RE: Student perception surveys are a more accurate

      @zaasmi said in Student perception surveys are a more accurate:

      @laiba-javed said in Student perception surveys are a more accurate:

      @zaasmi said in Student perception surveys are a more accurate:

      and reliable form of feedback for educators than supervisor observation. Give students a voice in improving their own education.

      (Survey adapted from the work of Carol Ann Tomlinson.)

      IMG_20210103_120950.jpg

      Can you tell us more about how this works? Students respond yes/no to each statement? Rate it on a scale?

      When I was in the classroom it was a simple agree or disagree— for the purpose of feedback on my teaching. As a principal we roll out a school wide student survey that is on a Likert scale—both for the purposes of providing individualized supports and improving our programs.

      Thanks

      posted in General Discussion
      laiba javed
      laiba javed
    • RE: Student perception surveys are a more accurate

      @zaasmi said in Student perception surveys are a more accurate:

      and reliable form of feedback for educators than supervisor observation. Give students a voice in improving their own education.

      (Survey adapted from the work of Carol Ann Tomlinson.)

      IMG_20210103_120950.jpg

      Can you tell us more about how this works? Students respond yes/no to each statement? Rate it on a scale?

      posted in General Discussion
      laiba javed
      laiba javed