2. Write an application that will calculate the Cummulative Grade Point Average [CGPA] using While Loop for 3 students. You have to enter the GRADE POINT of 5 different subjects for a student. You have to enter the CREDIT for each of the 5 subjects for a Student. GRADE POINT can take any value as given [5,6,7,8,9,10] CREDIT can take any value as given [2,3,4] CREDIT POINT = GRADE POINT * CREDIT %3! CGPA = CREDIT POINT / Sum of the CREDIT values of all the 10 semesters. %3D Display all the 5 subjects GRADE POINT Display all the 5 subjects CREDIT Display the CREDIT POINT Display the Total of all the CREDIT values Display the CGPA Do the above program for 3 students totally. Save your Shell script as cgpa.sh
Q: n C++ Design an application that generates 10 random numbers in the range of 7 – 799. (Both the…
A: Here I have created an array with the size of 10. In the loop, I have traversed each index and…
Q: You’ve been hired by Ford Car Company to write a C++ console application that determines the number…
A: The C++ console application to determine the number of months to repay a car loan by using a…
Q: What is the output of the following code segment? double vall = -7; int val2 = 9;…
A: If we break the calculation into segments. Floor value will return the lower bound of the integer.…
Q: Exercise #4: Write a program that finds the area of a triangle given the base and the height of a…
A: Below I have provided the answer based on C++ Programming. Refer to the comments for a better…
Q: FizzBuzz Interview Question Create a function that takes a number as an argument and returns "Fizz",…
A: NOTE - I have used python programing language for solving the problem. Here I have defined the…
Q: 1) What value is stored in each variable after this code executes? int a = 7, b = 2, c = 0; c = ++a…
A: Pre increment and Post increment: ++a is prefix increment operator: the result is calculated and…
Q: Question 1 Create a VB.NET Console Application that does the following: Create a variable of Integer…
A: Module VBModule Sub Main() Dim marks as integer' to declare marks as integer Dim grade as…
Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Note: Below is the required program in the C++ language. Programming Approach: Including necessary…
Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Note: Programming language is missing in the question. So we will answer this program in C++…
Q: Write an application that prompts the user for two integers and then prompts the user to enter an…
A: The code is written below- import java.util.Scanner; // importing util packagepublic class Main {…
Q: Write a program called palindrome.cpp. The program should have the two functions listed below. Your…
A: code is commented, the output is also attached. ----------------------------------…
Q: For Javascript, the prompt asks the following: Write a function that uses alert() to display pairs…
A: Program Approach-1)Create a function named convertTemp () with two parameters lowTemp and…
Q: A particular talent competition has 5 judges, each of whom awards a score between 0 and 10 to each…
A: Given: To write a program that uses these rules to calculate and display a contestant’s score. A…
Q: Microsoft Visual Studio C++ 2022 Community IDE Task 3: Write a function to calculate the (compound)…
A: Below I have provided C++ Programming. Also, I have attached the screenshot of the code and output…
Q: C++ Angle Calculator Write a program that asks the user for an angle, entered in radians. The…
A: C++ Angle Calculator Write a program that asks the user for an angle, entered in radians. The…
Q: Write a program called palindrome.epp. The program should have the two functions listed below. Your…
A: Your C++ program is given below as you required with an output.
Q: Create a C program of robot walking in a cartesian plane. The program has four commands: a] Origin…
A: Coded using C language.
Q: 1- Your program should first ask the user to enter the basic salary and the extra working hours. 2-…
A: C PROGRAM: #include<stdio.h> // Function declarations float calculate_salary(float,int ,float…
Q: sample output: Enter product number (1-5) (0 to stop): 1 Enter quantity sold: 5 Enter product…
A: import java.util.Scanner; public class Tester{ public static void main(String[] args) { Scanner…
Q: Design and implement an application that plays the High-Low guessing game with numbers. The program…
A: Start :- Declare counter to count number correct of guesses. and another counter for surrenders…
Q: Mathletes Game! With the introduction of loops, we now know enough about programming to begin…
A: Please check the below c++ code
Q: PYTHON programming solotion Develop a program that allows the user to enter a start value of 1 to…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT…
Q: code for this in C: In college, a student may get a grade of 1.0 (as the highest) to 5.0(lowest).…
A: PROGRAM CODE: The challenge is how to use the supplied formula to highlight the final grade, and…
Q: You are required to write a code that requests the user to enter three integer coefficients: a, b,…
A: Note: since programming language is not mention we are providing solution in c++. please repost he…
Q: ● Create a simple calculator application that asks a user to enter two numbers and the operation…
A: Solution is given below :
Q: You are playing a game that has two dice – one die has 6 sides numbered 1 through 6 and the second…
A: In the program below, I have generated random numbers to simulate the dices but you can modify the…
Q: This assignment requires you to plot (in text) a quadratic function at certain points. • Ask the…
A: Correct code def q(a,b,c,x): return a*x**2 + b*x +c def pq(a,b,c,x): print(f'At x= {x} ,y=…
Q: The language is C# Write a program named TestScoreList that accepts eight int values representing…
A: Program: using System;//using static System.Console; class TestScoreList{static void Main(){int…
Q: a) A prime number is an integer greater than 1 that is evenly divisible by only 1 and itself. For…
A: """PrimeNumber application that prompts the user for a number and thendisplays a message indicating…
Q: A mail-order house sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Programming language is missing in the question. So we will answer this program in C++ language. If…
Q: Code 2: Write a program that will prompt a user to enter a systolic blood pressure (SBP) and…
A: Below is the required program in C language. Program Approach: Including header files for the…
Q: Develop a body mass index (BMI) calculator program that reads body weight and height as inputs and…
A: Alogthrim Steps in the form of flowchart :
Q: For each problem write a C++ program that asks the user for input, then calculates and displays…
A: #include<iostream> using namespace std; int main(){ int balance=8,choice;…
Q: PYTHON PROGRAMMING Reza Enterprises sells tickets for buses, tours, and other travel services.…
A: ALGORITHM:- 1. Take choice from user. 2. Take input for ticket number. 3. Check if it is valid…
Q: In Python, use only some or all of the following concepts: decision structures, repetition…
A: Python code: def grade_average(marks_lst): #function to find average of all the marks s =…
Q: By using Loop in c++, you are responsible to develop a Credit Limit Calculator, which will determine…
A: Find Your Code Below
Q: 1-Develop a C# program using Visual Studio for Game retail stores using the information provided in…
A: C# code :- using System.Linq; using System.Text; using System.Threading.Tasks; using…
Q: Write a code snippet that can arrange the alphabets of a name entered by user in alternate cases.…
A: #include<iostream>using namespace std;int main(){ string str; cout << "Input : ";…
Q: Following code in C using random Name Reg no and highschool name Use switch case in C language to…
A: The program is written in C #include <stdio.h>#include<stdlib.h>int main(){ int…
Q: An online retailer sells five products whose retail prices are as follows: Product 1, $2.98; product…
A: Q: Code the given problem. (Language used: C++)
Q: When you try to access to a local variable outside the function an error is generatedSelect one:a.…
A: Scope refers to the visibility of variables. In other words, which parts of your program can see or…
Q: Write an application that handles a student report card. The application shall save the marks of…
A: Solution C# PROGRAM using System; //computer science, maths, english //75 congratulationa, else…
Q: mplete the process_name() function that takes a single string parameter name. You can assume that…
A: 1- This assignment requires, to take the input as firstName and surname from the user. 2- One space…
Q: Exercises A) Create an application in C# to collect all the following marks out of 100 and then…
A: Input: Scores of 6 components in the given order Output: individual marks, final marks, average…
Q: Write an application that prompts the user for two integers and then prompts the user to enter an…
A: The switch statement is a useful way to write a menu-driven program. It is used to implement…
Q: IN PYTHON PLEASE AND FLOWCHART DRAWING COMPUTERIZED PLEASE!! In many businesses across the…
A: FLOW CHART:
Q: • Write an application that inputs one number consisting of 3 digits [for example 125] from the…
A: using System; public class RecExcerise4 static void main() { console.write("\n\n recursion:…
Q: A) Freate application Ollect all the following marks and then calculate your final marks based on…
A: According to the information given;- we have to write c# code on the basis of instruction mention.
Q: Computer Fundamentals and Programming 2 Write a program that determines a student’s grade. The…
A: logic:- read three score. Find avg=(a+b+c)/3 use if else to find out avg category. Display grade.…
Q: Write a program with 5 variables (consider double values). The program should first calculate the…
A: #include<bits/stdc++.h> using namespace std; double TestFunction(double a,double b, double c,…
Step by step
Solved in 2 steps with 1 images
- Please solve this using java Write an application that allows a user to enter the names and birth dates of up to 10 friends. Continue to prompt the user for names and birth-dates until the user enters the sentinel value “ZZZ” for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birth-date or an error message if the name has not been previously entered. The loop continues until the user enters “ZZZ” for a name.You have been asked to develop the new system. You are to write an application to assign seats in an airline. Assume a small airplane with 28 seats (7 rows 4 wide) as follows: 1 A B C D 2 A B C D 3 A B C D 4 A B C D 5 A B C D 6 A B C D 7 A B CD The program should display the seat pattern, with an X marking the seats already assigned. 1 X B C D 2 A X C D 3 A B C D 4 A B X D 5 A B C D 6 A B C D 7 A B C D The program then requests a choice of seat. If the seat if available,then the seating display is updated. Otherwise, the program requests another choice of seat. If the user types in a seat that is already assigned, the program should say that that seat is occupied and ask for another choice. This continues until all seats are filled or until the user says that the program should end.Create two variables (v1, v2). First and second ones should be your name---surname (string) and faculty number (integer), respectively.a) Combine v1 and v2 by using “+” operator and obtain new variable (v3) which should be string.b) Calculate length of the v3. Use print command to indicate the result.c) Find first, third and last elements of v3. Use print command to indicate the results.d) Print v1, length of v3 times with loop. You are free to choose loop type.
- In javas coding please Write a program that opens the salesdat.txt file and processes it contents. The program should display the following per store: The total sales for each week. (Should print 5 values - one for each week). The average daily sales for each week. (Should print 5 values - one for each week). The total sales for all the weeks. (Should print 1 value) The average weekly sales. (Should print 1 value) The week with the highest amount in sales. (Should print 1 week #) The week with the lowest amount in sales. (Should print 1 week #) All Values (Total Sales, Average Daily Sales for Each Week, Total Sales for all Weeks, Average Weekly Sales, Highest Amount in Sales, Lowest Amount in Sales) The file contains the dollars amount of sales that a retail store made each day for a number of weeks. Each line in the file contains thirty five numbers, which are sales numbers for five weeks. The number are separated by space. Each line in the file represents a separate store.…In this assignment, you will design a program in which you will ask the user to enter a number and usea while loop to see if the number entered by the user is a palindrome number or not. A palindromenumber is a number which remains the same, even when the digits are reversed. For example: 121 is apalindrome number. 277 is not a palindrome number. StartStart of main function§ Prompt the user a number ‘n’§ Assign ‘n’ to another temporary variable ‘temp’§ Initialize a variable ‘rev’ to 0§ While ‘n’ is greater than 0divide ‘n’ by by 10 and assign the remainder to a variable ‘dig’multiply ‘rev’ by 10 and add to ‘dig’ and assign result to ‘rev’divide ‘n’ by 10 to get the quotient and assign to ‘n’§ If ‘temp’ is equal to variable ‘rev’Print ‘The number is a palindrome’§ ElsePrint ‘The number is not a palindrome’End of main functionEnd● Create a simple calculator application that asks a user to enter twonumbers and the operation (e.g. +, -, x, etc.) that they’d like to perform onthe numbers. Display the answer to the equation. Every equation enteredby the user should be written to a text file. Use defensive programming towrite this program in a manner that is robust and handles unexpectedevents and user inputs. Now extend your program to give the user the option to either enter twonumbers and an operator, like before, or to read all of the equations froma new txt file (the user should add the name of the txt file as an input) andprint out all of the equations together with the results. Use defensiveprogramming to ensure that the program does not crash if the file doesnot exist and that the user is prompted again to enter the name of the file.
- Write a program that allows a player to play Rock, Paper, Scissors. In this version, if there is a tie the computer wins. The user must beat the computer to win a round. #1 - On paper write main such that it will play the game using the functions you described below #2 - Write on paper the prototypes for each of the following functions: GetInput – Accepts the name and how many rounds they want to play as inputGetAndCheckPlay – This function will provide a menu for the user. It allows the user to choose one of the following options and error checks the input.(R) Rock(P) Paper(S) ScissorsEnter your play:GetComputerPlay – Randomly selects a play for the computer and returns a character representing that play.CheckWin – Check if the user has won, returns true if they won false if the computer wonOutputWin – Output the user’s name and if the user won or lost each round.OutputMatchWinner – Output the user’s name and the % of wins if the user won the match and outputs the % of losses if they…Challenge Problem (pyhton) T E S T S C O R E S Write a program that implements a test scores program. Valid test score entries are between 0 and 100 inclusive. The program should display a welcome message and run everything through the "main" function. have the ability to enter several test scores (try a loop) and print out the total score, as well as, the average score. continuously ask for test scores until the number 99.9 has been entered. test for valid entries and the value 99.9. If a test score is valid, the program should add the current score to the total score and update the number of test scores by one (+1), otherwise it displays an error message. Note : This assignment involves the use of a while loop and if-else decision making controls. You CANNOT use the reserved keywords break and continue for any portion of this program or any program for that matter throughout this course.Write an application that determines whether a phrase entered by the user is a palindrome. A palindrome is a phrase that reads the same backward and forward without regarding capitalization, spaces or punctuation. And it will allow the user to enter as many phrases as he likes after each iteration.
- Lab 8.1 - Using Value and Reference Parameters In Visual Studio Code under labactivity8_1 folder, create a new file main.cpp. Open the C++ source file main.cpp in the text editor and copy the source code below. /** * @file WRITE FILE NAME * @author WRITE STUDENT NAME(S) * @brief Using value and reference parameters. This program * uses a function to swap the values in two variables. * @date WRITE DATE TODAY * */ #include <iostream> using namespace std; // Function prototype void swapNums(int number1, int number2); int main() { int num1 = 5, num2 = 7; // Print the two variable values cout << "In main the two numbers are " << num1 << " and " << num2 << endl; // Call a function to swap the values stored // in the two variables swapNums(num1, num2); // Print the same two variable values again cout << "Back in main again the two numbers are " << num1 << " and " << num2 << endl; return 0; } /** * @brief WRITE DESCRIPTION OF…Lab 8.1 - Using Value and Reference Parameters In Visual Studio Code under labactivity8_1 folder, create a new file main.cpp. Open the C++ source file main.cpp in the text editor and copy the source code below. /** * @file WRITE FILE NAME * @author WRITE STUDENT NAME(S) * @brief Using value and reference parameters. This program * uses a function to swap the values in two variables. * @date WRITE DATE TODAY * */ #include <iostream> using namespace std; // Function prototype void swapNums(int number1, int number2); int main() { int num1 = 5, num2 = 7; // Print the two variable values cout << "In main the two numbers are " << num1 << " and " << num2 << endl; // Call a function to swap the values stored // in the two variables swapNums(num1, num2); // Print the same two variable values again cout << "Back in main again the two numbers are " << num1 << " and " << num2 << endl; return 0; } /** * @brief WRITE DESCRIPTION OF…Please do this in C# (C Sharp) Kilogram Converter In a medical office, employees must use weight measurements in kilograms and pounds. Create a program (console based ) that displays a table of kilograms 0-20 and the equivalent weight in pounds. The application should use a loop to display weights in a list box. Use this conversion: 1 kg = 2.2 lbs Calculating Factorials The notation n! represents to the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from 1 through n. For example, 3! = 1 x 2 x 3 = 6 9! = 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 = 362,880 Create a program (console based ) that lets the user enter a nonnegative integer and then uses a loop to calculate the factorial of that number. Display the factorial on a label or in a message box.