
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
please complete this c++ code and also please add in professional comments using the // command thank you

Transcribed Image Text:5
6
7
8 int main()
9
{
10
11
12
13
18
19
20
14 cout<<"Input Menu"<<endl<<endl;
15
16
17
21
22
23
25
27
28
29
30
31
32
33
35
36
37
38
39
40
41
42
43
45
45
47
#include <iostream>
using namespace std;
48
49
31
32
char letter; // Place to store input letter.
int tempIn; // Temperature to be converted
int tempout; // Converted temperature
cout <<"F: Convert from Fahrenhett to Celsius" << endl;
cout <<"C: Convert from Celsius to Fahrenheit"
<< endl;
//ADD CODE: Begin do-while loop here
cout <<"Type a C or an F, then press return."
cin>>letter;
//REPLACE CODE: use a while loop instead of an of here
}
if (letter - 'C' && letter != 'c' && letter !- 'F' && letter != "")
{
cout << "Wrong letter." << endl;
return 1;
it should loop until the user enters a valid letter
cout<<"Type an integer number, then press return." << endl;
ctn >> tempIn;
if (letter == 'C' || letter == "C")
{
terpout (9* tempIn / 5) + 32;
}
else
{
<< endl;
terpOut 5* (tempIn 32) / 9;
}
cout << "Temperature to convert: *
cout
<<"Converted temperature:
return 0;
terpin endl;
<tempout << endl;
//ADD CODE: ask user "Do you want to convert another temperature (y/n).
//ADD CODE: end do-while loop here repeat loop if user typed a 'y"
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 4 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Alert dont submit AI generated answer.arrow_forwardTigers soccer club offers two types of registrations for season 2022, as shown in the table below. Playerscan register at the counter. Each player will receive a 5% discount if a friend/sibling is registered together.Soccer jerseys are required only for new players, which costs an extra $100 for kids and $120 for adults.Create a basic C# console application to calculate and display a registrations summary for a number (N) ofplayers who want to play with the Tigers soccer club in 2022.Registration type Price (including tax)Kids $150 per seasonAdults $230 per seasonSpecific requirements:• The system first asks the user to enter the total number of registrations.• The system requests to enter the number of players per registration.• The number of players per registration must be between 1-4 players. Otherwise, an error messageshould be displayed and re-entering is required.• The application should ask the user to enter each player name, registration type, and yes or no toindicate whether…arrow_forwardplease follow the instructions given in the screenshot very well also for the runners.txt file here are the stuffs that are written inside it so just copy and paste it inside your own runners.txt file and you dont need to do the step one portion just step 2 to 4, also add professional comments inside the c++ code using the // command thank you 1 Margaret Hamilton 5:002 Barbara Liskov 6:053 Ida Rhodes 6:004 Christopher Strachey 5:205 Edith Windsor 4:506 Peter Landin 5:407 Lynn Conway 4:508 Jon Hall 6:159 Lois Haibt 4:1510 Mary Ann Horton 5:0511 Audrey Tang 4:4512 Souradyuti Paul 6:1013 Jean Bartik 3:5514 Devavrat Shah 5:2015 Komeil Bahmanpour 5:5516 Maryam Sadeghi 4:3517 Babak Hodjat 5:5518 Ada Lovelace 3:4019 Lotfi Zadeh 5:5020 Divya Jain 4:3021 Alan Turing 3:4022 Grace Hopper 5:0523 Lata Narayanan 5:4524 Sugata Mitra 4:1525 Bill Gates 4:40arrow_forward
- Please convert this C++ code to Java code. REMINDER: The output MUST match the picture.arrow_forward3. Which among the following shows a valid use of the Direction enumeration as a parameter to the moveCharacter function? Select al that apply. enum Direction { case north, south, west, east}func moveCharacter(x: Int, y: Int, facing: Direction) {// code here} moveCharacter(x: 0, y: 0, facing: .southwest) moveCharacter(x: 0, y: 0, facing: Direction.north) moveCharacter(x: 0, y: 0, facing: .south) moveCharacter(x: 0, y: 0, facing: Direction.northeast)arrow_forward"Develop a Java function named display_album_info that prints details about an album titled 'Euphoric Symphony. The function should output the following information: Artist's name and release year. Brief description of the album's theme or concept. Tracklist with song titles and durations. Musical genre and target audience. Average rating on a scale of 1 to 5. Memorable lyrics or standout musical moments. Contact information for inquiries (email: music@euphoricsymphony.com, phone: 555-4321). Call the function to display the album information."arrow_forward
- Can you write the code in C++ please?arrow_forwardHowdy, I need an interface showing the calculated square root for a number entered. (See image for specifications.) Interface needs textbox, button. and label boxes and needs to be done in Visual Studio C# in Blank App (Universal windows) Please show pictures detailing the interface and results as well as the code and comments! Thank you!arrow_forwardPlease use the R language to answer the following questionsarrow_forward
- please look at the screenshot instructions to help me create a flowchart of this c++ code ,also you dont need to do the other tasks just help me to create a flowchart regarding the instructions given, thank youarrow_forwardSlappy’s Software Sales AssignmentYou have been hired by Slappy’s Software Sales to write a program to figure thetotal cost to customers that order Slappy’s software packages.Discounts are given based on the number of units sold:Number of Units Sold Discount Amount1 – 9 None10 – 19 20%20 – 49 30%50 – 99 40%100 or more 50%Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Styleproperties.The program should read the number of units sold and figure a base cost. Theunits cost $99 each. A discount should then be figured and subtracted from thebase cost. The subtotal, discount amount and total cost should be displayed, ascurrency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing.Use constants for the discount rates and base price.arrow_forwardIn addition to the instructions on the screenshot, please ensure that your program is made in C++ with comments. Please also ensure that screenshots are taken for the source code and the executed version, including all possible cases. Finally, add your code in a manner so I can just copy and paste it for review. Thanks.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education