Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

write a program that prompts the user to enter the age of a customer.if the age is younger than 15 then ask the user to enter the name of the customer and notify them by name that they qualify a free toy in a if and else statement.


NMIMS Global Access



School for Continuing Education (NGA-SCE)



Course: IT Project Management



Q1. A consultancy organization is planning to implement Project Tracking applications for



their key projects. The senior manager wants to check the applicability and possibility of



implementing such an application inside the organization. They decided to conduct the



feasibility study for this application. Provide a report to the management about how to



conduct the feasibility study. (10 Marks)



"I WANT FULL LONG ANSWER"

3. A linked list is a sequence of data structures, which are connected via links. Write a complete C program to perform the following on a Circular Doubly Linked List (CDLL).





a. Get a number n (1-9) from user and create CDLL with n nodes, which contains the numbers (1, 2, .. n) as the data in the nodes.






b. Display the elements of CDLL.






c. Insert another node (data = 0) as the head of CDLL. Display the elements of CDLL.






d. Convert the CDLL into a DLL.






e. Remove the second node (head->next) from the DLL.






f. Display the elements of DLL in reverse order.

Q1: Write a program to take input for n number of doctor records and write records of all cardiologists in a file named: “record1”. Also write records of all those doctors in another file named: “record2” who are taking salary more than INR 80,000. After writing records in both files, merge their contents in another file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of doctor: doc_id, doc_name, doc_specialization, doc_salary]


2. Array is the simplest data structure where each data element can be randomly accessed by using its index number. Write a complete C program to create an array and perform the following, using functions.



a. Create an array to store some characters.



b. Get a word (which contains lower case letters only) from the user and store the letters in the array according to the order of letters.



(Ex: If the user Input = campus; Array = ‘c’ ‘a’ ‘m’ ‘p’ ‘u’ ‘s’)



c. Display the elements of the array.



d. Add uppercase letters (A, B, C, …) in between each letter in the array. Then your array length become double. Display the elements of the array.



(Ex: If the Array = ‘c’ ‘a’ ‘m’ ‘p’ ‘u’ ‘s’; After inserting numbers, the array = A c B a C m D p



E u F s)



e. Remove all the lower case letters from the array. Then your array will shrink back to the half size. Display the elements of the array.



(Ex: If the array = A c B a C m D p E u F s; then array = A B C D E F)



f. Display the array again in reverse order.






1. What do you call the 1st array/index in two dimensional array?



2. What do you call the 2nd array/index in two dimensional array?



3. What is the output of the given code?



double[] sales = {12.5, 32.50, 16.90, 23, 45.68,



9, 10.5};



for(int i=0; i<sales.length; i++)



{ } System.out.print(sales.length);




4. What is the output of the given code?



double[][] sales = {



{12.5, 32.50}, (16.90, 23, 45.68}, {1, 2, 3, 4),



};



System.out.print(sales[2][1]);




5. What is the output of the given code?



double[][] sales = {



(12.5, 32.50), (16.90, 23, 45.68}, {1, 2, 3, 4),



}; System.out.print(sales[1][1]);



Make a c++ that will calculate the total expenses and cash left of Miss Carla after spending the following:


Cash-4,050.00


B&W perfume-700.50


B&W lotion-560.85


Dresses-2072.50


Note: the program must display the cash left and total expenses.



 Pyramid Schemes

by CodeChum Admin

They said pyramids were created by aliens, so if you can make a pyramid you might be able to qualify as an alien.


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for an integer input n, and passes this value to the function call of the generatePattern() function.
  2. Your task is to implement this generatePattern() function which has the following description:
  3. Return type - void
  4. Function name - generatePattern
  5. Parameters - 1 integer n
  6. Description - this function prints a triangular pattern of letter T's based on the value of n. For more information, refer to the output in the test cases
  7. DO NOT EDIT ANYTHING IN THE MAIN

Input


1. Integer n

Output


Enter·n:·4
T
TT
TTT
TTTT

Discuss various applications of Initializer List with the help of suitable examples    

Comparing Characters

by CodeChum Admin

Most, if not all things have numeric values. That goes for characters too. In order to find out which character has a higher value, we have to compare them with each other and display the value of the higher character.


Instructions:

  1. In the code editor, you are provided with a main() function that asks the user for 2 characters, passes these characters to a function call of the getHigherValue() function, and then prints out the ASCII value of the higher character.
  2. Your task is to implement the getHigherValue function which has the following details:
  3. Return type - int
  4. Name - getHigherValue
  5. Parameters - 2 characters to be compared
  6. Description - the ASCII value of the higher character.
  7. Hint: Comparing characters in C++ is just like comparing integers.
  8. DO NOT EDIT ANYTHING IN THE MAIN

Input


1. First character

2. Second character

Output


Enter·first·character:·a
Enter·second·character:·h
Result·value·=·104
LATEST TUTORIALS
APPROVED BY CLIENTS