Question: Objectives Compile and run C++ code Take user inputs and produce outputs Understand C++ data types Perform arithmetic operations O You can find a document

 Objectives Compile and run C++ code Take user inputs and produceoutputs Understand C++ data types Perform arithmetic operations O You can finda document called Homework 2 Background in the Week 4 Module on

Objectives Compile and run C++ code Take user inputs and produce outputs Understand C++ data types Perform arithmetic operations O You can find a document called Homework 2 Background in the Week 4 Module on Canvas. This document will serve as a reference for some fundamental syntax in C++. Submissions C++ files. All files should be named as specified in each question, and they should compile and run on VSCode to earn full points. TAs will be grading the style of your code and comments. Please see the Style Guide file on Canvas and Homework 2 Background file on Canvas, both in the Week 4 Module. At the top of each file, write your name with the following format: // CS1300 Spring 2021 // Author: Punith Sandhu // Recitation: 123 - TA name // Homework 2 - Problem # ... When you are finished with all the questions, zip all files. Submit the zip file under the assignment Homework 2 on Canvas. Code Runner. The correctness of your program will be graded by Code Runner. You can modify your code and re-submit (press Check again) as many times as you need to, until the assignment due date. You can find Code Runner on the page titled Homework 2 - Coderunner in the Week 4 Module. Extra Credit: Question 1 (3 points): Convert seconds Write a program that takes a number of seconds as user input (as an integer) and converts it to hours, minutes, and seconds as shown below. You should convert the amount of time in such a way that maximizes the whole numbers of hours and minutes. Expected output 1 (bold is user input) Enter a number of seconds : 60 0 hour(s) 1 minute(s) 0 second(s) Expected output 2 (bold is user input) Enter a number of seconds : 3671 1 hour(s) 1 minute(s) 11 second(s) The file should be named as convertSeconds.cpp. Don't forget to head over to the Homework 2 - Coderunner assignment on Canvas and paste your solution in the answer box

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 Databases Questions!