Program Specifications: Write a C++ program to manage a list of students waiting to register for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Program Specifications: Write a C++ program to manage a list of students waiting to register for a course using a linked list. Operations should include adding a new student at the end of the list, adding a new student at the beginning of the list, removing a student from the beginning of the list, removing a student from the end of the list, and removing a student by name. Allow the user an option to exit. Be sure to use good programming methodology and keep your project modular. To Do: 1. Upload your cpp file to the Project 5 Drop Box. 2. Check the Calendar for the due date. 3. Check the rubrics to see how your project will be graded. 111 SEGI College Subang Jaya PROGRAMMING METHODOLOGY-EGC3113 ASSIGNMENT 1 Instructions Answer all questions. Answers should be typed neatly in A4 sheet and submitted through BlackBoard. Answers document should be in word format. File name should keep as your name (as per record) and your SEGi student ID. Example: John SCSI XXXXXXXXXX Submission Date: on or before 4.30 pm, 28 July 2020. QUESTION 1 Write a program to calculate the area of the circle for giving any radius by the user by using POW function in C++. (6 marks) QUESTION 2 A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 "servings" in the bag and that a serving equals 300 calories. Write a program that asks the user to input how many cookies they actually ate and then reports how many total calories were consumed. (6 marks) QUESTION 3 The area of a rectangle is the rectangle's length times its width. Write a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area, or if the areas are the same. Write an algorithm and show the flow chart for the above program. (13 marks) Program Specifications: Write a C++ program to manage a list of students waiting to register for a course using a linked list. Operations should include adding a new student at the end of the list, adding a new student at the beginning of the list, removing a student from the beginning of the list, removing a student from the end of the list, and removing a student by name. Allow the user an option to exit. Be sure to use good programming methodology and keep your project modular. To Do: 1. Upload your cpp file to the Project 5 Drop Box. 2. Check the Calendar for the due date. 3. Check the rubrics to see how your project will be graded. 111 SEGI College Subang Jaya PROGRAMMING METHODOLOGY-EGC3113 ASSIGNMENT 1 Instructions Answer all questions. Answers should be typed neatly in A4 sheet and submitted through BlackBoard. Answers document should be in word format. File name should keep as your name (as per record) and your SEGi student ID. Example: John SCSI XXXXXXXXXX Submission Date: on or before 4.30 pm, 28 July 2020. QUESTION 1 Write a program to calculate the area of the circle for giving any radius by the user by using POW function in C++. (6 marks) QUESTION 2 A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 "servings" in the bag and that a serving equals 300 calories. Write a program that asks the user to input how many cookies they actually ate and then reports how many total calories were consumed. (6 marks) QUESTION 3 The area of a rectangle is the rectangle's length times its width. Write a program that asks for the length and width of two rectangles. The program should tell the user which rectangle has the greater area, or if the areas are the same. Write an algorithm and show the flow chart for the above program. (13 marks)
Expert Answer:
Related Book For
Cost Accounting A Managerial Emphasis
ISBN: 978-0132109178
14th Edition
Authors: Charles T. Horngren, Srikant M.Dater, George Foster, Madhav
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
THIRD AVENUE SOFTWARE HEALTH-CARE APP PROJECT This case is new for the ninth edition of Information Technology Project Management . The case provides an opportunity to apply agile and Scrum...
-
Selenic acid, H2SeO4, is a crystalline substance and a strong acid. Write the electron-dot formula of selenic acid.
-
A pilot flies her route in two straight-line segments. The displacement vector A(vector) for the first segment has a magnitude of 244 km and a direction 30.08 north of east. The displacement vector...
-
Suppose you want to take out a loan to buy a house in town and you want to use your farm land as collateral, but you do not have the land title. Your family has lived there for 150 years, and...
-
When a charge-separating process or device is used to charge a pair of objects, how are their charges related?
-
Given the comments in the case, do you surmise that the reason for the audit was to improve future projects or to ascertain the reasons for not meeting the projects goals, and if the latter, its...
-
Write one page about pipelining in smartphones that support Android operating systems. (10 marks)
-
Consider the equilibrium NO 2 (g) NO(g) + 1/2O 2 (g). One mole of NO 2 (g) is placed in a vessel and allowed to come to equilibrium at a total pressure of 1 bar. An analysis of the contents of the...
-
A trough is 10 meters long, 1 meters wide, and 5 meters deep. The vertical cross-section of the trough parallel to an end is shaped like an isoceles triangle (with height 5 meters, and base, on top,...
-
Why are pigment molecules often found embedded in membranes ?
-
What is the alternatives presents information that is disclosed in the operating activities section of the Statement of Cash Flows under the direct method?
-
Part II Inference Algorithms and Methods (20 points) The K-means algorithm, also known as the Lloyd-Max algorithm in Information Theory, aims at assigning K centroids to a set of data. The centroids...
-
11. A certain asteroid has a radius of 7.0x10m and a mass of 5.0x105 kg. How fast would a cyclist have to travel on the surface of the asteroid for her apparent weight to be one-fifth of her weight...
-
Peony Company's maintenance costs are shown below: Total Cost Total Units April $40,000 40,000 May 55,000 60,000 What type of cost is this?
-
Determine with respect to x y = [arcsin(6x %3D
-
The Heese Restaurant Group manufactures the bags of frozen French fries used at its franchised restaurants. Last week, Heeses purchased and used 101,000 pounds of potatoes at a price of $ 0.70 per...
-
Production managers and marketing managers are like oil and water. They just dont mix, how can a budget assist in reducing battles between these two areas?
-
Weighted-average method, assigning costs. Bio Doc Corporation is a biotech company based in Milpitas. It makes a cancer-treatment drug in a single processing department. Direct materials are added at...
-
Assume the same facts as in Exercise 20-23, except now Road Warrior uses only two trigger points, Completion of good finished units of product and Sale of finished goods. Any under- or overallocated...
-
Why is it important to test a theory? Why not simply accept a theory if it sounds right?
-
What is the intuition behind the geometric growth in interest?
-
You have $100,000 to donate to your college. You want to endow a perpetual scholarship that makes its first payment in 1 year. If the colleges discount rate is 4%, how large will the annual...
Study smarter with the SolutionInn App