Question: c++ code please part 1 Ask the user to enter a number between 0 and 300. If the number is between 0 and 15, display

c++ code please

part 1

Ask the user to enter a number between 0 and 300. If the number is between 0 and 15, display "just now". If the number is between 16 and 70, display "about a minute ago". For all other numbers, take the number and convert it to equivalent minutes and seconds. For example, 100 would display as "1 minute and 40 seconds ago". This simulates the timestamping of posts or activity as seen on various social media feeds. You do not need to write the whole program, just the necessary code.

part 2

Repeatedly ask the user to enter an integer number (positives and negatives are ok). If a negative number is entered, convert it to its absolute value by multiplying it by -1. Keep a running count of how many numbers have been entered. Stop asking for numbers when the total of all entered numbers exceeds 100. Also, displayhow many numbers were entered. You may use any looping mechanism you choose. Only write the necessary algorithm statements, not the whole program. Sample interaction:Enter a number: 50Enter a number: 10Enter a number: 19Enter a number: -20Enter a number: 135numbers entered, total of 112

part 3

What would you write in the #sections#to complete the code? The correct and completed code would convert the number 12 into the displayed word Dozen

#a# value;

cout << "Enter value: ";

cin >> value;switch (value)

{

#b# : cout << "Dozen";

break;

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!