Question: Q 1 . Write a program that displays the following menu. The symbols indicate where newline characters ( ) should be included: Bioengineering Laboratory Services

Q1. Write a program that displays the following menu. The
symbols indicate where newline characters (
) should be included: Bioengineering Laboratory Services Menu
1. DNA Sequencing
2. Protein Analysis
Enter your choice: Functionality Requirements: 1. If the user selects 1 or 2, prompt them with: "How many samples? " o Read the entered number of samples. o Calculate the total cost as samples * service rate based on the following rates: DNA Sequencing: $100.00 per sample Protein Analysis: $80.00 per sample o Display the total cost. 2. The program should repeatedly display the menu and calculate costs until the user chooses to exit the program (e.g., through a specific menu option like Ctrl+C).3. Implement input validation for: o Menu choice: Only accept 1 or 2. If an invalid choice is entered, display: o "Menu choice can only be 1 or 2." o "Please enter a valid menu choice: " o Number of samples: Reject negative numbers. If a negative value is entered, display: o "Number of samples cannot be negative." o "How many samples? "4. Use the most appropriate loop structures to repeatedly display the men

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!