the year 2010, animals in Japan were assigned a nurmber based on their species and depending on the assigned number, the animals were categorized Into different regions in Japan from where the species originate. The table below describes the categorization. Animal Number Less than 152 Original Region Kanto 152 - 251 252-386 Jhoto Hoenn 387-493 Sinnoh Larger than 493 Unova Write a complete C program which asks the user to input an animal number and displays the region where the animal originates from to the user
Q: In c++ program: Write a program for Personal Organizer. 1. An interactive program to accept name,…
A: Answer : Algorithm:- To calculate age we need today's year and birth year. Take input from user…
Q: /rite a complete C++program to ask the user to enter three digits correspo day, month and year of…
A: We have to write C++ code to ask users to enter three-digit day/month/year as complete case given in…
Q: Anvered Write a progran Anvered: Write a progran Answered: The results from Blendeo Assessment my…
A: Algorithm: Start Read member id, sales month and sales amount Define a method RateCommission which…
Q: QI) Assume that you want to generate a table of multiples of any given number. Write a C++ program…
A: To generate a table of multiples of any given number. The program starts by asking the user to…
Q: in c++ Write a program to generate a random number between 1 - 100, and then display which quartile…
A: This question explains about C++ program Program Guidelines: Utilize the header records,…
Q: 1 The salary scales of workers in an institution are taken as input. The workers get paid as per the…
A: Solution 1 - Programming language used - C All necessary comments are included in program code.…
Q: You have received the following SMS message for your "Super Boost" vaccine registration: These are…
A: Here I have created variables to store the information. Next, I have taken input from the user.…
Q: (Rounding Numbers) Function floor can be used to round a number to a specific decimal place. The…
A: Given: (Rounding Numbers) Function floor can be used to round a number to a specific decimal…
Q: c++ program that asks the user to enter his/her grade in the preliminary examination. Based from…
A: C++ programming language is an object-oriented programming language, that's a cross-platform…
Q: Srikanth is a school student. He studies in class 8th. One day his Math’s teacher came to the class…
A: Please find the answer below :
Q: Write a program to generate a random number between 1 - 100, and then display which quartile the…
A: In this question, we are asked to generate random number and display in which quarter it exist.…
Q: Q3: Write C++ program to read a score of student and print the estimation to refer it. 100-90…
A: Since you have asked multiple questions, according to the company's policy we will solve the first…
Q: # Calculating a mortgage loan with monthly compound interest # By C. Calongne, 01/14/2019 #…
A:
Q: in c++ Write a program to generate a random number between 1 - 100, and then display which quartile…
A: Program Instructions:Use the header files, constants, seed and random number generator given in the…
Q: Write the code of the ff C-Programming Write a program that will compute and compare the BMI of one…
A: The inputs will be weight and height and then we calculate the BMI and use an if-else ladder to find…
Q: An ISBN-10 (International Standard Book Number) consists of 10 digits: The last digit, is a…
A: Java code: import java.util.Scanner; public class Main{ public static void main(String[] args){…
Q: DEV C++ EDP 101L - Computer Programming and Fundamentals Problem Statement: Design a program that…
A: The objective is to write the C++ program for the given data. Following is the algorithm: Start…
Q: NAME MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY TOTAL Kwame 20 25 25 30 20 Adwoa 10…
A: In step 2, you will the C++ code.In step 3, you can see the sample output.
Q: What would be displayed as the daily dosage of medicine to be administered to a dog weighing 1O…
A: The correct answer is given below with step by step explanation
Q: 7. The Jumpin' Jive coffee shop charges $2 for a cup of coffee and offers the add-ins shown in Table…
A: Solution - Programming Language - C++ All necessary comments are included in program code.…
Q: Suppose you own a beer distributorship that sells Piels (ID number 1), Coors (ID number 2), Bud (ID…
A: Answer: #include<stdio.h>int main(){ typedef struct inventory { int id; int…
Q: Using c++ write a program : Write a program in C++ to handle the following scenario: Three friends…
A: #include <iostream> using namespace std; int main(){ float x,y,z,w,a,b,c,profit;…
Q: An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance…
A: Program approach: Import Scanner package for input. Create a class. Create the main method. Create…
Q: Write a complete C program determine whether a movie is recommended to watch or not based on user…
A: Structure is a collection of variables of different types with a single name. Syntax of struct is:…
Q: C++ program to find the gross salary of an employee using the following structure. Print the details…
A: Introduction of the Program: The C++ program uses a pointer to structure datatype to store all…
Q: In c++ Language . MATCh INPUT AND OUTPUT ----------------- ABC Bank announced a new scheme of…
A: //C++ program #include <iostream> using namespace std; //VISACard class class VISACard{…
Q: The two roots of a quadratic equationax2 + bx + c = 0 can be obtained using the following formula:b2…
A: Program Planning: Step 1: Take entries of values for a, b, and c from the user first. Step 2:…
Q: I want answer in C Language Research our planet population growing issues online. Get…
A: Code for the question is provided below. - We have used current population that is 7.8…
Q: The given table on the right lists the Calorie contents of several foods., Running or walking burns…
A: Code:- #include <iostream>using namespace std;int main() { int totalCalories, chocolate,…
Q: An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance…
A: Program Explanation – Import the essential java libraries. Declare the class named as Main.…
Q: Code a game of sudoku in C++ where the user needs to guess the missing numbers in the grid. The grid…
A: The code implementation is given in the below steps.
Q: C++ Language code and explain Zodiac Sign Identifier - Ask the user's birth month and birth day…
A: Answer: Coding Language : C++
Q: Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member…
A: Note : I have added the output screenshot. Also with total money made, the code prints members and…
Q: Using C++ write a program Asif buys four products detergent, ghee, milk and soap from Punjab Cash &…
A: Algorithm: Firstly collect the data form the user about the price and quantity then store the total…
Q: DEV C++ EDP 101L - Computer Programming and Fundamentals Problem Statement: Design a program that…
A: C++ program to choose winner in election .
Q: Write a program that will ask the user to enter a number n and display the sum of all numbers from 1…
A: 1.Write a program that will ask the user to enter a number n and display the sum of all numbers from…
Q: Ql write a program in c++ language That takes a number from the user If the user has entered ( 1)…
A: Given: Write a program in C++ language that takes a umber from the user. If the user has entered(1)…
Q: Play Yahtzee specs For this game, you will need no user input at all. Declare integer variables that…
A: how to find random number between 1-6. rand() returns a random number in range of 0 to a constant…
Q: In C++ programming language, if -7 :a=900.367 then floor(a) is • 900.3 C • 900 C • -900 O • -900.367…
A: Both answers given below.
Q: game #4 player 1 : rock player 2 : rock playerl = 1, player2 = 1 Notice this game scores didn't cha…
A: #include<iostream> #include<cstdlib> #include<ctime> int main(){ unsigned…
Q: *3.1 (Algebra: solve quadratic equations) The two roots of a quadratic equation ax? + bx + c = 0 can…
A: Following is the code for finding the roots of the equation under the conditions mentioned
Q: Write a C++ program to estimate your water bill for next quarter. Your water meter measures the…
A: #include <iostream>#include <cmath> using namespace std;int maxallo = 50; //declaring…
Q: 2. A certain CS professor gives five-point quizzes that are graded on the scale 5-A, 4-B, 3-C, 2-D,…
A: Algorithm: Ask the user to input grade Check the corresponding grade using if-else Display the…
Q: What would be displayed as the daily dosage of medicine to be administered to a dog weighing 4.9…
A: Given psudocode is if dogWeight numeric then number500 = dogWeight * 2 if number500 MOD 1…
Q: Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member…
A: Program: //include the required header files #include <iostream> #include <string>…
Q: The Barking Lot is a dog day care center. Design a flowehart or pseudocode for the following: . A…
A: Pseudo code is used to write an algorithm in normal english language without using the manual or…
Q: There are b boys in the class. This is three more than four times the number of girls. If the number…
A: PROGRAM STRUCTURE: Include the required header files. Start the definition of the main function.…
Q: Summary 2 EmployeeBonus.py - This program calculates an emplo productivity bonus. 3 In this lab, you…
A: Decision making is needed to execute a code or block of statements only if a certain condition is…
Q: c. Refer to the C++ program in Figure 1.1Gad answer Question 1e (1) - (xi). Otinclude tinclude…
A: input radius1 and radius2 it basically calculates the volume of two sphere volume of sphere is =…
Q: c++, write a program that asks the user to enter a number.The program then asks the user to enter…
A: C++ programming language is an object-oriented programming language, it's a cross-platform…
Step by step
Solved in 2 steps
- In this c++ program edit this code and please input the following details Following details Name of candidate of presidency: Name of province in Laguna: Name: Address: Vote of registered voters in Laguna And remove the winner and percentage. Source Code: #include <bits/stdc++.h>using namespace std; class candidate{ public: string name; int vote;}; void outputElection(candidate* arr){ int total_vote=0; for(int i=0;i<5;i++){ //finding total no of votes total_vote=total_vote+arr[i].vote; } cout<<"result of the election............."<<endl; cout<<"name of candidate"<<"\t"<<"vote received"<<"\t"<<"percentage"<<endl; for(int i=0;i<5;i++){ cout<<arr[i].name<<"\t\t\t"; cout<<arr[i].vote<<"\t\t"; cout<<(arr[i].vote*100)/total_vote<<"%"<<endl; } int max=INT_MIN,count=0; int index[5]={0}; for(int…Computer Science Your dev lead wants to plan a celebration for the 100th code war event that we have as a team. Since we only do code wars on the 5th Friday of the month what date will the 100th event fall on? Include 4/29/22 as the first event day. USE C# implement this code for the solution: using System; using System.Diagnostics; namespace September { /// <summary> /// April Code War /// </summary> class Program { /// <summary> /// Main method /// </summary> static void Main() { // Accuracy Test Console.WriteLine(Calculate100thFifthFriday()); Console.WriteLine(Calculate100thFebruaryFifthFriday()); Console.Out.WriteLine(); Console.Out.WriteLine(); // Speed Test Console.Out.WriteLine("Hit enter to start speed test");…C++ Language code and explain Zodiac Sign Identifier - Ask the user's birth month and birth day and return the corresponding Zodiac Sign he/she belongs: Evaluate the user's birth month and day by checking the following: If born from, Mar 21 to Apr 19 - Aries Apr 20 to May 20 - Taurus May 21 to Jun 20 - Gemini Jun 21 to Jul 22 - Cancer Jul 23 to Aug 22 - Leo Aug 23 to Sep 22 - Virgo Sep 23 to Oct 22 - Libra Oct 23 to Nov 21 - Scorpio Nov 22 to Dec 21 - Sagittarius Dec 22 to Jan 19 - Capricorn Jan 20 to Feb 18 - Aquarius Feb 19 to Mar 20 - Pisces Example: What is your month of birth? 1 - January (31 days) 2 - February (27 days, if Leap Year 28 days) 3 - March (31 days) 4 - April (30 days) 5 - May (31 days) 6 - June (30 days) 7 - July (31 days) 8 - August (31 days) 9 - September (30 days) 10 - October (31 days) 11 - November (30 days) 12 - December (31 days) Please enter your birth month: 8 Please enter day of your birth: 16 Please enter your year of birth: 1997 Your birthday is every…
- In C++ language, create a program that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be used/followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73Write a menu driven C program (not java or python) with the following choice of submenu items:Enter 1 to convert from Celsius to FahrenheitEnter 2 to convert from Fahrenheit to CelsiusSelect 1 or 2:Use a function Celsius which returns Celsius equivalent of a Fahrenheit temperature.C = (5/9)*(F-32)Use a function Fahrenheit which returns Fahrenheit equivalent of a Celsius temperature.F = (9/5)*C + 32Use the functions above to write a program which converts from Celsius to Fahrenheit or fromFahrenheit to Celsius and displays the result. Your program should repeat as long as the user enters 1 or 2 as the choice. Sample run 1: Enter 1 to convert from Celsius to FahrenheitEnter 2 to convert from Fahrenheit to CelsiusSelect 1 or 2: 1Enter temperature in Celsius: 55.00 Celsius = 41.00 FahrenheitEnter 1 to convert from Celsius to FahrenheitEnter 2 to convert from Fahrenheit to CelsiusSelect 1 or 2: 2Enter temperature in Fahrenheit: 3333.00 Fahrenheit = 0.56 CelsiusEnter 1 to convert from…Write a C++ program to find the gross salary of an employee using the following structure. Print the details of the employee along with the gross salary.struct employee{float basic_sal, DA, HRA, gross_sal;char name[20];int age;} *s;(Hint: gross_sal = basic_sal + DA + HRA. DA=30% of basic_sal, HRA=10% ofbasic_sal).
- Use the following skeleton code to write a C program (NOT C++) which filters out words from input which can be typed entirely with either the left hand (QAZWSXEDCRFVTGB) or right hand (YHNUJMIKOLP) #include "general.h" int main(void){int pipe1[2];/*pipe for child 1 and 2 to share*/int pipe2[2];/*pipe for child 2 and 3 to share*/int status; /*setup pipe 1*//*Fork and call child 1 process. /*parent closes pipe ends it no longer needs*/ /*set 2nd pipe*/ /*Fork and call child 2 process. Don't forget to close any fds you will not want open in the childbefore you call the child routine */ /*parent closes pipe ends it no longer needs*/ /*Fork and call child 3 process.*/ /*parent closes. rest of pipe ends*/ /*wait for all 3 children*/ return(0);}Write a C# program that accept a student biodata; names, age, sex and address. You should also do the following: 1. Accept n number of courses and their scores for each student 2. Assign appropriate unit to each of the course entered. 3. Classify the scores according to the table below.. ##please check the image attachedA geometric sequence is a sequence of numbers where each term after the first isfound by multiplying the previous one by a fixed, non -zero number calledthe common ratio. For example, the sequences2, 6, 18, ....3,15,75, ….are a geometric sequences with common ratios 3 and 5 respectively. A geometricsequence is generally characterized by three numbers, the first term ‘a’, thecommon ratio ‘r’ and the number of terms ‘n’. A geometric series is the sum ofnumbers in a geometric sequence. 2+6+18 and 3+15+75 are examples of geometricseries with three terms each.The nth term of a geometric series with initial value ‘a’ and common ratio ‘r’ isgiven by: ?? = ???-1. While the sum of a geometric series is given by:?(1 - ??)1 - ?Create a class GeometricSeries to model a Geometric series. Using friend function,overload the ‘~’ operator to find the nth term of the series. Likewise, overload the‘!’ operator (using a friend function) to find the sum of a Geometric series.Provide a function display() in…
- Implement in C Programming 7.6.1: LAB: Simple car Given two integers that represent the miles to drive forward and the miles to drive in reverse as user inputs, create a SimpleCar variable that performs the following operations: Drives input number of miles forward Drives input number of miles in reverse Honks the horn Reports car status SimpleCar.h contains the struct definition and related function declarations. SimpleCar.c contains related function definitions. Ex: If the input is: 100 4 the output is: beep beep Car has driven: 96 miles main.c #include <stdio.h> #include "SimpleCar.h" int main() { /* Type your code here. */ return 0;} SimpleCar.h #ifndef SIMPLE_CAR_H#define SIMPLE_CAR_H typedef struct SimpleCar_struct { int miles;} SimpleCar; SimpleCar InitCar();SimpleCar Drive(int dist, SimpleCar car);SimpleCar Reverse(int dist, SimpleCar car);int GetOdometer(SimpleCar car);void HonkHorn(SimpleCar car);void Report(SimpleCar car); #endif SimpleCar.c #include…In c++, create a program that gets quarterly sales from a user and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications to complete program Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: Round the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters.Computer Science What statement is true about the following C Program? #include<stdio.h>#include<stdlib.h> typedef struct { int homeScore; int awayScore; char gameLocation;} SOCCER; main() { SOCCER notFun[100] = { 1, 0, 'A' }; int count = 50, i = 51, total = 0; count++; for (i = 0; i < count - 48; i++) notFun[i].homeScore = i + 1; notFun[i].awayScore = i + 1; for (i = 0; i < 100; i++) { total += notFun[i].homeScore + notFun[i].awayScore; } printf("Total Score: %i. \n", total); system("pause");} A. SOCCER is an array B. SOCCER is an array of structs C. SOCCER is a data type D. SOCCER is not an array or a data type