Create a C program that will compute for the body-mass index of a given height and weight. After calculatin the BMI, the program will also tell under which category(underweight, normal weight, overweight,or obese) belongs to. The user will be given two (2) choices before entering the height and weight. The menu must loop repeatedly until the exit option is entered. a. Enter in kilogram and centimeters - This will ask for the weight in kilograms and height in centimeters. b. Enter in pounds and feet - This will ask for the weight in pounds and height in feet. c. Exit - Once chosen, the program must terminate.
Q: Write a C program to select the type of food from the list, then give the quantity you want to buy…
A: Code: #include<stdio.h>int main() { while(1){ char ch; int n; double…
Q: Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the…
A: Given: Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based…
Q: Write a C++ program to calculate food ordering charge. We assume that each customer only orders one…
A: onlineShop.cpp
Q: Create a program in C++ that will display the following: (Note codes and screenshots of all the…
A: Algorithm Step1: display the menu Step2: read the choice variable of char datatype Step3: write…
Q: Write a c# program that has the followings: • A text will be entered by the user. • After getting…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number…
A: C# is a general purpose multi-paradigm programming language developed and used by Microsoft. It…
Q: Create a c++ program that asks an employee the following questions: Employee name Employee ID…
A: Include necessary headers into program. Declare the variables. Prompt and get the name, department,…
Q: a. Write a program that calculates and prints the fare for an airline. There are two plans: Plan…
A: Code: #include <cctype> #include <iostream> #include <cstring> #include…
Q: Write a C++ program for an automobile workshop to check a vehicle’s engine condition. The program…
A: C++ is a powerful general-purpose programming language and computer programming language which can…
Q: Write a simple payroll program that will display employee's information. The program should perform…
A: Given The answer is given below
Q: WRITE A PROGRAM that will provide the Menu System shown below: Mean Menu 1.) Arithmetic Mean 2.)…
A: Given: Write a program that will provide the Menu System shown below: 1.) Arithmetic Mean2.)…
Q: Write a C++ program that inputs two positive integers, A and B. The value of A must be between 5 and…
A: I give the code in C++ as per your requirement and also provide the code and output screenshot
Q: Write a C program that computes the employee’s payroll of ABC Company. The user is first asked to…
A: Name, hours, wage per hour will be the only inputs and then gross, net and all deductions are…
Q: Write a program that keeps prompting the user to enter the first character of his favorite car; and…
A: The user enters the first alphabet of the car and his/her car’s name get displayed.
Q: Q4: Write a menu driven program to take input from user to find average of five subjects marks or…
A: The menu driven C program to take input as choice 'A' or 'P' to find the average and percentage of…
Q: Note: Use else-if statements
A: Programming approach: In the main function Input name. Input reg_num. For loop to input 5 elements…
Q: Write a program in C++ to handle the following scenario:Following is a list of tablets available in…
A: In this program, we have used several functions to check the dosage is available or not by using a…
Q: Create a menu system program in c++ that asking an input based on the choices below. MENU…
A: The answer to the following question:-
Q: Create a program that will accept a person’s name, prelim exam grade, midterm examgrade, final exam…
A: As the programming language is not mentioned, i am using c++ language. In the main function…
Q: Create a menu system program in c++ that asking an input based on the choices below. If the input is…
A: I have given an answer in step 2.
Q: Create a C++ program using any CONDITIONAL STATEMENT that will score the “Paper-RockScissors” game.…
A: #include <iostream>#include <stdio.h>#include <stdlib.h>#include…
Q: Suppose a new member of the city council has to be chosen from three candidates and suppose there…
A: Here is the approach :- As the approach is already provided in the quesiton itself . still it have…
Q: Create a C++ program that will initially rate the applicants in terms of Educational Background and…
A: Step 1 : Start Step 2 : Take user input for the First name and Last name. Step 3 : Using a while…
Q: Write a C++ program that performs the following: Prints on screen a selection menu as follow: a.…
A: Program Description: To write a C++ program that displays count characters, changes text numbers to…
Q: Write a program that prompt the user to enter a food product category, and price in USD. The program…
A: C++ Program for above : #include <iostream> using namespace std; int main() { cout…
Q: Airline has just purchased a computer for its new automatic reservations system. The head has asked…
A: Below is the answer In C language
Q: Write a menu driven program for student managements system, in which you have to take input…
A: CODE: #include<bits/stdc++.h> using namespace std; int main() { string name;int…
Q: Create a C++ program that will input student’s ID, scholarship code (“A/a-D/d”), units, tuition fee…
A: The following is the net tuition fee calculator code Total_fee= 2850 because 450+1500+900 and…
Q: A square is inscribed inside a circle. Write an interactive C program that prompts for and reads the…
A: Code: #include <stdio.h> #include <math.h> #define PIE 3.141592 int main() {…
Q: Write a program that displays a given integer with the corresponding comma in place. Before, commas…
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Q: Please write a program in just basic for the following question. Run the Tic-tac-toe program in the…
A: Tic-tac-toe program to add two little windows on each side of the "Start Game" button: On the left,…
Q: Create a C++ program that will input a single letter and printout the corresponding digit on the…
A: Sample Response: //C++ program to find the equivalent telephone digit of a…
Q: Write a C++ program to keep records and perform statistical analysis for a structure of 20 students.…
A: #include<iostream>#include<iomanip>using namespace std; static int n; //STUDENT…
Q: Create a menu system program in c++ that asking an input based on the choices below. If the input is…
A: #include <iostream>#include <cmath>using namespace std; int main() { float a, b, c,…
Q: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz), medium (12oz),…
A: Required: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz),…
Q: Write a C program which should handle books information for a book shop. It should be able to handle…
A: class book{ char bno[6]; char bname[50]; char aname[20]; public: void create_book() {…
Q: In C++ language, create a program that gets quarterly sales from a user, and calculates the total of…
A: - We need to code for the sales program.
Q: Write a program that does temperature converter", "- The user will enter if he wants the result in…
A: The following are steps needs to be taken for the given program: Asking user the temperature as…
Q: Part 2. Create a C++ program that will input student’s ID, scholarship code (“A/a-D/d”), units and…
A: Given: Part 2. Create a C++ program that will input student’s ID, scholarship code (“A/a-D/d”),…
Q: create a program in c that promts the user to enter a "bank amount" and a "wager amount". If the…
A: Take a variable for the bank amount as input. Take a variable for the wager amount as input. Use a…
Q: Write a C++ program that displays the following menu: Perimeter calculator 1- Calculate the…
A: The perimeter of a triangle is simply add the lengths of the sides given. Formula : Perimeter of…
Q: Write a Beginner's C++ program that will personally greet you. (e.g. Welcome back agent Perez!)…
A: Pseudocode for the above problem. 1. Intialise your as name and x, y and z as month, date and year…
Q: Write a C++ program whose display heading on the top as “Admissions in Iqra University” that offers…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Write a complete C++ program to do the following: Prompt the user to enter the number of students…
A: Required: Prompt the user to enter the number of students and store it into a variable called…
Q: Create a c++ langauge that ask the user to enter a name (one word only) and then print the name in…
A: Code: #include <iostream>#include <bits/stdc++.h>using namespace std; int main(){…
Q: Hell’s Kitchen decided to make a TV program that allows the user to enter 2 readings for their…
A: Please refer below for the code and output: Language used is C: #include <stdio.h>int…
Q: C# Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the…
A: Algorithm: Start Read enter the number of days for a resort stay n If n==1 or n==2,calculate cost…
Q: IN c Airline has just purchased a computer for its new automatic reservations system. The head has…
A: Coded using C language.
Q: Create a c++ program that asks the user to enter all of his 3 quizzes during the preliminary…
A: The cin and cout statements are used to read and print stream input. They use the stream extraction…
C PROGRAM
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Small airline has purchased a computer for its new automated reservationsystem. You have been asked to program the new system. You are to write a program in c++ to assign seats to each flight of the airline’s only plane havingcapacity of 10 seats. Your program should display the following menu ofalternatives--Please type 1 for smoking and Please type 2 for non-smoking. If a person enters 1 your program should assign seat in smokingsection (1-5). If a person enters 2, your program should assign seat in non-smoking section (1-6). Your program should print the boarding passindicating person’s seat number whether he/she has been allocated insmoking or non-smoking section of the plane. Use single subscripted array(1D array) to represent the seating chart of the plane. At start of programinitialize the array to 0 indicating all the seats are empty. As each seat isassigned, set the corresponding elements of the array to 1 to indicate thatseat is not available.Your program should never…Write a program that gives simple math quizzes. The program should display two random numbers. An example of how the numbers would be displayed is shown below247 + 129 If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed. The program should allow the student to enter the answer. Make the program a menu driven program. Meaning the program is to display a list of options to the user to choose from Main menu ------------- 1) Add random numbers 2) Subtract random numbers 3) ExitCasel: Write a menu driven program that allows you to visit cities ofman in random order with following options.1: Visit a city2: Go to previous city3: Quit theprogramWhen user presses 1: program asks user to enter the city name, andthen display that the city has been visited. Please note user can visit acity any number of timesWhen user presses 2: Program takes you back to the previous cityWhen user presses 3: Program terminatesSee the below example how program interacts with the user:C:> 1: Visit a cityprogramEnter your choice2: Go to previous city3: Quit thePlease enter a city to visit.MuscatYou are in Muscat now.Enter your choice.1: Visit a city2: Go to previous cityPlease enter a city to visit.IbraYou are in Ibra noW.Enter your choice.1: Visit a city2: Go to previous cityPlease enter a city to visit.SoharYou are in Sohar now.Enter your choice.1: Visit a city2You are in Ibra now.2: Go to previous cityEnter your choice.1: Visit a city2: Go to previous cityPlease enter a city to…
- Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Philodendron, and Hoya. Each pot costs $11.50, $13.75, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept…Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Philodendron, and Hoya. Each pot costs $11.50, $13.75, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept…Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Philodendron, and Hoya. Each pot costs $11.50, $13.75, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept…
- Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Philodendron, and Hoya. Each pot costs $11.50, $13.75, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept…Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Philodendron, and Hoya. Each pot costs $11.50, $13.75, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept…Part 1 Tom has recently started a plant-selling business, and he offers three different types of plants, namely Monstera, Philodendron, and Hoya. Each pot costs $11.50, $13.75, and $10.99, respectively, and there are 20 pots available for each plant. To minimize the workload of his employees, Tom requires a C++ program for online shopping. The program will exhibit a menu with all the available plant types. The customers can choose the plant type by entering the first letter of the plant's name (M or m for Monstera, P or p for Philodendron, and H or h for Hoya), followed by the quantity they want to buy. If the amount of pots requested exceeds the available pots, the program will display an apology message. The customers can select multiple plant types and quantities until they are ready to pay. Once they are done, the program will add a 12% tax to the total amount and display it with three decimal places. Finally, the program will print a thank you message. The program will not accept…
- Snack bar menu Write a program in phyton that allows the user to choose from the following menu untilhe/she chooses to exit. The program should keep a running total of the chargesand then add 6% sales tax to calculate the final bill. Display the total to theuser.1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitInput validation: The user must choose 1 - 5 from the menu.Example Output:Welcome to Yum Yum Snack Bar!Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 1Current total: $6.00Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 3Current total: $7.25Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 8Invalid choice. Must choose 1 – 5. Try again.Please choose from the following menu:1) Personal Pizza…in the programming language swift: I need to make convienent store inventory program. it will have five items: chips....1.99 chocolate...3.39 hot dog...2.89 pizza..3.85 gas...2.15 a gallon The main screen should be the option list. Once selected the system should ask for which item and how many. The system needs to ask the user if they want more items. After all the items are entered, it should calculate everything. Then it needs to add tax at 9.2 percent. Add everything together. then the system should ask for cash, enter an amount and show the change.In C++ Create a program that does the following: A menu with Registration of Student with his subject and four grades and Calculate the average per student. Its fine if you dont include "idStudent" or "identification", and its not necessary to use 4 grades, at a minimum it can be 2. Please and thank you, I would like to see how experts aproach this code and it will help me alot to learn about menus. UML Diagram Student idAStudent name idSubject Student::Student() Student::Student(int,string,int) getIdStudent():int getname():string getIdSubject():void setIdStudent(int):int setname(string):void setIdSubject(int):int Grade idGrade Name Grade1 Grade2 Grade3 Grade4 Grade::Grade() Grade::Grade(int,string,int,int,int,int) getIdGrade():int getname():string setidGrade(int):void setname(string):void getgrade1():int getgrade2():int getgrade3():int getgrade4():int…