


Source code of the programs are given below.Detailed comments are included for better understanding the code.Screen shot of the code and output are also attached.If find any difficulty, feel free to ask in comment section. Please do upvote the answer.Thank you.
1) Source code
#include<iostream>
using namespace std;
int main()
{
//declaring integer variable to hold user input
int number;
//prompt user to enter the integer
cout<<"Enter the integer: ";
//read the integer
cin>>number;
//check the integer is less than zero
if(number<0)
cout<<"The number "<<number<<" is less than
zero";
//else if check the integer is greater than zero
else if (number>0)
cout<<"The number "<<number<<" is greater than
zero";
//if both if is not true,then the integer is zero
else
cout<<"The number is zero";
return 0;
}
Screen shot of the code

Screen shot of the output
.
2)Source code
#include<iostream>
using namespace std;
int main()
{
//declaring integer variable to hold grade
int grade;
//prompt user to enter the grade
cout<<"Enter the numeric grade: ";
//read the grade
cin>>grade;
//check the grade is in between 85 and 100
if(grade>=85 && grade<=100)
cout<<"Corresponding letter grade: "<<"A";
//else if check the grade is in between 65 and 84
else if (grade>=65 && grade<=84)
cout<<"Corresponding letter grade: "<<"B";
//else if check the grade is in between 55 and 64
else if (grade>=55 && grade<=64)
cout<<"Corresponding letter grade: "<<"C";
//else if check the grade is in between 50 and 54
else if (grade>=50 && grade<=54)
cout<<"Corresponding letter grade: "<<"D";
//else if check the grade is in between 0 and 49
else if (grade>=0 && grade<=49)
cout<<"Corresponding letter grade: "<<"E";
//otherwise the grade is not in the range in between 0 and
100
else
cout<<"invalid input";
return 0;
}
Screen shot of the code

Screen shot of the output

3)Source code
#include<iostream>
using namespace std;
int main()
{
//declaring integer variable n to hold day number
int n;
//prompt user to enter number
cout<<"Enter the number: ";
//reading number n
cin>>n;
//switch statement compare n with each case values
//whenever a match is found,the associated statement block will be
executed
switch(n)
{
case 1:
cout<<"Sunday";
break;
case 2:
cout<<"Monday";
break;
case 3:
cout<<"Tuesday";
break;
case 4:
cout<<"Wednesday";
break;
case 5:
cout<<"Thursday";
break;
case 6:
cout<<"Friday";
break;
case 7:
cout<<"Saturday";
break;
//if no match found print invalid number
default:
cout<<"Invalid
number!!";
break;
}
return 0;
}
Screen shot of the code


Screen shot of the output

4)Source code
#include<iostream>
using namespace std;
int main()
{
//declaring integer variable n to hold frequency of wave
int f;
//prompt user to enter frequency of wave
cout<<"Enter the frequency of wave: ";
//reading frequency f
cin>>f;
//if frequency is in between 3 and 30 print extremely low
frequency
if(f>=3 && f<=30)
cout<<"Extremely low frequency";
//else if frequency is in between 31 and 300 print super low
frequency
else if(f>=31 && f<=300)
cout<<"Super low frequency";
//else if frequency is in between 301 and 3000 print ultra low
frequency
else if(f>=301 && f<=3000)
cout<<"Ultra low frequency";
//else if frequency is in between 3001 and 30000 print very low
frequency
else if(f>=3001 && f<=30000)
cout<<"Very low frequency";
//else if frequency is in between 30001 and 300000 print low
frequency
else if(f>=30001 && f<=300000)
cout<<"Low frequency";
//otherwise print invalid input
else
cout<<"Invalid input!!";
return 0;
}
Screen shot of the program

Screen shot of the output

Can i get a help with this lab please! Lab 3 - Decision Making V <...
Java programming only Create a Java program that inputs a grade from the user. The grade input from the user will be an integer. Once the input is stored, use an if-else-if block of code to determine the letter grade of the inputted integer grade. Do not use a bunch of if statements by themselves to solve this problem. You will print an error message for inputs greater than 100 and for inputs less than 0. Both errors must be...
using C geany. Please Dr. exercise # 1 and 2
During the lab: PART I: PROGRAMMING EXERCISES a. Using Geany, write a C program that prompts and asks the user for two assignment marks (al and a2) and two test marks (ti and t2). All four variables are integer variables and are in % (out of 100). You program should display the four marks properly lalebed to check if the input has been successful. b. Next, calculate and display the...
Please go to the Practice Exercises (at the end of Chapter 3 in your text on page 129) and do Exercise E 3.14 which asks you to compute and print the current season of the year depending on the month and day (input as integers). Be sure to review Java boolean operators, multi-way IF-ELSE statements, Switch statements, and String comparison methods before implementing your Java code. The algorithm for this program has been written for you and is included in...
i need help with a mips program to to covert roman numerals to
real numbers
Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...
C++
Hey, I really need help with this lab. I don't understand the
function part at all. It'll be great way for me to understand. Than
you
Functions and loops: Write a program that will ask the user which type of triangle they would like to draw on the characters. The choices are screen with left-top-big left-bottom-big right-top-big right-bottom-big Get the user's choice, ask how big it should be, and then draw the shape. After each successful drawing, ask the...
Use only if else nested if else only otherwise your answer won't be entertained. Problem 1(b): Write a program that gives remainder without using modulus operator and loops. The first number entered will be dividend and second number entered will be divisor. Sample input: 15 6 Sample output: Remainder is 3 In a right triangle, the square of the length of one side is equal to the sum of the squares of the length of the other two sides. Write...
I need help with doing these tasks for code
composer
Lab 3 - Branching, Push Button and LEDs-Reading Assignment in this lab, we are going to control a LED via a push button- using general purpose digital 10 for both input (button) and output (LED) on port 1 - using Code Composer Studio. Furthermore, we are going to use a branch instruction to create an IF-ELSE structure in assembly to determine if the LED should be lit up based on...
I'm having trouble writing this code, can some help me? Step 1: Capturing the input The first step is to write a functionGetInput()that inputs the expression from the keyboard and returns the tokens---the operands and operators---in a queue. You must write this function. To make the input easier to process, the operands and operators will be separated by one or more spaces, and the expression will be followed by #. For example, here’s a valid input to your program: 6...
Lab/HW 3 Write a program that reads in the following data, all entered on one line with at least one space separating them: a) an integer representing a month b) an integer representing the day of the month c) an integer representing a year 1. Check that the month is between 1 and 12. If it’s not print an error message. 2. Day cannot be 0 or less nor can it be more than 31 for all months. Print...
C++: Need help debugging my code
I am writing this and using some other examples as reference code
while rewriting it with my own understanding of the material but am
having trouble making it finally compile. Below is a picture of the
error messages.
//main.cpp
//Semester Project
//Created by J---on 5/6/2019
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <bits/stdc++.h>
using namespace std;
void instructions(); //displays program details and
instructions
void openFile();
void takeInput(int*);
void switchBoard(int*);
struct price
{...