Posts

Write a C++ program to implement a suitable data structures (using array) of marble plates

Image
  Write a C++ program to implement a suitable data structures (using array) of marble plates. Your program should cover the following scenario, Suppose a waiter in a hotel is collecting plates from different tables and giving to dish washer. Dish washer is washing plates and throwing them into rack of plates. Some plates hit others very hard to break other (one above it) and/or itself. You need to develop an application that will find how many plates are broken and plates from which tables are broken. You will identify plates with unique numeric identity number. Every 5 th plate thrown into rack will break itself and one plate below it while every 7th plate will only break itself. Answer: #include "stdafx.h" #include "iostream" #include "conio.h" using namespace std; class Dishwasher { private :       int data[10];       int top;       int bottom;       int size; public :      Dishwasher() {            top = -1;            bottom = 0;        

Write a program that will take 10 integer values from the user. a. If the entered value is Even then enqueue it into a queue at even index and if the entered value is Odd then enqueue it into a queue at odd index. (Note: Even index will start from 0 & odd will start from 1 ). b. Dequeue the values and display the sum of the even values and the sum of the odd values.

Image
  Write a program that will take 10 integer values from the user. a. If the entered value is Even then enqueue or link-list it into a queue at even index and if the entered value is Odd then enqueue it into a queue at odd index. (Note: Even index will start from 0 & odd will start from 1 ). b. Dequeue the values and display the sum of the even values and the sum of the odd values.   Answer: C++ code: #include "stdafx.h" #include "iostream" #include "conio.h"   using namespace std; struct queue {   int front, rear, size, data[10]; public :      int even_sum = 0;      int odd_sum = 0;      queue()      {            front = 0;            rear = -1;            size = 10;      }      void enqueue( int x )      {            if (rear == 9)            { cout << "Queue is full no more elements can be insert" << endl;            }            else            {     

A letter to the campus head of your university and divert the attention towards the unhygienic food being sold in canteen.

  A letter to the campus head of your university and divert the attention towards the unhygienic food being sold in canteen. The Class Representative, BS (Computer Science) 2 nd Semester, Muhammad Hassan Ali   August 08, 2020   The Director, Gujrat Institute of Management Sciences, Gujrat Pakistan. Muhammad Amir                                           Subject: unhygienic food being sold in canteen Dear Sir, I am writing to you to bring your kind attention towards the fact that most of the food items that are being sold at the canteen are either canned, packed, processed items or fast food. This is seriously affecting the health of the students. Besides, the quality of the food items at times is ignored. Not only our money is wasted but our health is also being affected. Moreover the workers are rude to students. They shout at us and use foul language whenever they get angry. They also do not clean the dustbins and rubbish daily. This is very unhygienic. As a

Resume Writing Example for a Computer Scientist Job

  Make the Resume for the job Computer Scientist in a company? BASIC REQUIREMENTS: All applicants must have a bachelor's degree in Computer Science. Must able to Perform system and network procurement, installation, administration and security Able to develop and use basic computing environments for analysis Skilled person who can stay current with major new advances in relevant technology-related topics; provides guidance on tools and methods related to these advances Must able to Coordinate with private sector and other divisions to resolve technical and other relevant issues                                                         Muhammad Hasnain Town Sultanabad Street# 66, Gujrat, India Cell: (+92) 7833643 Email: mh0000@gmail.com Professional Achievement Quality-focused Software Specialist specializing in front end development. Experienced with all stages of development cycle for dynamic customer projects. Well-versed in several