Question: Q 1 . Write a program that displays the following menu. The symbols indicate where newline characters ( ) should be included: Bioengineering Laboratory Services
Q Write a program that displays the following menu. The
symbols indicate where newline characters
should be included: Bioengineering Laboratory Services Menu
DNA Sequencing
Protein Analysis
Enter your choice: Functionality Requirements: If the user selects or 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: $ per sample Protein Analysis: $ per sample o Display the total cost. The program should repeatedly display the menu and calculate costs until the user chooses to exit the program eg through a specific menu option like CtrlC Implement input validation for: o Menu choice: Only accept or If an invalid choice is entered, display: o "Menu choice can only be or 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? 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
